handling File upload in JSP??
Hi , Can anybody pls tell.. How to handle File upload(binary) in JSP/beans?? what should be the Property Type in Bean to hold a Photograph...is it File? regards Deepak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
useBean
in a jsp page i make a jsp:useBean.. how can i pass in a useBead a parameter? name=xxx value= thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Problems with tomcat in IIS5 - Windows 2000
Hello! I'm habing problems getting tomcat to work in IIS5 in Windows 2000. I've followed the procedure at http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.htm l (WinNT) and tried to run the programs in the jsp section in examples. The programs don't run though. They're just treated like HTML files. This is what the webserver logfile looks like: 09:18:58 127.0.0.1 GET /tomcat/examples/jsp/dates/date.jsp 304 This is how the isapi.log file looks like: [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /tomcat/examples/jsp/dates/date.jsp [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [jk_isapi_plugin.c (452)]: HttpFilterProc [/tomcat/examples/jsp/dates/date.jsp] is not a servlet url [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/tomcat/examples/jsp/dates/date.jsp] is points to the web-inf directory I did all the things in the Troubleshooting list but still the same thing happens. Do I need to map the JSP suffix to a specific DLL in the website configuration? I tried mapping it to isapi_redirect.dll but then I got this response: Not Found (404) Original request: /tomcat/examples/jsp/dates/date.jsp Not found request: /tomcat/examples/jsp/dates/date.jsp Do I need to do something different since I use Windows 2000 and not WinNT? Any help or redirection of the question would be appreciated. Thanks! Hermund Årdalen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
multi-jvm, one servlet context
hi, there, can I ask tomcat to start with several jvm to serve one servlet context? currently, my servlet running speed is very slow, can I use multi-jvm to make it faster? sorry for stupid question, hope can get answer. rgds sun
Security Manager Problems
I am trying to start Tomcat using the security manager with no luck. I have made the changes that are detailed in the tomcat-security.html document but when I try and start tomcat using startup.sh -security I get the message "starting with security" etc. but then it just prints out the usage instructions for the tomcat class. Looking at the source for tomcat.java I cannot see any references to security, but I have only had a quick look. Does anyone have any suggestions? I am using Redhat 6.2, Tomcat 3.2. JDK 1.3. Regards, Neil Weller (New to the list) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: mok_jkapache
hi include either the tomcat.conf or tomcat.conf-auto file(i.e found in tomcat conf. folder) in to http.conf(apache folder) like Include /home/apache/conf/tomcat.conf hope it helps sam. Quoting Deian Chepishev [EMAIL PROTECTED]: Hi, Can anyone tell me please how i can make working together apache and tomcat 3.2.1 with mod_jk when I install it and try to make something the server gives me the source of the jsp or browser ask me for saving file mail me :[EMAIL PROTECTED] short Messaging Servivce (SMS) :www.geocities.com/samteed/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
AW: HIGH Priority :RE: socket write error
Please !! can someone com up with a solution for this problem. Thanks Kai -Ursprngliche Nachricht- Von: Hosahalli, RaghavendraX [mailto:[EMAIL PROTECTED]] Gesendet am: Dienstag, 16. Januar 2001 20:05 An: [EMAIL PROTECTED] Betreff: HIGH Priority :RE: socket write error Folks, sorry for putting high priority for this. I see this problem existing in tomcat archive for a long time. Till now no solution(couple of answers are there, unfortunately they didn't help). Please somebody let us know how to handle this scenario Thanks, Raghu -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 8:11 AM To: [EMAIL PROTECTED] Subject: AW: socket write error Hi all I'm getting this error message when loading up the the default Tomcat home page: 2001-01-16 01:41:19 - Ctx( ): IOException in: R( + /tomcat-power.gif + null) Connection aborted by peer: socket write error (code10053) But the page seems to load just fine. Anyone know what the problem is here? Thanks for any help Kai - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: tomcat contexts and JVMs
-Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 11:15 PM To: [EMAIL PROTECTED] Subject: tomcat contexts and JVMs Hi All: I am a bit confused. Does each context in server.xml have its own JVM session? For example, I have two contexts: 1) Catalog - for a product catalog app 2) Support - for customer support apps Both these contexts need a connection pool to my backend Oracle database. If both contexts use separate JVM sessions then I would have double the number of connections to my Oracle database and the connections would increase per context added. Is there a way to share the connection pool object across contexts? Again all this relates back to whether the various contexts runs within one JVM session or each has its own JVM session. [Kitching Simon] I'm not quite sure what you mean by "session". Presuming you mean a "separate jvm process", the answer is no. All contexts in tomcat run in a single tomcat instance, unless you start messing about with load distribution features to deliberately run multiple jvms. However, the sun servlet spec essentially states that each context should *look like* it is running in a separate jvm; this is done by careful use of ClassLoaders. The whole design of the sun servlet spec points towards web applications running totally separated from each other, so that *if* you decide to move a web application to a separate jvm or even separate machine, nothing breaks. As far as I know, you can only share data between contexts by deliberately violating the servlet specifications, which means that it is also a very non-portable solution. I suggest (a) run your Catalog and Support stuff together within a single context. (b) use a single EJB server which does the actual database access, and call this EJB server from your web applications. (c) just live with the extra number of connections. All the above is just my interpretation of the specs : no guaruntees I've understood it right :) - any corrections from those who know better are welcome. Regards, Simon Thanks, Joshua - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Debugging Servlet From CodeWarrior 4.0 on Windows 2000
Im using codewarrior 4.0 on Windows 2000 and Im trying to debug my servlet from the IDE but when I start to debug my servlet I had the following message : "Couldn't find the application to launch to start the debug session" If I start my servlet without debugging (using Run command) it forks fine. Here is the complete setup I have used for compiling and debugging: 1. Create a new project in CodeWarrior. 2. Add the "CodeWarrior" JDK's tools.jar to your project. 3. Add the TomcatHome/lib/*.jar files to your project. 4. Set the target Output Directory to /my-web-app/WEB-INF/lib 5. Set the target VM Arguments to "-Dtomcat.home=/path/to/tomcat/home" 6. Set the Main Class to org.apache.tomcat.startup.Tomcat 7. Set the parameters to "start" Did someone has used CodeWarrior with success for debugging tomcat servlet ? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
error starting tomcat
Hello. My tomcat 3.2.1 installed on a machine with win95 with internet explorer 5.5 sp1 crashes on start dumping the following stack trace FATAL:java.net.SocketException: Option unsupported by protocol: createjava.net.SocketException: Option unsupported by protocol: create at java.net.PlainSocketImpl.socketCreate(Native Method) at java.net.PlainSocketImpl.create(PlainSocketImpl.java:70) at java.net.ServerSocket.init(ServerSocket.java:166) at java.net.ServerSocket.init(ServerSocket.java:121) at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:97) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:239) at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188) at org.apache.tomcat.core.ContextManager.start(ContextManager.java:527) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Any suggestions? Thanks in advance Manuel
RE: multi-jvm, one servlet context
-Original Message- From: sun [SMTP:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 12:34 AM To: [EMAIL PROTECTED] Subject: multi-jvm, one servlet context hi, there, can I ask tomcat to start with several jvm to serve one servlet context? currently, my servlet running speed is very slow, can I use multi-jvm to make it faster? sorry for stupid question, hope can get answer. rgds sun [Kitching Simon] I can't see how running multiple jvms will improve the speed of your servlets...more processes will slow down your machine rather than speed it up. Whatever is causing your servlets to run slow, I don't think multiple jvms is the solution. Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
SOLVED: open_socket, connect() failed errno = 146 (WAS upgrading to mod_jk ajp13 won't work)
I solved my problem by removing the work/* directories before launching tomcat apache. --mike mike niemaz wrote: Just to add I kepp getting this error in tail mod_jk.log: [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 Maybe I should recompile my mod_jk.so --mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
jk_open_socket, connect() failed errno = 111
I compiled and installed mod_jk and connect with ajp13 to the apache server (ver. 1.3.11) Everything works fine, but when I make a load test the connector stops after some time and prints out the following messages to the mod_jk.log file. I changed the jdk version and recompiled the mod_jk module, but with no success... Did anyone had the same problem? -andi [jk_ajp13_worker.c (619)]: Error reading request [jk_ajp13_worker.c (203)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111 [jk_ajp13_worker.c (619)]: Error reading request [jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed errno = 111 [jk_ajp13_worker.c (584)]: Error connecting to the Tomcat process. [jk_ajp13_worker.c (203)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111 [jk_ajp13_worker.c (619)]: Error reading request [jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed errno = 111 [jk_ajp13_worker.c (584)]: Error connecting to the Tomcat process. [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111 [jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed errno = 111 [jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed errno = 111 [jk_ajp13_worker.c (584)]: Error connecting to the Tomcat process. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: open_socket, connect() failed errno = 111
Oups forgot to ask for workers.properties "Pour la plupart des hommes, se corriger consiste changer de dfauts." -- Voltaire -Original Message- From: Andreas Neuenschwander [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 12:23 PM To: [EMAIL PROTECTED] Subject: Re: open_socket, connect() failed errno = 111 server.xml: ... !-- Apache AJP12 support. This is also used to shut down tomcat. -- Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/ Parameter name="port" value="8007"/ /Connector !-- Apache AJP13 support. -- Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler" / Parameter name="port" value="8009"/ /Connector ... Host name="domain.com" Context path="" docBase="/www/server/doc/domain/xml" debug="0" /Context /Host httpd.conf: include /opt/jakarta-tomcat-3.2.1/conf/mod_jk.conf mod_jk.conf: ### # Auto generated configuration. Dated: Tue Jan 09 20:42:14 CET 2001 ### # # The following line instructs Apache to load the jk module # LoadModule jk_module libexec/mod_jk.so AddModule mod_jk.c JkWorkersFile /opt/jakarta-tomcat-3.2.1/conf/workers.properties JkLogFile /opt/jakarta-tomcat-3.2.1/logs/mod_jk.log # # Log level to be used by mod_jk # JkLogLevel error VirtualHost 100.100.100.100:80 DocumentRoot /www/server/doc/domain/xml ServerName domain.com ServerAlias www.domain.com ServerAdmin [EMAIL PROTECTED] Location "WEB-INF/" AllowOverride None deny from all /Location Location "META-INF/" AllowOverride None deny from all /Location JkMount /*.jsp ajp13 JkMount /*.xml ajp13 JkMount /servlet/* ajp13 /VirtualHost VirtualHost 100.100.100.100:80 ... /VirtualHost - Original Message - From: "GOMEZ Henri" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 12:11 PM Subject: RE: open_socket, connect() failed errno = 111 Are you sure of your adress/port/protocol. Could you send part of httpd.conf and server.xml ;-) "Pour la plupart des hommes, se corriger consiste changer de dfauts." -- Voltaire -Original Message- From: Andreas Neuenschwander [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 12:01 PM To: [EMAIL PROTECTED] Subject: open_socket, connect() failed errno = 111 I compiled and installed mod_jk and connect with ajp13 to the apache server (ver. 1.3.11) Everything works fine, but when I make a load test the connector stops after some time and prints out the following messages to the mod_jk.log file. I changed the jdk version and recompiled the mod_jk module, but with no success... Did anyone had the same problem? -andi [jk_ajp13_worker.c (619)]: Error reading request [jk_ajp13_worker.c (203)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111 [jk_ajp13_worker.c (619)]: Error reading request [jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed errno = 111 [jk_ajp13_worker.c (584)]: Error connecting to the Tomcat process. [jk_ajp13_worker.c (203)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111 [jk_ajp13_worker.c (619)]: Error reading request [jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed errno = 111 [jk_ajp13_worker.c (584)]: Error connecting to the Tomcat process. [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111 [jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed errno = 111 [jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed errno = 111 [jk_ajp13_worker.c (584)]: Error connecting to the Tomcat process. - Original Message - From: "mike niemaz" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 11:45 AM Subject: SOLVED: open_socket, connect() failed errno = 146 (WAS upgrading to mod_jk ajp13 won't work) I solved my problem by removing the work/* directories before launching tomcat apache. --mike mike niemaz wrote: Just to add I kepp getting this error in tail mod_jk.log: [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 Maybe I should recompile my mod_jk.so --mike
Re: Finalization of session attribute
William Brogden wrote: What about the Runtime method runFinalization()? That is supposed to force execution of all GCed objects that have not yet been finalized. Every 30m i`m calling System.gc(), but memory taked by session attributes (and maybe by session too?) isn`t released. :( - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: open_socket, connect() failed errno = 111
... # # workers.tomcat_home should point to the location where you # installed tomcat. This is where you have your conf, webapps and lib # directories. # #workers.tomcat_home=c:\jakarta-tomcat workers.tomcat_home=/opt/jakarta-tomcat-3.2.1 # # workers.java_home should point to your Java installation. Normally # you should have a bin and lib directories beneath it. # #workers.java_home=c:\jdk1.2.2 workers.java_home=/usr/local/jdk1.3 # # You should configure your environment slash... ps=\ on NT and / on UNIX # and maybe something different elsewhere. # #ps=\ ps=/ # #-- ADVANCED MODE #- # ... Nothing changed below... -andi - Original Message - From: "GOMEZ Henri" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 12:29 PM Subject: RE: open_socket, connect() failed errno = 111 Oups forgot to ask for workers.properties "Pour la plupart des hommes, se corriger consiste changer de dfauts." -- Voltaire -Original Message- From: Andreas Neuenschwander [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 12:23 PM To: [EMAIL PROTECTED] Subject: Re: open_socket, connect() failed errno = 111 server.xml: ... !-- Apache AJP12 support. This is also used to shut down tomcat. -- Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/ Parameter name="port" value="8007"/ /Connector !-- Apache AJP13 support. -- Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler" / Parameter name="port" value="8009"/ /Connector ... Host name="domain.com" Context path="" docBase="/www/server/doc/domain/xml" debug="0" /Context /Host httpd.conf: include /opt/jakarta-tomcat-3.2.1/conf/mod_jk.conf mod_jk.conf: ### # Auto generated configuration. Dated: Tue Jan 09 20:42:14 CET 2001 ### # # The following line instructs Apache to load the jk module # LoadModule jk_module libexec/mod_jk.so AddModule mod_jk.c JkWorkersFile /opt/jakarta-tomcat-3.2.1/conf/workers.properties JkLogFile /opt/jakarta-tomcat-3.2.1/logs/mod_jk.log # # Log level to be used by mod_jk # JkLogLevel error VirtualHost 100.100.100.100:80 DocumentRoot /www/server/doc/domain/xml ServerName domain.com ServerAlias www.domain.com ServerAdmin [EMAIL PROTECTED] Location "WEB-INF/" AllowOverride None deny from all /Location Location "META-INF/" AllowOverride None deny from all /Location JkMount /*.jsp ajp13 JkMount /*.xml ajp13 JkMount /servlet/* ajp13 /VirtualHost VirtualHost 100.100.100.100:80 ... /VirtualHost - Original Message - From: "GOMEZ Henri" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 12:11 PM Subject: RE: open_socket, connect() failed errno = 111 Are you sure of your adress/port/protocol. Could you send part of httpd.conf and server.xml ;-) "Pour la plupart des hommes, se corriger consiste changer de dfauts." -- Voltaire -Original Message- From: Andreas Neuenschwander [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 12:01 PM To: [EMAIL PROTECTED] Subject: open_socket, connect() failed errno = 111 I compiled and installed mod_jk and connect with ajp13 to the apache server (ver. 1.3.11) Everything works fine, but when I make a load test the connector stops after some time and prints out the following messages to the mod_jk.log file. I changed the jdk version and recompiled the mod_jk module, but with no success... Did anyone had the same problem? -andi [jk_ajp13_worker.c (619)]: Error reading request [jk_ajp13_worker.c (203)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111 [jk_ajp13_worker.c (619)]: Error reading request [jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed errno = 111 [jk_ajp13_worker.c (584)]: Error connecting to the Tomcat process. [jk_ajp13_worker.c (203)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111 [jk_ajp13_worker.c (619)]: Error reading request [jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed errno = 111
RE: open_socket, connect() failed errno = 111
Miss things in workers.properties Here is an example : workers.tomcat_home=/var/tomcat workers.java_home=/opt/IBMJava2-13/ ps=/ worker.list=ajp12, ajp13 worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.inprocess.type=jni worker.inprocess.class_path=$(workers.tomcat_home)$(ps)classes worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)xml.jar worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)jaxp.jar worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)parser.jar worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)jasper.jar worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)servlet.jar worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)webserver.jar worker.inprocess.class_path=$(workers.java_home)$(ps)lib$(ps)tools.jar worker.inprocess.cmd_line=-config worker.inprocess.cmd_line=$(workers.tomcat_home)/conf/jni_server.xml worker.inprocess.cmd_line=-home worker.inprocess.cmd_line=$(workers.tomcat_home) worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(p s)jvm.dll worker.inprocess.stdout=$(workers.tomcat_home)$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.tomcat_home)$(ps)inprocess.stderr worker.inprocess.sysprops=tomcat.home=$(workers.tomcat_home) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Security Exception
hi, I have a problem with creating instances from my Servlet (I'm using stand-alone tomcat 3.2.1) after setting SecurityManager. here is a demonstration Servlet that issues the problem: I've created the attached Servlet and placed it under "jakarta-tomcat-3.2.1\webapps\examples\WEB-INF\classes". then when I use internet Explorer to generate the GET request with the following URL: "http://localhost:8080/examples/servlet/Test" I get the Exception (at the end of this message). when I delete either line #1 or #2, there is no problem. any ideas? help would be greatly appreciated. ofer note: in the original problem I had to set a RMISecurityManager in order to use rmi. / import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class Test extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { //line #1 System.setSecurityManager(new SecurityManager()); //line #2 new Test(); PrintWriter out = response.getWriter(); out.write("test passed"); out.close(); } } / exception: 2001-01-17 12:31:02 - PoolTcpEndpoint: Endpoint ServerSocket[addr=0.0.0.0/0.0.0. 0,port=0,localport=8080] ignored security exception: java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1493 accept,resolve) - java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1493 accept,resolve) at java.security.AccessControlContext.checkPermission(AccessControlContext.java :272) at java.security.AccessController.checkPermission(AccessController.java:399) at java.lang.SecurityManager.checkPermission(SecurityManager.java:545) at java.lang.SecurityManager.checkAccept(SecurityManager.java:1162) at java.net.ServerSocket.implAccept(ServerSocket.java:245) at java.net.ServerSocket.accept(ServerSocket.java:222) at org.apache.tomcat.service.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java: 286) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:402) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Thanks in advance, Alon. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
re NoSuchMethod Error
Anyone know why this compiles OK but then complains about not being able to find a Method that exists. Context log: path="" Error in Viewer service() : null java.lang.NoSuchMethodErrorat org.apache.xpath.axes.ChildWalkerOneStep.nextNode(ChildWalkerOneStep.java:10 0) at org.apache.xpath.axes.LocPathIterator.nextNode(LocPathIterator.java:436) at org.apache.xalan.transformer.TransformerImpl.transformSelectedNodes(Transfor merImpl.java:1253) at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav a:177) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform erImpl.java:1483) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j ava:1400) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j ava:702)at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j ava:657)at Viewer.doGet(Viewer.java:75) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597) at org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338 ) at java.lang.Thread.run(Thread.java:484) Context log: path="" bInternal Servlet Error:/bbr pre java.lang.NoSuchMethodErrorat org.apache.xpath.axes.ChildWalkerOneStep.nextNode(ChildWalkerOneStep.java:10 0) at org.apache.xpath.axes.LocPathIterator.nextNode(LocPathIterator.java:436) at org.apache.xalan.transformer.TransformerImpl.transformSelectedNodes(Transfor merImpl.java:1253) at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav a:177) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform erImpl.java:1483) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j ava:1400) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j ava:702)at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j ava:657)at Viewer.doGet(Viewer.java:75) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597) at org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338 ) at java.lang.Thread.run(Thread.java:484) /pre - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: mok_jkapache
Yes I include it but it is don't work again - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 1:57 AM Subject: Re: mok_jkapache hi include either the tomcat.conf or tomcat.conf-auto file(i.e found in tomcat conf. folder) in to http.conf(apache folder) like Include /home/apache/conf/tomcat.conf hope it helps sam. Quoting Deian Chepishev [EMAIL PROTECTED]: Hi, Can anyone tell me please how i can make working together apache and tomcat 3.2.1 with mod_jk when I install it and try to make something the server gives me the source of the jsp or browser ask me for saving file mail me :[EMAIL PROTECTED] short Messaging Servivce (SMS) :www.geocities.com/samteed/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: mok_jkapache
Hi,Deian: What is your platform? my platform:Redhat6.2 apache1.3.14 tomcat3.2.1 1.Windows98 (1)Install apache and tomcat3.2.1 (2)Copy mod_jk.dll to modules directory of apache. (3)Start tomcat3.2.1,where mod_jk-conf is produced. (4)(Stop tomcat3.2.1) (5)Insert "Include tomcat's install dir>\conf\mod_jk.conf-auto" into last line of httpd.conf of apache. (6)Start tomcat3.2.1 (7)Start apache. 2.Linux In advance,apache should be compiled with DSO. ./configure --enable-module=so --enable-rule=max (1)Install apache and tomcat3.2.1 (2)Download tomcat3_2_1-src.tar.gz. * tar zxvf tomca3_2_1-src.tar.gz * cd tomcat3.2.1-src/src/native/apache1.3 */usr/local/apache/bin/apxs -o mod_jk.so -I../jk -I/usr/local/jdk inst dir>/include -I/usr/local/jdk inst dir>/include/linux -c *.c ../jk/*.c (For detail,refer to mod_jk-howto.html) As a result,mod_jk.so is produced. (3)Copy mod_jk.so to libexe dir of apache. (4)Start tomcat3.2.1,where mod_jk-conf is produced. (5)(Stop tomcat3.2.1) (6)Insert "Include tomcat's install dir>\conf\mod_jk.conf-auto" into last line of httpd.conf of apache. (7)Start tomcat3.2.1 (8)Start apache. I am a beginner ,but make it with apache1.3.14 and tomcat3.2.1. Deian Chepishev wrote: Hi,Can anyone tell me please how i can make working together apache and tomcat 3.2.1 with mod_jkwhen I install it and try to make something the server gives me the source of the jsp or browser ask me for saving file
Re: mok_jkapache
Yes I do the things in the same way and it do no work RHLinux 6.2 apache 1.3.14 tomcat 3.2.1 jdk-1.2.2 - Original Message - From: NSB)Hiroshi Kasamatsu To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 4:16 AM Subject: Re: mok_jkapache Hi,Deian: What is your platform? my platform:Redhat6.2 apache1.3.14 tomcat3.2.1 1.Windows98 (1)Install apache and tomcat3.2.1 (2)Copy mod_jk.dll to modules directory of apache. (3)Start tomcat3.2.1,where mod_jk-conf is produced. (4)(Stop tomcat3.2.1) (5)Insert "Include tomcat's install dir\conf\mod_jk.conf-auto" into last line of httpd.conf of apache. (6)Start tomcat3.2.1 (7)Start apache. 2.Linux In advance,apache should be compiled with DSO. ./configure --enable-module=so --enable-rule=max (1)Install apache and tomcat3.2.1 (2)Download tomcat3_2_1-src.tar.gz. * tar zxvf tomca3_2_1-src.tar.gz * cd tomcat3.2.1-src/src/native/apache1.3 */usr/local/apache/bin/apxs -o mod_jk.so -I../jk -I/usr/local/jdk inst dir/include -I/usr/local/jdk inst dir/include/linux -c *.c ../jk/*.c (For detail,refer to mod_jk-howto.html) As a result,mod_jk.so is produced. (3)Copy mod_jk.so to libexe dir of apache. (4)Start tomcat3.2.1,where mod_jk-conf is produced. (5)(Stop tomcat3.2.1) (6)Insert "Include tomcat's install dir\conf\mod_jk.conf-auto" into last line of httpd.conf of apache. (7)Start tomcat3.2.1 (8)Start apache. I am a beginner ,but make it with apache1.3.14 and tomcat3.2.1. Deian Chepishev wrote: Hi,Can anyone tell me please how i can make working together apache and tomcat 3.2.1 with mod_jkwhen I install it and try to make something the server gives me the source of the jsp or browser ask me for saving file
Re: mok_jkapache
Sorry, ./configure --enable-module=so --enable-shared=max "NSB)Hiroshi Kasamatsu" wrote: Hi,Deian: What is your platform? my platform:Redhat6.2 apache1.3.14 tomcat3.2.1 1.Windows98 (1)Install apache and tomcat3.2.1 (2)Copy mod_jk.dll to modules directory of apache. (3)Start tomcat3.2.1,where mod_jk-conf is produced. (4)(Stop tomcat3.2.1) (5)Insert "Include tomcat's install dir>\conf\mod_jk.conf-auto" into last line of httpd.conf of apache. (6)Start tomcat3.2.1 (7)Start apache. 2.Linux In advance,apache should be compiled with DSO. ./configure --enable-module=so --enable-rule=max (1)Install apache and tomcat3.2.1 (2)Download tomcat3_2_1-src.tar.gz. * tar zxvf tomca3_2_1-src.tar.gz * cd tomcat3.2.1-src/src/native/apache1.3 */usr/local/apache/bin/apxs -o mod_jk.so -I../jk -I/usr/local/jdk inst dir>/include -I/usr/local/jdk inst dir>/include/linux -c *.c ../jk/*.c (For detail,refer to mod_jk-howto.html) As a result,mod_jk.so is produced. (3)Copy mod_jk.so to libexe dir of apache. (4)Start tomcat3.2.1,where mod_jk-conf is produced. (5)(Stop tomcat3.2.1) (6)Insert "Include tomcat's install dir>\conf\mod_jk.conf-auto" into last line of httpd.conf of apache. (7)Start tomcat3.2.1 (8)Start apache. I am a beginner ,but make it with apache1.3.14 and tomcat3.2.1. Deian Chepishev wrote: Hi, Can anyone tell me please how i can make working together apache and tomcat 3.2.1 with mod_jkwhen I install it and try to make something the server gives me the source of the jsp or browser ask me for saving file
Re: Is there nobody who could help me with my session problem?
Kief Morris wrote: Martin Grneberg typed the following on 01:42 AM 1/17/2001 +0100 Because cookies are disabled in many browsers, I prefere sessionmangment with urlrewriting. (server.xml -- noCookies) On normal http requests the sessionmanagment make a good job. But changing to a safe https SSL connection for sensitive data the session is lost and a new session is created. Every time I reload this (https) page a new session is returned!?? Tomcat won't add the session ID to a URL if the port numbers don't match, which they won't when you're moving from HTTP to HTTPS. If you reload the same URL, which doesn't have a session ID in it, and don't accept cookies, you aren't sending a session ID to Tomcat, so it has to generate a new session every time. Nope. The only thing I can think of, other than submitting a patch so Tomcat doesn't use the port number to determine whether a URL should be rewritten (I'm not sure whether such a patch would be accepted), is to to manually put the ID into the URL yourself. The Servlet Spec (2.3) says: A servlet context can not be shared across virtual hosts. But there is no definition for "virtual host". Using URL rewriting, it is up to tomcat, to define this. If tomcat is running standalone, this may be possible. Running as a backend for a webserver, it is not possible. Using cookies, it is up to the browser, to define the term "virtual host" as the browser stores the cookies for a host. As you might have expected different browsers take different decisions in this example: https://nohost.nowhere.net/... https://nohost.nowhere.net:443/... Netscape (at least running on linux) stores two cookies for two different hosts whereas IE (not on linux) uses the same cookie for both URLs. It should be left to the tomcat administrator, to define which ports belong to the same virtual host. Jrg -- -- Jrg Ahrens_/ brainCAPITAL GmbH_/_/ Tel.: 0511/8488 5303 _/ _/ email: [EMAIL PROTECTED]_/_/_/_/_/ ._/_/_/_/ _/ -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
can't get tomcat to write the mod_jk.conf-auto file
I had tomcat and apache up and running with jserv on nt4, but I can't get tomcat to write the conf file apache with mod_jk. any ideas? Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Session problem with WAP protocol
Hi all I'm working with the WAP protocol, but i get the following error when i load a session: java.lang.IllegalArgumentException: Cookie name Path is a reserved token Any comments? I'm using Tomcat 3.2.1 and the wap-emulator WINWAP Thanks in advance! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Session problem with WAP protocol
I cann't explain the error message with out knowing more about the code; but if you are trying to use cookies then that could be your problem. To my knowledge (and I will point out that I have never tried it; so hopefully somebody will back me up when I say that) WAP does not support cookies. - Chris. -Original Message- From: Mauricio Nuez [mailto:[EMAIL PROTECTED]] Sent: 17 January 2001 13:07 To: [EMAIL PROTECTED] Subject: Session problem with WAP protocol Hi all I'm working with the WAP protocol, but i get the following error when i load a session: java.lang.IllegalArgumentException: Cookie name Path is a reserved token Any comments? I'm using Tomcat 3.2.1 and the wap-emulator WINWAP Thanks in advance! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Re: Is there nobody who could help me with my session problem?
First of all thank you Kief and Jrg for your answers. Ok, I am a beginner in webserver konfiguration and do not much know about "virtual hosting" and webserver things. I configured Tomcat with SSL like it is explained in the Doku. Because I will use Tomcat in a standalone configuration I changed the http Port to 80 and uncomment the connector for SSL on port 443. In my application a user will have a "shopping-basket" (my english is very bad :-( ) which is stored in the users session. When he will by the things in the basket the connection is changed from http to https. But when the session gets lost on changing protokoll and port, how will I get the session of the user? Do I have to implement my own sessionmanagment? (using PathInfo or so???) Another stupid question: Is it possible to configure http and https on the same port? Martin Jrg Ahrens wrote: Kief Morris wrote: Martin Grneberg typed the following on 01:42 AM 1/17/2001 +0100 Because cookies are disabled in many browsers, I prefere sessionmangment with urlrewriting. (server.xml -- noCookies) On normal http requests the sessionmanagment make a good job. But changing to a safe https SSL connection for sensitive data the session is lost and a new session is created. Every time I reload this (https) page a new session is returned!?? Tomcat won't add the session ID to a URL if the port numbers don't match, which they won't when you're moving from HTTP to HTTPS. If you reload the same URL, which doesn't have a session ID in it, and don't accept cookies, you aren't sending a session ID to Tomcat, so it has to generate a new session every time. Nope. The only thing I can think of, other than submitting a patch so Tomcat doesn't use the port number to determine whether a URL should be rewritten (I'm not sure whether such a patch would be accepted), is to to manually put the ID into the URL yourself. The Servlet Spec (2.3) says: A servlet context can not be shared across virtual hosts. But there is no definition for "virtual host". Using URL rewriting, it is up to tomcat, to define this. If tomcat is running standalone, this may be possible. Running as a backend for a webserver, it is not possible. Using cookies, it is up to the browser, to define the term "virtual host" as the browser stores the cookies for a host. As you might have expected different browsers take different decisions in this example: https://nohost.nowhere.net/... https://nohost.nowhere.net:443/... Netscape (at least running on linux) stores two cookies for two different hosts whereas IE (not on linux) uses the same cookie for both URLs. It should be left to the tomcat administrator, to define which ports belong to the same virtual host. Jrg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Unable to compile class for JSPerror: HELP!
I am running tomcat stand alone on windows2000 with jdk1.3 Whenever I attempt to compilea jsp that instantiates a class of mine that has 3 levels of inheritance with some methods that are named the same I get a... org.apache.jasper.JasperException: Unable to compile class for JSPerror: An error has occurred in the compiler; Please visit the URL http://www.ibm.com/java/jdk/support for information on investigating/reporting this problem. In the browser and a sun.tools.java.CompilerError: duplicate addition in the console I have researched the java error on the sun site and they say it was a problem with the javac compiler on 1.2.2 and it is fixed on 1.3 I can compile the source that tomcat creates from a command line with no problem And just to confirm that I was really using that jdk install I renamed the tools.jar once and got an error in the browser saying it couldn't find those classes So it appears that this problem only occurs when tomcat tries to compile the jsp even though the jdk compiler doesn't have any issues.. To add another twist I am using the Tomcat environment in VisualAge and it has been going great. Tomcat is a good fit for our app dev and hosting shop in a lot of ways so I REALLY want to figure this one out Thanks in advance. Bob Jones [EMAIL PROTECTED]
RE: Unable to compile class for JSPerror: HELP!
Why don't you compile you code as a bean and just usebean it from your jsp pages? -Original Message- From: Bob Jones [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 1:37 PM To: [EMAIL PROTECTED] Subject: Unable to compile class for JSPerror: HELP! I am running tomcat stand alone on windows2000 with jdk1.3 Whenever I attempt to compile a jsp that instantiates a class of mine that has 3 levels of inheritance with some methods that are named the same I get a... org.apache.jasper.JasperException: Unable to compile class for JSPerror: An error has occurred in the compiler; Please visit the URL http://www.ibm.com/java/jdk/support for information on investigating/reporting this problem. In the browser and a sun.tools.java.CompilerError: duplicate addition in the console I have researched the java error on the sun site and they say it was a problem with the javac compiler on 1.2.2 and it is fixed on 1.3 I can compile the source that tomcat creates from a command line with no problem And just to confirm that I was really using that jdk install I renamed the tools.jar once and got an error in the browser saying it couldn't find those classes So it appears that this problem only occurs when tomcat tries to compile the jsp even though the jdk compiler doesn't have any issues.. To add another twist I am using the Tomcat environment in VisualAge and it has been going great. Tomcat is a good fit for our app dev and hosting shop in a lot of ways so I REALLY want to figure this one out Thanks in advance. Bob Jones [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Session problem with WAP protocol
Thanks! Wap support cookies. My servlet create the session, but when i reload the page, the Exception is generated. I guess the solution is change the name to the cookie associated to the session. I'm reading the documentation, but i can find (yet) where apply the change. - Original Message - From: "Christopher Kirk" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 10:18 AM Subject: RE: Session problem with WAP protocol I cann't explain the error message with out knowing more about the code; but if you are trying to use cookies then that could be your problem. To my knowledge (and I will point out that I have never tried it; so hopefully somebody will back me up when I say that) WAP does not support cookies. - Chris. -Original Message- From: Mauricio Nuez [mailto:[EMAIL PROTECTED]] Sent: 17 January 2001 13:07 To: [EMAIL PROTECTED] Subject: Session problem with WAP protocol Hi all I'm working with the WAP protocol, but i get the following error when i load a session: java.lang.IllegalArgumentException: Cookie name Path is a reserved token Any comments? I'm using Tomcat 3.2.1 and the wap-emulator WINWAP Thanks in advance! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
NT Service
I know this isn't a Tomcat question, but any help would be appreciated. I remember seeing a post back in the days of Tomcat 3.1 about starting java apps as an nt service, but I haven't been able to locate the posting. I have a small java app that I need to run as a service. I would rather use a solution that has already been written that writing one myself. Does anyone know of anything available. Thanks. Dave. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: mok_jkapache + no mod_jk.conf-auto file
I just saw your instructions for setting tomcat up with mod_jk. I've been doing this for the whole day now, but my tomcat does not greate the mod_jk.conf-auto file. do you have any idea why? -Original Message-From: ext NSB)Hiroshi Kasamatsu [mailto:[EMAIL PROTECTED]]Sent: 17 January, 2001 14:16To: [EMAIL PROTECTED]Subject: Re: mok_jkapacheHi,Deian: What is your platform? my platform:Redhat6.2 apache1.3.14 tomcat3.2.1 1.Windows98 (1)Install apache and tomcat3.2.1 (2)Copy mod_jk.dll to modules directory of apache. (3)Start tomcat3.2.1,where mod_jk-conf is produced. (4)(Stop tomcat3.2.1) (5)Insert "Include tomcat's install dir\conf\mod_jk.conf-auto" into last line of httpd.conf of apache. (6)Start tomcat3.2.1 (7)Start apache. 2.Linux In advance,apache should be compiled with DSO. ./configure --enable-module=so --enable-rule=max (1)Install apache and tomcat3.2.1 (2)Download tomcat3_2_1-src.tar.gz. * tar zxvf tomca3_2_1-src.tar.gz * cd tomcat3.2.1-src/src/native/apache1.3 */usr/local/apache/bin/apxs -o mod_jk.so -I../jk -I/usr/local/jdk inst dir/include -I/usr/local/jdk inst dir/include/linux -c *.c ../jk/*.c (For detail,refer to mod_jk-howto.html) As a result,mod_jk.so is produced. (3)Copy mod_jk.so to libexe dir of apache. (4)Start tomcat3.2.1,where mod_jk-conf is produced. (5)(Stop tomcat3.2.1) (6)Insert "Include tomcat's install dir\conf\mod_jk.conf-auto" into last line of httpd.conf of apache. (7)Start tomcat3.2.1 (8)Start apache. I am a beginner ,but make it with apache1.3.14 and tomcat3.2.1. Deian Chepishev wrote: Hi,Can anyone tell me please how i can make working together apache and tomcat 3.2.1 with mod_jkwhen I install it and try to make something the server gives me the source of the jsp or browser ask me for saving file
AW: NT Service
Try this .. http://jsrvany.sourceforge.net/ It works fine on W2k. -Ursprngliche Nachricht- Von: David Oxley [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 17. Jnner 2001 14:53 An: [EMAIL PROTECTED] Betreff: NT Service I know this isn't a Tomcat question, but any help would be appreciated. I remember seeing a post back in the days of Tomcat 3.1 about starting java apps as an nt service, but I haven't been able to locate the posting. I have a small java app that I need to run as a service. I would rather use a solution that has already been written that writing one myself. Does anyone know of anything available. Thanks. Dave. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Session problem with WAP protocol
On Wednesday 17 January 2001 15:00, you wrote: Thanks! Wap support cookies. But you can't be sure that all wap browsers do. If you would like to prepare 100% available service, you must use url rewriting. IMHO. Regards Grzegorz Skorupa | [EMAIL PROTECTED] | http://pikosoft.and.pl | ICQ#: 2056044 | AIM: greskor | - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Session problem with WAP protocol
Thanks. It's a better option. - Original Message - From: "Grzegorz Skorupa" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 10:19 AM Subject: Re: Session problem with WAP protocol On Wednesday 17 January 2001 15:00, you wrote: Thanks! Wap support cookies. But you can't be sure that all wap browsers do. If you would like to prepare 100% available service, you must use url rewriting. IMHO. Regards Grzegorz Skorupa | [EMAIL PROTECTED] | http://pikosoft.and.pl | ICQ#: 2056044 | AIM: greskor | - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Multiple Tomcat instances on one machine
Besides server.xml, how do I setup Tomcat so that each instance has its own copy of the other configuration files (tomcat-users.xml, workers.properties, etc) in conf? I don't see anyway of setting the path to the conf directory. Is that always based on $TOMCAT_HOME? Bill --- Hi William, Tomcat *can* share binaries across multiple running instances. However, as I found the docs a bit confusing when I tried to get this working, here's how to do it: create the following directory structure for each instance (eg under each user's home directory if you want an instance per user): somedirname + conf + server.xml + work Start tomcat with the -f option, specifying the appropriate server.xml: $TOMCAT_HOME/bin/tomcat.sh start -f /somedirname/conf/server.xml I use a single context tag with an absolute docBase in the server.xml to indicate where the webapp's files are, but I guess you could create a webapps directory as a sibling to the "conf" directory to hold webapps. I guess that you can also point multiple instances to the same docBase - but haven't tried it. Cheers, Simon -Original Message- From: William Au [SMTP:[EMAIL PROTECTED]] Sent: Thursday, January 11, 2001 3:10 PM To: [EMAIL PROTECTED] Subject: Multiple Tomcat instances on one machine I would like to run multiple Tomcat instances on one machine, each using a different port number. Do I need to have a seperate, full copy ofTOMCAT_HOME for each instance? Or can I just have one common set of binaries with multiple server.xml and other configuration files? Bill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Question regarding starting and shuting the tomcat server remotely through a browser
Friends, Is it possible to start and shutdown the tomat server remotely via a browser like the Iplanet server? Any help on this would be appreciated. Thanks Gopal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
native_lib in jni_server.xml
The native_lib parameter in my jni_server.xml has an value that is Windows specific. What should it be for Solaris? !-- JNI connector, make sure that you update the native_lib Parameter to point to your jni_connect.dll -- Connector className="org.apache.tomcat.service.JNIEndpointConnector" Parameter name="native_lib" value="c:/jakarta-tomcat/bin/win32/i386/jni_connect.dll"/ /Connector Bill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Runaway Apache daemon
What are the values that others have used for the StartServers directives? I've got pretty powerful boxes which are not being used to their fullest at the current Apache directive levels (512 max servers), so lowering these values will only impact my performance further. Are you using AJP12 or AJP13, mod_jk or mod_jserv? Thanks. James -Original Message- From: Cato, Christopher [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 4:29 AM To: '[EMAIL PROTECTED]' Subject: RE: Runaway Apache daemon This happened to me too, when I'd set the values to high in the StartServers directives in httpd.conf. I set all the values a bit high initially, but cut them in half when this problem occurred to me. I never checked how much juice the httpd processes were using, just noticed the unusually large amount of java threads in the ps output. Reducing the amount of servers started and the amount of children started fixed it. /Christopher Cato -Original Message- From: James Morgenstein [mailto:[EMAIL PROTECTED]] Sent: den 17 januari 2001 04:43 To: [EMAIL PROTECTED] Subject: Runaway Apache daemon All- Anyone having CPU usage problems with Apache 1.3.14 with mod_jk.so (using AJP 1.2) running Tomcat 3.2 on Redhat Linux 6.2? I'm having a rather perplexing intermittent problem where at random intervals I am getting a runaway Apache process. I have not found a pattern or reproducable set of steps to cause this to happen. After some indeterminant amount of time I see one or more httpd processes in top that are using extremely large amounts of CPU (20%). I can kill the individual process or restart Apache to make the problem go away for a short time. This definitely appears to be load related as the higher the load, the more often this occurs. I have tried recompiling mod_jk numerous times. Anyone have any other ideas or experiences? Thanks. James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Multiple Tomcat instances on one machine
This is not the case for me. I have verified which work directory is being used by removing everything in the work directory at both the top level and the instance level before starting Tomcat. After starting Tomcat, I noticed that the top level work directory is being used. I can get around that by setting the workDir attribute for the ContextManager in server.xml. But now I need to customize the other configuration files in conf for each instance. By the way, I am running Tomcat 3.2.1 on Solaris 7. Bill Kitching Simon wrote: -Original Message- From: William Au [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 3:42 PM To: [EMAIL PROTECTED] Cc: Kitching Simon Subject: Re: Multiple Tomcat instances on one machine Besides server.xml, how do I setup Tomcat so that each instance has its own copy of the other configuration files (tomcat-users.xml, workers.properties, etc) in conf? I don't see anyway of setting the path to the conf directory. Is that always based on $TOMCAT_HOME? Bill [Kitching Simon] I have noticed that merely by specifying the -f flag for the server.xml, the work directory is assumed to be at location ../work relative to the server.xml file. As I don't use any other config files (though the work directory location is significant for me), this does the job. I presume that all the other config files are looked for in the same directory as the server.xml file. Is this not the case?? --- Hi William, Tomcat *can* share binaries across multiple running instances. However, as I found the docs a bit confusing when I tried to get this working, here's how to do it: create the following directory structure for each instance (eg under each user's home directory if you want an instance per user): somedirname + conf + server.xml + work Start tomcat with the -f option, specifying the appropriate server.xml: $TOMCAT_HOME/bin/tomcat.sh start -f /somedirname/conf/server.xml I use a single context tag with an absolute docBase in the server.xml to indicate where the webapp's files are, but I guess you could create a webapps directory as a sibling to the "conf" directory to hold webapps. I guess that you can also point multiple instances to the same docBase - but haven't tried it. Cheers, Simon -Original Message- From: William Au [SMTP:[EMAIL PROTECTED]] Sent: Thursday, January 11, 2001 3:10 PM To: [EMAIL PROTECTED] Subject: Multiple Tomcat instances on one machine I would like to run multiple Tomcat instances on one machine, each using a different port number. Do I need to have a seperate, full copy ofTOMCAT_HOME for each instance? Or can I just have one common set of binaries with multiple server.xml and other configuration files? Bill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Problems with tomcat in IIS5 - Windows 2000
Thanks! I'll get back to you to let you know how I fared. Hermund - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
[Fwd: about JDBC Realm with mysql DB]
It would be very nice if someone can post the basically needed entries in the web.xml file for a JDBCRealm. I want to make it using a mysql DB. I want to make avaliable the access to the protected areas to the entry which are in the DB and not to the ones that are in the web.xml: auth-constraint !-- Anyone with one of the listed roles may access this area -- role-nametomcat/role-name role-namerole1/role-name /auth-constraint I was able to arrive to the point where in the console appears: ContextManager: JDBCRealm: Auth ok, user=test but in both cases (when i entry a good info and info that is not in the DB) Im redirect to the same error page. P.D.: Linux 2.2.13 - Tomcat 3.2.1 Thanks a lot. Marcos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
unable to use ajp13 ...
I can't figure out how to make tomcat use ajp13. The mod_jk-auto file keeps assigning ajp12 to each of my contexts ;-( Any ideas? --mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: unable to use ajp13 ...
CPC Livelink Admin wrote: You need to make a copy of mod_jk-auto because it will alwys be generated with ajp12 connections. So make a copy, mod it to use ajp13, and refer apache to your copy instead of the auto file. -Original Message- From: Barclay, Tom [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 10:45 AM To: '[EMAIL PROTECTED]' Subject: RE: unable to use ajp13 ... Did you set the AJP13 protocol in the JkMount directives? Hi, Yes I set up the JkMount directives in mod_jk.conf file such as: JkMount /docsoul/servlet/* ajp13 JkMount /docsoul/jsp/*.jsp ajp13 This mod_jk.conf is a copy of the auto generated mod_jk.conf-auto with some modifications (ajp12 changed by ajp13, some noisy mounted context removed (like .cvsignore, CVS!!!), and more ...). And there's a link to it in my http.conf such as: Include /home/niemaz/DocumentSoul/build/tomcat/conf/mod_jk.conf But I'm not sure ajp13 is really used indeed How could I check this out? Thanx, --mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
tomcat.policy
I posted about this earlier. I have now decided to not bother using the -security switch and I get a Java error about permission denied when I try to start tomcat. Does anyone have a tomcat.policy that works, maybe I can work out what I haven't done, I think it is probably something simple. Regards, Neil Weller - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: unable to use ajp13 ...
There should be something like 2001-01-17 10:27:14 - PoolTcpConnector: Starting Ajp13ConnectionHandler on 8009 in your tomcat window mike niemaz wrote: CPC Livelink Admin wrote: You need to make a copy of mod_jk-auto because it will alwys be generated with ajp12 connections. So make a copy, mod it to use ajp13, and refer apache to your copy instead of the auto file. -Original Message- From: Barclay, Tom [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 10:45 AM To: '[EMAIL PROTECTED]' Subject: RE: unable to use ajp13 ... Did you set the AJP13 protocol in the JkMount directives? Hi, Yes I set up the JkMount directives in mod_jk.conf file such as: JkMount /docsoul/servlet/* ajp13 JkMount /docsoul/jsp/*.jsp ajp13 This mod_jk.conf is a copy of the auto generated mod_jk.conf-auto with some modifications (ajp12 changed by ajp13, some noisy mounted context removed (like .cvsignore, CVS!!!), and more ...). And there's a link to it in my http.conf such as: Include /home/niemaz/DocumentSoul/build/tomcat/conf/mod_jk.conf But I'm not sure ajp13 is really used indeed How could I check this out? Thanx, --mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Bug report
Does this happen on both a POST and a GET? That 2048 limit is Netscape limit for GETs I think also (if I recall correctly). Does seem like a potential problem though . . . Zsolt Koppany wrote: Hi, I use tomcat-3.2.1 under Linux and found probably a bug. When the request is longer then 2048 bytes tomcat produces an ArroyIndexOutOfBoundExceptions in HttpRequestAdapter.parseHeaderFiled. After I changed bufSize = 2048 to 10240 the error does not appear (my request is shorter). I tried to fix the problem in HttpRequestAdapter.readHeader where the "buf" array should be reallocated, but I found no working solution. Do you have any better ideas? -- Zsolt Koppany Intland GmbH www.intland.com Schulze-Delitzsch-Strasse 16 D-70565 Stuttgart Tel: +49-711-7871080 Fax: +49-711-7871017 -- --- Geoff Lane [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
reloading classes in tomcat 3.2
Hi, I am a new user of tomcat 3.2 and I'm trying to implements few classes with tag libraries. In order to do so I have some packages that I wanted to use not under the tomcat directory, so in order to use them I added the path to those packages in the tomcat.bat file. I think that is the reason that the classes don't reload automatically after I changed them and I have to restart the tomcat again and again (question 6.4 in the FAQ). So, my question is divided into two parts: 1) how can I reload the classes automatically when I change them, without removing the package directory from the path ? 2) If (1) is not possible, how can I use packages and classes that are not under the root ? I need the answers ASAP and I will be more than thankful to have them, Thank you very very much, Yaron Klein. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: unable to use ajp13 ...
Regis Muller wrote: There should be something like 2001-01-17 10:27:14 - PoolTcpConnector: Starting Ajp13ConnectionHandler on 8009 in your tomcat window There is. But it does not mean that this handler is used to my X context, does it? How can I be real sure that my X context (and according req) is/are uploaded through this ajp13 handler? --mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Question
There are many free JDBC drivers. If you are looking for sql*server, there is www.freetds.org. -Original Message- From: Daniel Merchante [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 5:44 PM To: '[EMAIL PROTECTED]' Subject: Question Hi there: At this moment we are trying to implement the project in IIS 5, we use a jakarta-tomcat container and we still try to use the jdbc-odbc bridge(instead of spending money in a database driver). The jsp and servlets are being executed, but after they have been accessed, if there is a database connection inside them, Dr. Watson for windows NT appears and displays this message: 'An application error has occurred and an application error log is being generated. java.exe Exception: access violation(0x005), Address: 0x77f6ce4c Do you know what could be wrong?, if not, do you know anyone I could contact for suggestions, I would really appreciate it. Thanks. Dan. The information contained in this email is confidential and is intended for the recipient only. If you have received it in error, please notify us immediately by reply email and then delete it from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person or store or copy this information in any medium. The views contained in this email are those of the author and not necessarily those of Brite Software Ltd. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Is there nobody who could help me with my session problem?
Martin Grneberg wrote: But when the session gets lost on changing protokoll and port, how will I get the session of the user? Do I have to implement my own sessionmanagment? (using PathInfo or so???) Another stupid question: Is it possible to configure http and https on the same port? You may configure it but it doesn't work :-) Your configuration looks good, nothing strange or virtual about it. If you ask me, a server is defined by the content it provides. So this would be one server on two ports (80 and 443). If you don't want to hack tomcat, the only way to have a user session lasting longer than one https request using url rewriting is building your own session management with PathInfo or RequestParameters :-(( If you want to hack tomcat: - you have to make "https" a valid protocol by adding -Djava.protocol.handler.pkgs=sun.net.www.protocol\|com.sun.net.ssl.internal.www.protocol somewhere in the startscript of tomcat. This should provide a session over severeal requests with https and urlrewriting. - you have to change HttpServletResponseFacade.java isEncodeable has some code like if (request.getServerPort() != urlPort) { return (false); } this inhibits url rewriting for urls using a port not equal to the port of the current request. Change it to allow protocol change. But keep in mind: this may break the servlet spec. Jrg -- -- Jrg Ahrens_/ brainCAPITAL GmbH_/_/ Tel.: 0511/8488 5303 _/ _/ email: [EMAIL PROTECTED]_/_/_/_/_/ ._/_/_/_/ _/ -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: session timeout
-BEGIN PGP SIGNED MESSAGE- Hi, I need to do some work when tomcat session gets timed out. Could anyone of you suggest how I can do it. Changing invalidate/expire method would be the last thing I like to do. Is there any other way (call back method??). if I understood you right, you could use the following Method in the API 2.3 javax.servlet.http.HttpSessionListener.sessionDestroyed(HttpSessionEvent) just implement the HttpSessionListener to an Objekt you want to use this feature and include this method. You have to configure Catalina for use of listeners. - -- mfg/best regards Matthias Brantner - -- Tel.: 0621-4055337 Mobil.: 0179-1006325 PGP:http://www.m-brantner.de/MatthiasBrantner.asc - - -BEGIN PGP SIGNATURE- Comment: URL: http://www.m-brantner.de iQEVAwUBOmXA/IwOhqJXuTDPAQEO8gf+JSbRYmSpYAf1q35M17bQ93SoiVoHJ75R WUbHfsNwywCbWiMtls3dYi8aTJatyaXv1dCNGelKJUaOkTXJCkSwGRb0eqLuE3Hk LoUIq6r17UQyG1EjeDAEZp0lEpaos6kLj7pWLl79Idq7sxEtuKfvcZlTL467OVIK +gKNPRBOfpDzvNHf4o7R0cMswJbv5nWSOw6ypkOPOpuLsTTGj8P1/In/NdPVXsGw T4+rnxOnByM1z7+M5Tx3Q8xq3NWD9poamEXVhQ+6IScf2qjqtq1LWfckb3sAf9Vr P6nv75XvLPB100JRmE9ujHSrArd391DbjOO4vKC1aM4ovPmJtelMrg== =9kNL -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Starting tomcat
Hi, Can anyone help me out?.I'm unable to start Tomcat. I used "tomcat run" syntax and I get "Unable to locate servlet.jar.Check the TOMCAT_HOME". Autoexec.bat has the following settings... set JAVA_HOME=C:\jdk1.3; set TOMCAT_HOME=C:\jakarta; set CLASSPATH=C:\Xerces\xerces.jar;.;C:\jdk1.3\lib;C:\Soap\lib\soap.jar;C:\jakar ata\lib; C:\jakarta\lib\servlet.jar;C:\jakarta\lib\jaxp.jar;C:\jakarta\lib\jasper.jar ;C:\jakarta\lib\ant.jar; C:\jakarta\lib\weberver.jar;C:\jakarta\lib\parser.jar;C:\Soap;C:\jsdk\servle t.jar; PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\jdk1.3\bin;C:\jakarta\bin; DO I miss something?.Any ideas/suggestions will be greatly helpful for me. Thanks in advance. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Starting tomcat
when you sent any environment variables you need not to terminate them with ";" so just try set JAVA_HOME=C:\jdk1.3 set TOMCAT_HOME=C:\jakarta raghu -Original Message- From: tmmet tvp [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 9:39 AM To: [EMAIL PROTECTED] Subject: Starting tomcat Hi, Can anyone help me out?.I'm unable to start Tomcat. I used "tomcat run" syntax and I get "Unable to locate servlet.jar.Check the TOMCAT_HOME". Autoexec.bat has the following settings... set JAVA_HOME=C:\jdk1.3; set TOMCAT_HOME=C:\jakarta; set CLASSPATH=C:\Xerces\xerces.jar;.;C:\jdk1.3\lib;C:\Soap\lib\soap.jar;C:\jakar ata\lib; C:\jakarta\lib\servlet.jar;C:\jakarta\lib\jaxp.jar;C:\jakarta\lib\jasper.jar ;C:\jakarta\lib\ant.jar; C:\jakarta\lib\weberver.jar;C:\jakarta\lib\parser.jar;C:\Soap;C:\jsdk\servle t.jar; PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\jdk1.3\bin;C:\jakarta\bin; DO I miss something?.Any ideas/suggestions will be greatly helpful for me. Thanks in advance. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Starting tomcat
C:\jsdk\servlet.jar; This should probably be jdsk (transposition). *** REPLY SEPARATOR *** On 1/17/2001 at 5:38 PM tmmet tvp wrote: Hi, Can anyone help me out?.I'm unable to start Tomcat. I used "tomcat run" syntax and I get "Unable to locate servlet.jar.Check the TOMCAT_HOME". Autoexec.bat has the following settings... set JAVA_HOME=C:\jdk1.3; set TOMCAT_HOME=C:\jakarta; set CLASSPATH=C:\Xerces\xerces.jar;.;C:\jdk1.3\lib;C:\Soap\lib\soap.jar;C:\j akar ata\lib; C:\jakarta\lib\servlet.jar;C:\jakarta\lib\jaxp.jar;C:\jakarta\lib\jasper .jar ;C:\jakarta\lib\ant.jar; C:\jakarta\lib\weberver.jar;C:\jakarta\lib\parser.jar;C:\Soap;C:\jsdk\se rvle t.jar; PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\jdk1.3\bin;C:\jakarta\bin; DO I miss something?.Any ideas/suggestions will be greatly helpful for me. Thanks in advance. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Bug report
The problem happens at the FRAME SRC=servlet. After changing 2048 to 10240, IE and Netscape work correctly. Additionaly: in the tomcat source code I do see that it is tried to increase the buffer, but it just does not work. Geoff Lane wrote: Does this happen on both a POST and a GET? That 2048 limit is Netscape limit for GETs I think also (if I recall correctly). Does seem like a potential problem though . . . Zsolt Koppany wrote: Hi, I use tomcat-3.2.1 under Linux and found probably a bug. When the request is longer then 2048 bytes tomcat produces an ArroyIndexOutOfBoundExceptions in HttpRequestAdapter.parseHeaderFiled. After I changed bufSize = 2048 to 10240 the error does not appear (my request is shorter). I tried to fix the problem in HttpRequestAdapter.readHeader where the "buf" array should be reallocated, but I found no working solution. Do you have any better ideas? -- Zsolt Koppany Intland GmbH www.intland.com Schulze-Delitzsch-Strasse 16 D-70565 Stuttgart Tel: +49-711-7871080 Fax: +49-711-7871017 -- --- Geoff Lane [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- Zsolt Koppany Intland GmbH www.intland.com Schulze-Delitzsch-Strasse 16 D-70565 Stuttgart Tel: +49-711-7871080 Fax: +49-711-7871017 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Starting tomcat
CLASSPATH=C:\Xerces\xerces.jar;.;C:\jdk1.3\lib;C:\Soap\lib\soap.jar;C:\j akarata\lib;C:\jakarta\lib\servlet.jar;C:\jakarta\lib\jaxp.jar;C:\jakart a\lib\jasper.jar;C:\jakarta\lib\ant.jarta;C:\jakarta\lib\weberver.jar;C: \jakarta\lib\parser.jar;C:\Soap;C:\jsdk\servlet.jar; I'd suggest getting all of the Tomcat jars into the c:\jakarta\lib folder, to make it easier to be sure they are all there, and each of the path references are correct. One problem you might have later is having two copies of servlet.jar on the classpath. Then try cd c:\jakarta bin\startup *** REPLY SEPARATOR *** On 1/17/2001 at 5:38 PM tmmet tvp wrote: Hi, Can anyone help me out?.I'm unable to start Tomcat. I used "tomcat run" syntax and I get "Unable to locate servlet.jar.Check the TOMCAT_HOME". Autoexec.bat has the following settings... set JAVA_HOME=C:\jdk1.3; set TOMCAT_HOME=C:\jakarta; set CLASSPATH=C:\Xerces\xerces.jar;.;C:\jdk1.3\lib;C:\Soap\lib\soap.jar;C:\j akar ata\lib; C:\jakarta\lib\servlet.jar;C:\jakarta\lib\jaxp.jar;C:\jakarta\lib\jasper .jar ;C:\jakarta\lib\ant.jar; C:\jakarta\lib\weberver.jar;C:\jakarta\lib\parser.jar;C:\Soap;C:\jsdk\se rvle t.jar; PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\jdk1.3\bin;C:\jakarta\bin; DO I miss something?.Any ideas/suggestions will be greatly helpful for me. Thanks in advance. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
mod_jk.so
In the install documentation for Tomcat it states that mod_jk.so is available from the bin distribution directory where Tomcat binaries reside. However we could not find either mod_jk.so or mod_jserv.so anywhere. Have they been moved and if so, where? Thanks, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Tomcat on a dialup connection
Hi, I have a question on downloading the Apache Tomcat server. I am wondering if it will mess up my internet connectivity... I'm on Win 98 on a dialup modem here in my home office. I'm paranoid of repeating the same annoyance that happened when I once tried running Allaire's JRun web server on this PC. JRun on an office TI line is fine, but here at home, it would automatically run every time I booted up my PC. It'd hijack my modem, taking over my internet connection. I would get very strange phone-line errors... Every time I'd try to dial up with my modem to check email, the JRun webserver would have already started (even when I did NOT want it to!). So I'd get a "modem busy" error message when I tried to check my email or get to the Internet. I resorted to forcing JRun to stop abnormally every time I booted up my PC, which was slow and annoying. Will I have the same problem if I download Tomcat?? (Also, is it easy to uninstall later?) Your feedback would be appreciated. Everyone I know that have Tomcat are in offices on T1 lines, not at home on a dialup Please email me, as I am not yet subscribed to your list yet...got this email address from a friendThanks! Adele Wang [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE:Strange behavior with jsp:include and %@page include in Tomcat32b2
Hi I have the same problem, any solution
oracle blob problem
Hi I try to get a BLOB from an oracle database and to save it to a file. From a small test program everything works fine. When I copy the code into a servlet I get a strange error from the database at the moment when I try to read the first byte on the InputStream: java.io.IOException: ORA-01013: user requested cancel of current operation at oracle.jdbc.dbaccess.DBError.SQLToIOException(DBError.java) at oracle.jdbc.driver.OracleBlobInputStream.needBytes(OracleBlobInputStream.java) at oracle.jdbc.driver.OracleBufferedStream.read(OracleBufferedStream.java) at oracle.jdbc.driver.OracleBufferedStream.read(OracleBufferedStream.java) at lib.download.service(download.java:60) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597) at org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338) at java.lang.Thread.run(Thread.java:484) The JDBC connection works fine for Varchar and other "normal" data from the database. I saw in the archive that somebody had a similar problem, but I couldn't find any answer to the problem. I use Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_01) and Oracle8i Enterprise Edition Release 8.1.5.0.0. with the thin driver(classes111.zip) from oracle. I use Tomcat 3.1. Does anybody have an idea about this problem? ERic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Tomcat on a dialup connection
On 1/17/2001 at 1:05 PM adele wrote: Will I have the same problem if I download Tomcat?? (Also, is it easy to uninstall later?) By default, Tomcat just runs on demand, via a batch file. It runs over the Java Virtual Machine, and doesn't install anything in your system directories. To uninstall Tomcat, you can just delete the folder (like the good old days!). -T. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: mod_jk.so
They lie. ;) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 12:53 PM To: [EMAIL PROTECTED] Subject: mod_jk.so In the install documentation for Tomcat it states that mod_jk.so is available from the bin distribution directory where Tomcat binaries reside. However we could not find either mod_jk.so or mod_jserv.so anywhere. Have they been moved and if so, where? Thanks, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Session problem with WAP protocol
-Original Message- From: Grzegorz Skorupa [mailto:[EMAIL PROTECTED]] But you can't be sure that all wap browsers do. If you would like to prepare 100% available service, you must use url rewriting. IMHO. phone.com WAP browsers using the UP.link gateway insert a header "x-up-subno" that is unique per device. Instead of writing out long mangled URLS, Save your 1200 bytes and keep session on the server side keyed by this number. Take a look at: http://mail.ayg.com/pipermail/wap-dev/2000-September/003779.html for some discussion of this. s - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: oracle blob problem
Eric: I've never experienced that problem exactly, but you might need newer Oracle JDBC drivers. There is a classes12.jar which is what we use. Don't know if that will solve the problem, but it's worth a shot. And for what it's worth, there's a serious bug in the Oracle drivers. NEVER call Statement.setQueryTimeout() - If the query returns within the time set, the thread will go to sleep and become a zombie . .. banged my head against a wall for quite some time before I figured that one out. :) Good luck. Eric Weber wrote: Hi I try to get a BLOB from an oracle database and to save it to a file. From a small test program everything works fine. When I copy the code into a servlet I get a strange error from the database at the moment when I try to read the first byte on the InputStream: java.io.IOException: ORA-01013: user requested cancel of current operation at oracle.jdbc.dbaccess.DBError.SQLToIOException(DBError.java) at oracle.jdbc.driver.OracleBlobInputStream.needBytes(OracleBlobInputStream.java) at oracle.jdbc.driver.OracleBufferedStream.read(OracleBufferedStream.java) at oracle.jdbc.driver.OracleBufferedStream.read(OracleBufferedStream.java) at lib.download.service(download.java:60) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597) at org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338) at java.lang.Thread.run(Thread.java:484) The JDBC connection works fine for Varchar and other "normal" data from the database. I saw in the archive that somebody had a similar problem, but I couldn't find any answer to the problem. I use Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_01) and Oracle8i Enterprise Edition Release 8.1.5.0.0. with the thin driver(classes111.zip) from oracle. I use Tomcat 3.1. Does anybody have an idea about this problem? ERic -- Geoff Lane [EMAIL PROTECTED] (650) 969-5000 x104 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Starting tomcat
Do not put a ";" at the end of your classpath. This "closes it off". Hope this helps. Craig -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 10:01 AM To: Tomcat User List Subject: Re: Starting tomcat CLASSPATH=C:\Xerces\xerces.jar;.;C:\jdk1.3\lib;C:\Soap\lib\soap.jar;C:\j akarata\lib;C:\jakarta\lib\servlet.jar;C:\jakarta\lib\jaxp.jar;C:\jakart a\lib\jasper.jar;C:\jakarta\lib\ant.jarta;C:\jakarta\lib\weberver.jar;C: \jakarta\lib\parser.jar;C:\Soap;C:\jsdk\servlet.jar; I'd suggest getting all of the Tomcat jars into the c:\jakarta\lib folder, to make it easier to be sure they are all there, and each of the path references are correct. One problem you might have later is having two copies of servlet.jar on the classpath. Then try cd c:\jakarta bin\startup *** REPLY SEPARATOR *** On 1/17/2001 at 5:38 PM tmmet tvp wrote: Hi, Can anyone help me out?.I'm unable to start Tomcat. I used "tomcat run" syntax and I get "Unable to locate servlet.jar.Check the TOMCAT_HOME". Autoexec.bat has the following settings... set JAVA_HOME=C:\jdk1.3; set TOMCAT_HOME=C:\jakarta; set CLASSPATH=C:\Xerces\xerces.jar;.;C:\jdk1.3\lib;C:\Soap\lib\soap.jar;C:\j akar ata\lib; C:\jakarta\lib\servlet.jar;C:\jakarta\lib\jaxp.jar;C:\jakarta\lib\jasper .jar ;C:\jakarta\lib\ant.jar; C:\jakarta\lib\weberver.jar;C:\jakarta\lib\parser.jar;C:\Soap;C:\jsdk\se rvle t.jar; PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\jdk1.3\bin;C:\jakarta\bin; DO I miss something?.Any ideas/suggestions will be greatly helpful for me. Thanks in advance. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
mod_jk
Can anyone give me a pointer to mod_jk? I am having a heck of a time finding it. Preferably the binary version but source is fine too. I am running Linux RH7 and apache 1.3.14 Thanks. -- Peter Giannopoulos,Software Developer Gemplus Software, Advanced Projects Group Phone: +15147322434 Fax: +15147322401 Gemplus Card International, Http://www.gemplus.fr --- BEGIN:VCARD VERSION:2.1 N:Giannopoulos;Peter FN:Peter Giannopoulos ORG:Gemplus Canada inc.;CTO Group TITLE:Software Developer NOTE;ENCODING=QUOTED-PRINTABLE:=0D=0A--- Codito, ergo sum - "I code, therefore I am" --- TEL;WORK;VOICE:514-732-2434 TEL;HOME;VOICE:N/A TEL;CELL;VOICE:N/A TEL;PAGER;VOICE:N/A TEL;WORK;FAX:514-732-2301 ADR;POSTAL:;;3 Place du Commerce;Ile des soeurs;Quebec;H3E 1H7;Canada LABEL;POSTAL;ENCODING=QUOTED-PRINTABLE:3 Place du Commerce=0D=0AIle des soeurs, Quebec H3E 1H7=0D=0ACanada URL:http://www.gemplus.com EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:2926T190330Z END:VCARD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Session problem with WAP protocol
phone.com WAP browsers using the UP.link gateway insert a header "x-up-subno" that is unique per device. Instead of writing out Oh I forgot to also mention the Mobile Subscriber ISDN Number used by some phones works similarly via the X_Network_Info HTTP header. s - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
startup tomcat
i run tomcat3.2 on linux box and i haven't got much expirience with linux so idon't know how to load tomcat on startup and i have to start ti allways manualy. i tryed placing startup.sh in rclocal and rcd.3 but it didn't work. what is a proper way to make tomcat start everytime my box is booted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: [Fwd: about JDBC Realm with mysql DB]
Hola a todos, Marcos: JDBCREalm is only a way to store user info ( username, role password ) into a DB instead of using SimpleRealm and tomcat-users.xml file from %tomcat_home%/conf. So web.xml ( which a file governed in content by the spec ) has nothing to do with JDBCRealm, please explicit what data is on the user test on the DB, post your web.xml file and i will try to solve your problem, but it's only related to this 2 things.. Saludos , Ignacio J. Ortega -Mensaje original- De: marcos Martinez [mailto:[EMAIL PROTECTED]] Enviado el: mircoles 17 de enero de 2001 16:40 Para: [EMAIL PROTECTED] Asunto: [Fwd: about JDBC Realm with mysql DB] It would be very nice if someone can post the basically needed entries in the web.xml file for a JDBCRealm. I want to make it using a mysql DB. I want to make avaliable the access to the protected areas to the entry which are in the DB and not to the ones that are in the web.xml: auth-constraint !-- Anyone with one of the listed roles may access this area -- role-nametomcat/role-name role-namerole1/role-name /auth-constraint I was able to arrive to the point where in the console appears: ContextManager: JDBCRealm: Auth ok, user=test but in both cases (when i entry a good info and info that is not in the DB) Im redirect to the same error page. P.D.: Linux 2.2.13 - Tomcat 3.2.1 Thanks a lot. Marcos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Starting tomcat
I had the same problem once. Just remove the semicolons from the end of JAVA_HOME and TOMCAT_HOME. Then you should be good to go. Tyler tmmet tvp wrote: Hi, Can anyone help me out?.I'm unable to start Tomcat. I used "tomcat run" syntax and I get "Unable to locate servlet.jar.Check the TOMCAT_HOME". Autoexec.bat has the following settings... set JAVA_HOME=C:\jdk1.3; set TOMCAT_HOME=C:\jakarta; set CLASSPATH=C:\Xerces\xerces.jar;.;C:\jdk1.3\lib;C:\Soap\lib\soap.jar;C:\jakar ata\lib; C:\jakarta\lib\servlet.jar;C:\jakarta\lib\jaxp.jar;C:\jakarta\lib\jasper.jar ;C:\jakarta\lib\ant.jar; C:\jakarta\lib\weberver.jar;C:\jakarta\lib\parser.jar;C:\Soap;C:\jsdk\servle t.jar; PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\jdk1.3\bin;C:\jakarta\bin; DO I miss something?.Any ideas/suggestions will be greatly helpful for me. Thanks in advance. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- Tyler Nelson Technical Director Mind's Eye, Inc. e: mailto:[EMAIL PROTECTED] u: http://www.mindseye.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Classpath???
Hello Mike Just a quick suggestion. Don't ever set a global classpath! If you set the classpath for every application seperatly you know that if you deploy the application it will still work. With a global classpath you can accidentally have a class in there that your application needs and when you deploy it the classpath isn't there anymore and you get a classnotfound exception. It is an annoyance to set the classpath for every application seperatly but that way your application classpathes don't get in the way of each other and it makes deployment a lot easier. Stefan
RE: Question : thank you G.Nagarajan
Thank you G.Nagarajan, I just downloaded this driver and had it operating in 30 minutes. www.freetds.org ( I had to write a program and create a database or it would have been even faster ) :0) I had tried this site about a week ago and the ftp server was down. I forgot all about it. By the way the latest snapshot.jar works fine so far on Win 2000 server with MS-SqlServer 7. Benchmarks appear good. Recommended! Another benefit of lurking in this mailing list. Good Luck, Craig -Original Message- From: G.Nagarajan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 9:07 AM To: [EMAIL PROTECTED] Subject: RE: Question There are many free JDBC drivers. If you are looking for sql*server, there is www.freetds.org. -Original Message- From: Daniel Merchante [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 5:44 PM To: '[EMAIL PROTECTED]' Subject: Question Hi there: At this moment we are trying to implement the project in IIS 5, we use a jakarta-tomcat container and we still try to use the jdbc-odbc bridge(instead of spending money in a database driver). The jsp and servlets are being executed, but after they have been accessed, if there is a database connection inside them, Dr. Watson for windows NT appears and displays this message: 'An application error has occurred and an application error log is being generated. java.exe Exception: access violation(0x005), Address: 0x77f6ce4c Do you know what could be wrong?, if not, do you know anyone I could contact for suggestions, I would really appreciate it. Thanks. Dan. The information contained in this email is confidential and is intended for the recipient only. If you have received it in error, please notify us immediately by reply email and then delete it from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person or store or copy this information in any medium. The views contained in this email are those of the author and not necessarily those of Brite Software Ltd. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Tomcat on a dialup connection
Hello No it doesn't screw up your modemline since you can start and stop it as you wish. In detail: If you run Tomcat as a standalone you don't have to install anything. Just unzip the directory structure to your harddisk, configure it and change the bat-files if nessecary. Then start Tomcat with the bat-file and shut it down with it. As long as you don't run startup.bat Tomcat isn't running. One more thing it is dependend on the jdk1.2 or higher so you need to install that first. My recommendation download jdk1.3 and use it since it has the better performance. Stefan
Re: mod_jk
Can anyone give me a pointer to mod_jk? I am having a heck of a time finding it. Preferably the binary version but source is fine too. I am running Linux RH7 and apache 1.3.14 Unfortunately I don't know where to find a binary for Linux x86 (I'm a Solaris guy). However, you can build mod_jk yourself from the source code distribution of Tomcat. The documentation of how to do that is right here: http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html Take a look, if you have problems let me know. cheers, - Jared -- Would you like who you were... if you met them someplace? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Tomcat on a dialup connection
Hola a todos: One more thing it is dependend on the jdk1.2 or higher so you need to install that first. My recommendation download jdk1.3 and use it since it has the better performance. This is not true, Tomcat 3.X only depends on JDK 1.1.X ( but it has a couple of modules to use with Jdk 1.2 and up ) , Tomcat 4.0 depends on JDK 1.2 and up. Saludos , Ignacio J. Ortega - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: mod_jk
Thanks. I hadn't realized that you can only get it as a part of the full tomcat distrib. -- Peter Giannopoulos,Software Developer Gemplus Software, Advanced Projects Group Phone: +15147322434 Fax: +15147322401 Gemplus Card International, Http://www.gemplus.fr --- -Original Message- From: Jared [mailto:[EMAIL PROTECTED]] Sent: January 17, 2001 2:25 PM To: [EMAIL PROTECTED] Subject: Re: mod_jk Can anyone give me a pointer to mod_jk? I am having a heck of a time finding it. Preferably the binary version but source is fine too. I am running Linux RH7 and apache 1.3.14 Unfortunately I don't know where to find a binary for Linux x86 (I'm a Solaris guy). However, you can build mod_jk yourself from the source code distribution of Tomcat. The documentation of how to do that is right here: http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html Take a look, if you have problems let me know. cheers, - Jared -- Would you like who you were... if you met them someplace? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] BEGIN:VCARD VERSION:2.1 N:Giannopoulos;Peter FN:Peter Giannopoulos ORG:Gemplus Canada inc.;CTO Group TITLE:Software Developer NOTE;ENCODING=QUOTED-PRINTABLE:=0D=0A--- Codito, ergo sum - "I code, therefore I am" --- TEL;WORK;VOICE:514-732-2434 TEL;HOME;VOICE:N/A TEL;CELL;VOICE:N/A TEL;PAGER;VOICE:N/A TEL;WORK;FAX:514-732-2301 ADR;POSTAL:;;3 Place du Commerce;Ile des soeurs;Quebec;H3E 1H7;Canada LABEL;POSTAL;ENCODING=QUOTED-PRINTABLE:3 Place du Commerce=0D=0AIle des soeurs, Quebec H3E 1H7=0D=0ACanada URL:http://www.gemplus.com EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:2926T190330Z END:VCARD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Tomcat on a dialup connection
I didn't know that since all the documentation I have read said jdk1.2 is required! Thank you for pointing that out. Stefan
off-topic question - servlet notification
Hi, How I make to notify a servlet that the application client is down, or better, as a servlet can know that an application client down? thanks __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: off-topic question - servlet notification
a servlet can know that an application client down? it can't. the http protocol is a stateless protocol, hence the client can reconnect as many times as it wants. the cookie (or URL) is the way the servlet keeps track of the session information, and the servlet engine will expire the session if no activities has happened in X amount of time. Since most servlet engines don't have a hook into the session expiration, you can implement this yourself. (BTW, does tomcat have this?) Just set the session to never expire and implement your own expiration. hope this helps Filip ~ Namaste - I bow to the divine in you. ~ Filip Hanik Technical Architect [EMAIL PROTECTED] - Original Message - From: "Andr Alves" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 11:39 AM Subject: off-topic question - servlet notification Hi, How I make to notify a servlet that the application client is down, or better, as a servlet can know that an application client down? thanks __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Socket Write Error Question
Can anyone tell me why I'm getting this error in the command prompt window ? The page seems to load ok though. I'm running W2K Advanced Server, and tomcat 3.2 2000-10-24 01:41:19 - Ctx( ): IOException in: R( + /tomcat-power.gif = + null) Connection aborted by peer: socket write error Thanks for your help, Damian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: off-topic question - servlet notification
THe only way I know of is to make the servlet poll the client at regular interval to see if it is still alive! Create a thread that keeps a live connection to the application client in your servlet and let it poll your client at regular intervalls. When you don't get a reply you know the client is down. Keep in mind that this will have a seriouse impact on your ressources when you have a lot of connections. Or you can just have one thread running that polls all clients. Hope that helps Stefan
Re: off-topic question - servlet notification
make the servlet poll the client at regular interval to see if it is still alive! this is not going to work if the client is behind a firewall, because the servlet will not have the IP of the client. Filip ~ Namaste - I bow to the divine in you. ~ Filip Hanik Technical Architect [EMAIL PROTECTED] - Original Message - From: "Stefan Langer" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 12:03 PM Subject: RE: off-topic question - servlet notification THe only way I know of is to make the servlet poll the client at regular interval to see if it is still alive! Create a thread that keeps a live connection to the application client in your servlet and let it poll your client at regular intervalls. When you don't get a reply you know the client is down. Keep in mind that this will have a seriouse impact on your ressources when you have a lot of connections. Or you can just have one thread running that polls all clients. Hope that helps Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: startup tomcat
What is your platform ? Which server are you running? Are you running standalone? I use apache and tomcat on a linux box and I included the tomcat startup in my httpd script. (AS well as the shutdown!) It works fine for me! Whenever httpd is shutdown tomcat shuts down and whenever it startsup tomcat startsup. Just make sure you startup tomcat before you startup the webserver Stefan
Re: startup tomcat
Dario Novakovic wrote: i run tomcat3.2 on linux box and i haven't got much expirience with linux so idon't know how to load tomcat on startup and i have to start ti allways manualy. i tryed placing startup.sh in rclocal and rcd.3 but it didn't work. what is a proper way to make tomcat start everytime my box is booted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Do following: Create a script that will execute (call) startup script for the tomcat in $TOMCAT_HOME/bin directory. Try to su to non privileged user prior to running java. Also make sure that non privileged user does own above directory structure. Example: #!/bin/su tomcat # # $Id: tomcatd,v 1.1 2000/11/20 15:15:00 sasha Exp $ # Shell script to startup/shutdown the server as a ordinary user # There are other, simpler commands to startup the runner. The two # commented commands good replacements. The first works well with # Java Platform 1.1 based runtimes. The second works well with # Java2 Platform based runtimes. #jre -cp runner.jar:servlet.jar:classes org.apache.tomcat.shell.Startup $* #java -cp runner.jar:servlet.jar:classes org.apache.tomcat.shell.Startup $* . /home/tomcat/.bashrc case "$1" in start) (cd /usr/local/tomcat/bin; ./tomcat.sh start) ;; stop) (cd /usr/local/tomcat/bin; ./tomcat.sh stop) ;; *) echo "Usage: $0 {start|stop}" exit 1 esac Take care /s -- Occupation: Strategic Technical Planning and Advanced Infrastructure Development Employer: Phone2Networks Status: Almost there ... Hobbies: Jogging (when?!), reading, music (dance/trans), sleep deprivation Currently reading: Foucault's Pendulum by Umerto Eco Evaluation: Mostly Harmless - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: tomcat.policy
If you don't use the policy file don't foget to comment out the policy section in your server.xml file. Stefan
AW: off-topic question - servlet notification
Hi, How I make to notify a servlet that the application client is down, or better, as a servlet can know that an application client down? thanks Hi, I'm making the follow application: The client application open a URLConnection with the serlet and the servlet makes some selects, updates to a data base. When the client down during a transaction would be necessary to make one rollback in data base. Therefore I needed to know if the customer is or up. thanks... __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
security and realms - multiple contexts
Title: security and realms - multiple contexts I'm working with the source edition Tomcat 3.2.1. I'd like to set up an instance of Tomcat where certain incoming requests need to be authenticated using one method and others need to be authenticated using another method (based upon the URL). Is there a nice way of doing this without just writing a big Interceptor that does all of the logic? I'm under the impression that I'll need to extend the SimpleRealm class, but any guidance would be greatly appreciated. Thanks! vijay prabhakar developer the eon company www.eoncompany.com o 212.563.4812 m 410.961.8404 e [EMAIL PROTECTED]
Session Tracking Problem
I am having problem in tracking sessions. On the login jsp page in the application, I used a servlet and created a session with HttpSession session = req.getSession(true) then after sucessful login it goes to the next jsp page say(b) and passess some variables to this page as a hidden variable. Then on this page (b) , I used a href = "%encodeURL(..jsppage)%" and passes the same variable again to the another page (c). Then I tried to check the session value on the this page in the servlet with HttpSession assession = request.getSession(false) If (assession ! null) { ..do some processing } else { Create a session } but on checking with getSession(false) it gives null and I could'nt get the previous session. Can any body tell where i am doing wrong or is there any other way to do this - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: off-topic question - servlet notification
check when the session was last used, and if it has expired (some time) then rollback your transactions. note, to do this, you will have to over ride the session expiration of the servlet engine, see my previous post Filip ~ Namaste - I bow to the divine in you. ~ Filip Hanik Technical Architect [EMAIL PROTECTED] - Original Message - From: "Andr Alves" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 12:09 PM Subject: AW: off-topic question - servlet notification Hi, How I make to notify a servlet that the application client is down, or better, as a servlet can know that an application client down? thanks Hi, I'm making the follow application: The client application open a URLConnection with the serlet and the servlet makes some selects, updates to a data base. When the client down during a transaction would be necessary to make one rollback in data base. Therefore I needed to know if the customer is or up. thanks... __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: startup tomcat
Here's a startup script that I wrote: #!/bin/sh # # Startup wrapper sript for Tomcat # Sets up the environment variables needed to run Tomcat and then calls # the proper tomcat script # # chkconfig: - 85 15 # description: Tomcat is a servlet engine. # # Geoff Lane [EMAIL PROTECTED] # 1/5/2001 # Environment variables OS=`uname` # Solaris takes different options if [ $OS = SunOS ]; then TOMCAT_OPTS="-Xms16m -Xmx128m -native" else TOMCAT_OPTS="-Xms16m -Xmx128m" fi CLASSPATH=Additional classpath TOMCAT_HOME=path to tomcat_home ANT_HOME=ant home - might not need this JAVA_HOME=java home export JAVA_HOME TOMCAT_HOME CLASSPATH ANT_HOME TOMCAT_OPTS # error "description" error () { echo $0: $* 21 exit 1 } # find the named process(es) findproc() { pid=`/bin/ps -ef | /bin/grep -w $1 | /bin/grep -v norestart | /bin/grep -v grep | /bin/awk '{print $2}'` echo $pid } # kill the named process(es) (borrowed from S15nfs.server) killproc() { pid=`findproc $1` [ "$pid" != "" ] kill -9 $pid } case "$1" in start) $TOMCAT_HOME/bin/tomcat.sh start ;; stop) $TOMCAT_HOME/bin/tomcat.sh stop if [ $OS = SunOS ]; then killproc tomcat elif [ $OS = Linux ]; then killall java fi ;; *) echo "Usage: $0 { start | stop }" ;; esac exit 0 This will work for both Solaris or Linux. Be sure to edit the environment variables for your setup. The process is a bit different for each of them on how to get it to start on boot. With Red Hat at least, there is a utility called 'chkconfig'. After you copy this file into /etc/init.d - run 'chkconfig --add tomcat'. Then run 'chkconfig --level 345 tomcat on' to turn it on for runlevels 3, 4, and 5. Hope that helps. Dario Novakovic wrote: i run tomcat3.2 on linux box and i haven't got much expirience with linux so idon't know how to load tomcat on startup and i have to start ti allways manualy. i tryed placing startup.sh in rclocal and rcd.3 but it didn't work. what is a proper way to make tomcat start everytime my box is booted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- Geoff Lane [EMAIL PROTECTED] (650) 969-5000 x104 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
U:Tomcat.CONF
hi all. I still haveproblem with configaraton file tomcat.conf (for AJp13)any one help me my context found in C:/javaLine/tomcat/webapps/tryout/WEB-INF/ and if you can send me your tomcat.conf (window users) so that I can make some changes .it works fine with Ajp12 but I need to try with Ajp13. Thanks for any help, *** IfModule mod_jserv.cAddType text/jsp .jspAddHandler jserv-servlet .jsp Alias /tryout /javaLine/tomcat/webapps/tryoutDirectory "C:/javaLine/tomcat/webapps/tryout" Options Indexes FollowSymLinks/DirectoryApJServMount /tryout/servlet /tryoutLocation "/tryout/WEB-INF/" AllowOverride None deny from all/LocationDirectory "C:/javaLine/tomcat/webapps/tryout/WEB-INF/" AllowOverride None deny from all/DirectoryLocation "/tryout/META-INF/" AllowOverride None deny from all/LocationDirectory "C:/javaLine/tomcat/webapps/tryout/META-INF/" AllowOverride None deny from all/Directory JkMount /servlet/* ajp13JkMount /*.jsp ajp13 JkMount /tryout/servlet/* ajp13 JkMount /tryout/*.jsp ajp13*/IfModule
RE: session between tomcat and IIS
Could this be that the JSESSIONID cookie is scoped to the webapp. IE if your webapp is called FOO, then only pages below /FOO can get that cookie. Also, I am assuming you are on the same server, since cookies don't travel across servers. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 2:58 PM To: [EMAIL PROTECTED] Subject: session between tomcat and IIS Hello, I'm in a bit of a peckerwood situation here. Tomcat 3.2.1 Apache is the preferred apps but I have been told to integrate with an IIS machine. Ok, so my problem is that we create a session w/Tomcat and pass along some credentials in the session object. Everything is well and good except when the page needs to go to the ASP stuff. IIS is happy to create a session/cookie ASPSESSIONIDGGQQGGED however, if the asp page asks about the cookie JSESSIONID (from tomcat), it finds nothing. Anyone have any thoughts on how to pass the data around? Currently, my non-elegant solution is to use a form with hidden fields to post to the asp page and from there, it can decode the form variables. What are some other options? /bill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
SSL problem causes Apache to crash
Hello, I am currently having problems SSL that cause Apache to crash. I am running mod_ssl 2.7.2, Apache 1.3.14, jdk1.3, Windows 2000, and Tomcat 3.2. Perhaps this would be more appropriate for the Apache forum... but I suspect this has something to do with the communication between Apache and Tomcat; BTW - I am using mod_jk, rather than mod_jserv. I would greatly value any input to find a resolution to this problem. I have been tasked to set up SSL with Apache and Tomcat for my company's application. Ever since I have installed SSL, Apache intermittedly crashes somewhat randomly. I suspected it related to the ajp13 support... but now I am not so sure. The only way I can reproduce this application error consistently is with Internet Explorer as follows: There is a page in our application that uses JavaScript to call another servlet with window.open() and fill in the opener windows' form values. Now, the very first time a user logs into the system using Internet Explorer while running in SSL mode (i.e. - https://...) and executes this JavaScript, Apache causes a program error and I am told to restart Apache. Now, if I just close the browser, or just wait for a little while and try to execute the Javascript that calls the servlet, it works fine. But the first time I re-login to the system, this application error returns. This same test does not cause the error on Netscape. But, Apache does eventually crash with Netscape as well. I suspect this may be due to the fact that IE delivers the pages a good deal faster than Netscape does... especially the window.open part. I believe this problem has something to do with our application seeming to go from secure pages to pages containing non-secure items. I say "seeming" b/c all references to URLs within our application are in the form of "/servets/..." rather than "http://servername/servlets", so I would expect them to inherit SSL if the parent page is displayed in the format. Any ideas or suggestions to get to the root of this would be greatly appreciated. Thanks, ---Tom Davies - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Session Tracking Problem
Rajeev Bakhru typed the following on 03:24 PM 1/17/2001 -0500 On the login jsp page in the application, I used a servlet and created a session with HttpSession session = req.getSession(true) ... Then on this page (b) , I used a href = "%encodeURL(..jsppage)%" and passes the same variable again to the another page (c). Check the actual HTML output here with cookies disabled in your browser (disable cookies, or have it set to warn you, then close and re-open your browser and test it). Does it put the session ID into the URL? If your browser refuses to take the JSESSIONID cookie, the session ID should show up in the URL. If not there's something wrong ... but on checking with getSession(false) it gives null and I could'nt get the previous session. Some other things to check: - Are the URLs when you set and check the session both in the same domain, and both in the same webapp? If the root of your webapp (in web.xml) is /examples, the cookie won't be available outside of that directory. - SSL isn't involved is it? Sessions can be lost when crossing in and out of SSL. Generally, just check the flow of the session ID with cookies disabled and see where you lose it. Kief - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Xserver Tomcat
Kief, Thanks for the info. Your solution worked great! Kev - Original Message - From: "Kief Morris" [EMAIL PROTECTED] I have a set of startup scripts which start the server by running some commands as root, others under a user account. The script which starts vfxb does the following: XVFBIN="/usr/X11R6/bin/Xvfb :1 -screen 1 640x480x24" DISPLAY="localhost:1.1" export DISPLAY $XVFBIN /usr/openwin/bin/xhost + localhost Again, this is run as root. Then the script sets up other appropriate variables and calls: ( su - www ; $TOMCAT_BIN $TOMCAT_ARGS ) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Security Manager Problems
I had this problem. There's a bug in tomcat.sh. Find the following lines in tomcat.sh: if [ "$1" = "-security" ] ; then echo Starting with a SecurityManager Then add a "shift" command, as follows: if [ "$1" = "-security" ] ; then shift echo Starting with a SecurityManager If someone can tell me who to talk to for putting in bug fixes, let me know. Ed -Original Message- From: Neil Weller [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 3:47 AM To: [EMAIL PROTECTED] Subject: Security Manager Problems I am trying to start Tomcat using the security manager with no luck. I have made the changes that are detailed in the tomcat-security.html document but when I try and start tomcat using startup.sh -security I get the message "starting with security" etc. but then it just prints out the usage instructions for the tomcat class. Looking at the source for tomcat.java I cannot see any references to security, but I have only had a quick look. Does anyone have any suggestions? I am using Redhat 6.2, Tomcat 3.2. JDK 1.3. Regards, Neil Weller (New to the list) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Instructions for pre-compiling JSPs
Jason, I guess I would want to know what commands the compile servlet executed inside it's init message. I'm looking to figure out how to get the resulting class files to be recognized by Tomcat (the XXX.class naming convention, etc.) Shouldn't this be documented somewhere? Thanks, Keith -Original Message- From: C. Jason Benedict [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 11:22 AM To: [EMAIL PROTECTED] Subject: Re: Instructions for pre-compiling JSPs One of the guys here at work coded a servlet that was put in the web.xml. On init it would go out and compile the jsp's for the webapp. I have not had a chance to look at it myself, but I want to know if this is even going to change anything? Are the jsp's going to load faster at first call, or is Tomcat still going to check to see if they where touched then compile them again if they were? "Hawkins, Keith (Keith)" wrote: Can someone provide or point me to the steps needed to pre-compile JSP pages for use with Tomcat? Thanks, Keith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- C. Jason Benedict - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Custom Logger???
Hello all. I'm not sure if I'm missing something or not, but is there any way to write one's own Logger to plug into Tomcat? It appears to be possible to subclass the Logger, but I can find no way to configure Tomcat to use the custom Logger class. Is this possible? Any information will be much appreciated. Thanks, ~brian skrab [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]