Re: Help with Tomcat 5.5.x on redhat-release-3ES-7.4
On 5/24/05, Gary Zhu [EMAIL PROTECTED] wrote: Hi all, When trying to start tomcat 5.5.4(tried 5.5.7 and 5.5.9) on OS redhat-release-3ES-7.4, I always get the following error: '/catalina.sh: /usr/local/tomcat/bin/setclasspath.sh: line 74: syntax error near unexpected token `do '/catalina.sh: /usr/local/tomcat/bin/setclasspath.sh: line 74: `for i in $OSXHACK/*.jar; do Of course, all the three versions have been working fine with other redhat linux versions such as redhat-release-9-3. Strange maybe RHEL3-ES-7.4 (whatever all that means) somehow does more syntax checking than usual and enteres that IF even though it doesn't need to and barfs it as a result so try editing setclasspath.sh and comment out the below lines: # OSX hack to CLASSPATH JIKESPATH= if [ `uname -s` = Darwin ]; then OSXHACK=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Classes if [ -d $OSXHACK ]; then for i in $OSXHACK/*.jar; do JIKESPATH=$JIKESPATH:$i done fi fi Hopefully that will make it happy. :) Regards, -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with tomcat 5.5
the classes / jar files available for TC 5.5 are not the same in your case - Check the commons/lib folder and the web-inf/lib folder. Make sure all the classes/jar files in the above folders in 5.0 are available and the same as in 5.5 - my guess is that some are missing in 5.0. if that does not solve - them copy paste the exact classNotFound and someone will be able to help u in finding the right jar. HTH, Anoop On 4/13/05, dummy [EMAIL PROTECTED] wrote: Problem with tomcat 5.5. Application running on tomcat 5.0 fine but when run on tomcat 5.5 alot of problem appeared like noclassfound. Why is it so ? Anybody have the same problem ? How to solve ? -- Thanks and best regards, Anoop - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help with tomcat on windoze/nfs
How is the drive mapped? By what logged-in windows user? Is it the same user that Tomcat is running as, and are you sure? ;) Mike Curwen -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Friday, March 04, 2005 3:51 PM To: 'Tomcat Users List' Subject: Help with tomcat on windoze/nfs Hello, I have the unfortunate opportunity of having to set up tomcat on windoze (sorry I am a linux bigot) I have this servlet that has to run a windows program. (that works fine) I have to create a directory on a NFS mount. In my test servlet, I have this snippet of code(see below) If I do /myservlet?dir=c:/ (is see it ok) If I do /myservlet?dir=z:/ (z is a mapped nfs mount, it does not see it) Here is the kicker, I wrote a little class that was basically the same but just a normal Java app, and it see z:/ OK Help??? Thanks === //DIR is a param passed in PrintWriter out = null; res.setContentType(text/html); out = new PrintWriter (res.getOutputStream()); out.println( looking for dir +DIR+BR); File fpath = new File(DIR); out.println(path--+fpath.getAbsolutePath()); if ( !fpath.exists() ){ out.println(Does not exist); }else{ out.println(exist); } out.close(); === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with tomcat on windoze/nfs
On Fri, 4 Mar 2005 15:51:18 -0600, Randy Paries [EMAIL PROTECTED] wrote: Hello, I have the unfortunate opportunity of having to set up tomcat on windoze (sorry I am a linux bigot) I have this servlet that has to run a windows program. (that works fine) I have to create a directory on a NFS mount. From memory no matter what you try a mapped drive won't work but I believe if you use the UNC name ie. \\Server\Share and then run Tomcat under an account that has Network privileges and access to that share so LocalSystem won't be good enough. Regards, -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help with tomcat on windoze/nfs
I assume the map is ok, since I can run a java app and it works fine, It is only when I call it from a servlet it does not Thanks -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Friday, March 04, 2005 4:15 PM To: 'Tomcat Users List' Subject: RE: Help with tomcat on windoze/nfs How is the drive mapped? By what logged-in windows user? Is it the same user that Tomcat is running as, and are you sure? ;) Mike Curwen -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Friday, March 04, 2005 3:51 PM To: 'Tomcat Users List' Subject: Help with tomcat on windoze/nfs Hello, I have the unfortunate opportunity of having to set up tomcat on windoze (sorry I am a linux bigot) I have this servlet that has to run a windows program. (that works fine) I have to create a directory on a NFS mount. In my test servlet, I have this snippet of code(see below) If I do /myservlet?dir=c:/ (is see it ok) If I do /myservlet?dir=z:/ (z is a mapped nfs mount, it does not see it) Here is the kicker, I wrote a little class that was basically the same but just a normal Java app, and it see z:/ OK Help??? Thanks === //DIR is a param passed in PrintWriter out = null; res.setContentType(text/html); out = new PrintWriter (res.getOutputStream()); out.println( looking for dir +DIR+BR); File fpath = new File(DIR); out.println(path--+fpath.getAbsolutePath()); if ( !fpath.exists() ){ out.println(Does not exist); }else{ out.println(exist); } out.close(); === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with tomcat on windoze/nfs
How are you starting Tomcat? Doug - Original Message - From: Randy Paries [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Sent: Friday, March 04, 2005 11:57 PM Subject: RE: Help with tomcat on windoze/nfs I assume the map is ok, since I can run a java app and it works fine, It is only when I call it from a servlet it does not Thanks -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Friday, March 04, 2005 4:15 PM To: 'Tomcat Users List' Subject: RE: Help with tomcat on windoze/nfs How is the drive mapped? By what logged-in windows user? Is it the same user that Tomcat is running as, and are you sure? ;) Mike Curwen -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Friday, March 04, 2005 3:51 PM To: 'Tomcat Users List' Subject: Help with tomcat on windoze/nfs Hello, I have the unfortunate opportunity of having to set up tomcat on windoze (sorry I am a linux bigot) I have this servlet that has to run a windows program. (that works fine) I have to create a directory on a NFS mount. In my test servlet, I have this snippet of code(see below) If I do /myservlet?dir=c:/ (is see it ok) If I do /myservlet?dir=z:/ (z is a mapped nfs mount, it does not see it) Here is the kicker, I wrote a little class that was basically the same but just a normal Java app, and it see z:/ OK Help??? Thanks === //DIR is a param passed in PrintWriter out = null; res.setContentType(text/html); out = new PrintWriter (res.getOutputStream()); out.println( looking for dir +DIR+BR); File fpath = new File(DIR); out.println(path--+fpath.getAbsolutePath()); if ( !fpath.exists() ){ out.println(Does not exist); }else{ out.println(exist); } out.close(); === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: help: connecting Tomcat 5.5 to Apache 2.0 with mod_jk 1.2.8 on ISP's server: SOLVED.
Chris: It's working! Thanks a LOT! What you gave me wasn't the full answer, but it let me eliminate a lot of dead-ends and other mistakes I had made. One (of several) problems this helped was that I was using AddModule and not LoadModule, which is also addressed here: http://www.apache.org/~rbowen/presentations/apachecon2004/apache2.0/slide35. html I also put my workers.properties file in the same directory as httpd.conf b/c of something I read somewhere. Not sure if that actually did anything. I found my problem on other sites with no answers, so I'm going to include the relevant parts of my httpd.conf and workers.properties, in case others have a similar situation. Thanks again, Jason Musegraphics.com My setup: leasing a virtual server from olm.net Apache 2.0.50, Tomcat 5.5.4, mod_jk 1.2.8 Relevant parts of my httpd.conf: LoadModule jk_module modules/mod_jk.so #AddModule modk_jk.c JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /etc/httpd/logs/mod_jk.log JkLogLevel debug JkLogStampFormat [%a %b %d %H:%M] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T JkMount /examples/* musegraphicsworker JkMount /*.jsp musegraphicsworker VirtualHost 69.94.10.74:80 ServerName www.musegraphics.com ServerAdmin [EMAIL PROTECTED] #DocumentRoot /home/virtual/site1/fst/var/www/html --this was another problem I had. Gotta change this after adding Tomcat to Apache. Seems obvious now. Changed to the following: DocumentRoot /usr/local/tomcat/tomcatCV/webapps/jsp-examples Directory /usr/local/tomcat/tomcatCV/webapps/jsp-examples Allow from all AllowOverride All Order allow,deny /Directory # A lot other stuff here my ISP (olm.net) put in, not included for brevity. /VirtualHost My workers.properties file: # workers.tomcat_home=/usr/local/tomcat/ # workers.java_home should point to your Java installation. workers.java_home=/usr/local/java # You should configure your environment slash... ps=\ on NT and / on UNIX ps=/ #-- workers list worker.list=musegraphicsworker #-- musegraphicsworker DEFINITION- worker.musegraphicsworker.type=ajp13 worker.musegraphicsworker.host=localhost worker.musegraphicsworker.port=8009 worker.musegraphicsworker.lbfactor=50 worker.musegraphicsworker.cachesize=10 worker.musegraphicsworker.cache_timeout=600 worker.musegraphicsworker.socket_timeout=300 worker.musegraphicsworker.socket_keepalive=1 There's quite a bit more but those are the parts I changed out of the already existing (and highly complex) Apache configuration my ISP had in place. Jason - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help: connecting Tomcat 5.5 to Apache 2.0 with mod_jk 1.2.8 on ISP's server
Try something like this in your httpd.conf: IfDefine HAVE_JK LoadModule jk_module modules/mod_jk.so IfModule mod_jk.c JkWorkerPropertyworker.musegraphicsworker.type=ajp13 JkWorkerPropertyworker.musegraphicsworker.host=127.0.0.1 JkWorkerPropertyworker.musegraphicsworker.port=8011 JkWorkerPropertyworker.list=musegraphicsworker JkMount /*.jsp musegraphicsworker JkLogFile logs/mod_jk.log JkLogLevel debug JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories /IfModule # mod_jk.c /IfDefine # HAVE_JK Make sure to bind the ajp connector to 127.0.0.1 in your server.xml. You don't want to serve requests from anywhere else for obvious reasons. Here's an example: Connector port=8011 address=127.0.0.1 enableLookups=false redirectPort=8443 protocol=AJP/1.3 / Jason Nichols wrote: Hello all: I've been working on installing Tomcat 5.5 with Apache 2.0 for about two weeks now, and I've been stuck with an error for a week. A lot of my difficulty is that I'm working on a leased ISP's server, and am dealing with a complex pre-existing Apache installation. If you can help or tell me about a good source for integrating Apache with Tomcat via mod_jk (other than apache.org google, which I've been using), that would be great. I'm trying to get to the standard Tomcat examples pages. Any help is appreciated. Problem: Apache 2.0.50 running on a (virtual) server, musegraphics.musegraphics.com, leased from an ISP (olm.net). Apache works fine. Installed Tomcat 5.5.4, connecting it to Apache via mod_jk version 1.2.8. When I have this line JkMount /* musegraphicsworker in httpd.conf (actually a file included by httpd.conf) I get the Apache Internal Server Error page. I also get the following in mod_jk.log map_uri_to_worker::jk_uri_worker_map.c (700): Attempting to map URI '/' from 1 maps map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/*' map_uri_to_worker::jk_uri_worker_map.c (755): Found a context match musegraphicsworker - / jk_handler::mod_jk.c (1715): Into handler jakarta-servlet worker=musegraphicsworker r-proxyreq=0 wc_get_worker_for_name::jk_worker.c (92): did not find a worker musegraphicsworker jk_handler::mod_jk.c (1883): Could not find a worker for worker name=musegraphicsworker When I comment it out, Apache works fine, but of course no Tomcat access. Any ideas would be appreciated Jason More info on Stuff I've done: I added these to httpd.conf: LoadModule jk_module modules/mod_jk.so #at the end of the LoadModule's list And I commented out these(put there by my ISP), b/c they seemed to be interfering with mod_jk.so #IfModule mod_jk.c # JkWorkersFile /etc/httpd/conf/workers.properties # IfDefine PROD_SERVER # JkLogFile/var/log/httpd/mod_jk.log # /IfDefine #IfDefine TEST_SERVER # JkLogFile/var/log/httpd-test/mod_jk.log # /IfDefine # JkLogLevel error #/IfModule Here are the lines I added to workers.properties worker.musegraphicsworker.type=ajp13 worker.musegraphicsworker.host=www.musegraphics.com worker.musegraphicsworker.port=8011 worker.musegraphicsworker.cachesize=10 worker.musegraphicsworker.cache_timeout=600 worker.musegraphicsworker.socket_timeout=300 worker.musegraphicsworker.socket_keepalive=1 What I've done to solve it: I've googled a lot, I've also searched this list's archive, found one person with the same problem but no answer. Again, any help would be greatly appreciated. I'm fairly new - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help Required- tomcat doesn't shutdown properly
What your application is doing ?. is there any threads watiing ?. You can have a look at localhost_log in the logs directory for any errors. rgds Antony Paul On Fri, 4 Feb 2005 10:08:09 +0100, Narayan, Satya [EMAIL PROTECTED] wrote: Hi , I am having a weird problem. I have deployed a webapp which basically runs a servlet in tomcat5. I can start and stop using the exe file provided. But when I use the command line version ie when I open a command shell and type catalina.bat start tomcat starts properly in a new shell. But when in the same command shell and I type catalina.bat stop It tries to stop tomcat but doesnot stop it properly and doesnot close the tomcat shell. The last message that appears on the tomcat shell while stopping is Feb 4, 2005 2:35:29 PM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 This problem doesn't occur when my webapp is not deployed. Kindly advice as to wht could be wrong.Thanks in advance. Best Regards, Satya - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help on tomcat server path set up
This may be due to having 2 or more servlet.jar files in the class path. Check that WEB-INF\lib dont have this jar file. This jar file is provided by the container. Also no need to set up classpath for running Tomcat. The Tomcat start up scripts does this. The classpath you set cannot be seen by the applications you deploy in Tomcat rgds Antony Paul - Original Message - From: Shanti Priya [EMAIL PROTECTED] To: Tomcat-User [EMAIL PROTECTED] Sent: Wednesday, September 22, 2004 11:24 AM Subject: Help on tomcat server path set up Hi !! I am using tomcat 4.1.18 version.Whenever i startup my tomcat it throws the following error .I have actually set up the paths properly. The server message is as follows. Starting service Tomcat-Standalone Apache Tomcat/4.1.18 WebappClassLoader: validateJarFile(C:\Program Files\Apache Group\Tomcat 4.1\bin\ ..\webapps\AS-IT\WEB-INF\lib\servlet_2_3.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class WebappClassLoader: validateJarFile(C:\Program Files\Apache Group\Tomcat 4.1\weba pps\AS-IT\WEB-INF\lib\servlet_2_3.jar) - jar not loaded. See Servlet Spec 2.3, s ection 9.7.2. Offending class: javax/servlet/Servlet.class Sep 22, 2004 10:43:53 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Sep 22, 2004 10:43:54 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 Sep 22, 2004 10:43:54 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=32/94 config=C:\Program Files\Apache Group\Tomcat 4. 1\bin\..\conf\jk2.properties My classpath(Env variables) is as follows %CLASSPATH%;D:\tomcat\common\lib\tools.jar; C:\Program Files\Apache Group\Tomcat 4.1\common\lib; C:\Program Files\Apache Group\Tomcat 4.1\webapps\AS-IT\WEB-INF\lib\*.jar; C:\Program Files\Apache Group\Tomcat 4.1\webapps\AS-IT\WEB-INF\lib\*.jar; C:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet_2_3.jar; And i do have this servlet_2_3.jar in the following path C:\Program Files\Apache Group\Tomcat 4.1\common\lib Thanks Regards, Shanti Priya Sunkara Location: Pune, India Email : [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help on tomcat server path set up
) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 04) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. java:684) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch er.java:432) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher .java:356) at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja va:1759) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:550) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:530) at java.lang.Thread.run(Thread.java:534) -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 22, 2004 11:38 AM To: Tomcat Users List Subject: Re: Help on tomcat server path set up This may be due to having 2 or more servlet.jar files in the class path. Check that WEB-INF\lib dont have this jar file. This jar file is provided by the container. Also no need to set up classpath for running Tomcat. The Tomcat start up scripts does this. The classpath you set cannot be seen by the applications you deploy in Tomcat rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with Tomcat Install?
On Wed, Sep 08, 2004 at 10:49:41AM -0500, Lash, David A (David) wrote: : When I go to http://localhost:8080 I cannot display the 'default page'. Any idea why? Step 1 of Apache/jk(2)/Tomcat debugging: take Apache and JK out of the picture. Enable an HTTP connector on Tomcat and access it directly. If that works, check the Apache setup. Try to think of the Apache as a mask or a pass-through for Tomcat. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with Tomcat Install?
Well, certainly your Tomcat setup works fine, look at the end of your response page it could be, however, that the default webapp hasn't been installed, check webapps/ROOT and see if it is there, its a default response servlet in the WEB-INF/web.xml file Lash, David A (David) escribió: Hi I am trying to figure out why my tomcat install is not working. System: Apache 1.3.29 Server: Solaris 8 Tomcat: 4.1.18 I installed tomcat (setting my CATALINA_HOME and JAVA_HOME). When I go to http://localhost:8080 I cannot display the 'default page'. Any idea why? Enclosed is the 'page' I receive: Thanks dave l HTTP Status 404 - / -- type Status report message / description The requested resource (/) is not available. -- Apache Tomcat/4.1.18 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with Tomcat Install?
Ok, you installed Tomcat, but is it running? Something like: $CATALINA_HOME/bin/start.sh should have happened before pointing at http://localhost:8080. It's a common mistake. Gerardo On Wed, 8 Sep 2004, Lash, David A (David) wrote: Hi I am trying to figure out why my tomcat install is not working. System: Apache 1.3.29 Server: Solaris 8 Tomcat: 4.1.18 I installed tomcat (setting my CATALINA_HOME and JAVA_HOME). When I go to http://localhost:8080 I cannot display the 'default page'. Any idea why? Enclosed is the 'page' I receive: Thanks dave l - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help with Tomcat Install?
Thanks for the response. I do appear to have a ROOT/WEB-INF/web.xml file. It looks like the enclosed page. So that seems fine. Please let me know if you have any other ideas. Thanks Dave lash ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-nameWelcome to Tomcat/display-name description Welcome to Tomcat /description /web-app -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 11:03 AM To: Tomcat Users List Subject: Re: Help with Tomcat Install? Well, certainly your Tomcat setup works fine, look at the end of your response page it could be, however, that the default webapp hasn't been installed, check webapps/ROOT and see if it is there, its a default response servlet in the WEB-INF/web.xml file Lash, David A (David) escribió: Hi I am trying to figure out why my tomcat install is not working. System: Apache 1.3.29 Server: Solaris 8 Tomcat: 4.1.18 I installed tomcat (setting my CATALINA_HOME and JAVA_HOME). When I go to http://localhost:8080 I cannot display the 'default page'. Any idea why? Enclosed is the 'page' I receive: Thanks dave l HTTP Status 404 - / -- type Status report message / description The requested resource (/) is not available. -- Apache Tomcat/4.1.18 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help with Tomcat Install?
Thanks for the help, though I did startup.sh. It appears to start (I have a tomcat deamon running). The file logs/Catalina.out was not clean during the startup (don't know if that is normal). It looks like the enclosed Thanks Dave lash Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1034) at org.apache.catalina.core.StandardService.initialize(StandardService.java:579) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2245) at org.apache.catalina.startup.Catalina.start(Catalina.java:511) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Catalina.stop: LifecycleException: This server has not yet been started LifecycleException: This server has not yet been started at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2212) at org.apache.catalina.startup.Catalina.start(Catalina.java:543) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) -Original Message- From: Gerardo Juarez [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 11:05 AM To: Tomcat Users List Subject: Re: Help with Tomcat Install? Ok, you installed Tomcat, but is it running? Something like: $CATALINA_HOME/bin/start.sh should have happened before pointing at http://localhost:8080. It's a common mistake. Gerardo On Wed, 8 Sep 2004, Lash, David A (David) wrote: Hi I am trying to figure out why my tomcat install is not working. System: Apache 1.3.29 Server: Solaris 8 Tomcat: 4.1.18 I installed tomcat (setting my CATALINA_HOME and JAVA_HOME). When I go to http://localhost:8080 I cannot display the 'default page'. Any idea why? Enclosed is the 'page' I receive: Thanks dave l - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with Tomcat Install?
Yep, there isn't any default servlet definition, that's why you aren't seeing the tomcat default page. Web.xml should have some servlet and servlet-mapping definitions on it anyhow, you should add something to ROOT/ and see if you can touch that file via http://localhost:8080/somefile.someextension Lash, David A (David) escribió: Thanks for the response. I do appear to have a ROOT/WEB-INF/web.xml file. It looks like the enclosed page. So that seems fine. Please let me know if you have any other ideas. Thanks Dave lash ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-nameWelcome to Tomcat/display-name description Welcome to Tomcat /description /web-app -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 11:03 AM To: Tomcat Users List Subject: Re: Help with Tomcat Install? Well, certainly your Tomcat setup works fine, look at the end of your response page it could be, however, that the default webapp hasn't been installed, check webapps/ROOT and see if it is there, its a default response servlet in the WEB-INF/web.xml file Lash, David A (David) escribió: Hi I am trying to figure out why my tomcat install is not working. System: Apache 1.3.29 Server: Solaris 8 Tomcat: 4.1.18 I installed tomcat (setting my CATALINA_HOME and JAVA_HOME). When I go to http://localhost:8080 I cannot display the 'default page'. Any idea why? Enclosed is the 'page' I receive: Thanks dave l HTTP Status 404 - / -- type Status report message / description The requested resource (/) is not available. -- Apache Tomcat/4.1.18 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with Tomcat Install?
Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 This error is saying that port 8080 is already taken, probably by your already running Tomcat daemon, it is common in that case -- John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with Tomcat Install?
It looks like the port is being used by another application. Run Shutdown.sh once, and then run startup.sh and still if you get the same error as Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 Then some other application is using the port Access server.xml file and change port from 8080 to say 7645 . Try to start the server and access the page at http://localhost:7645 Best Regards, Avinash - Original Message - From: John Villar [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 9:45 PM Subject: Re: Help with Tomcat Install? Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 This error is saying that port 8080 is already taken, probably by your already running Tomcat daemon, it is common in that case -- John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help with Tomcat Install?
Hi, There is at least one of other possible cause for this error. Perhaps your shutdown cannot be completed normally. For example, if you start a non-daemon thread from your app and never shut it down, it will keep running. That will prevent the JVM process from exiting and the port will stay bound, even though all the Tomcat stuff is gone and you won't be able to connect to Tomcat with a browser. In that case, you'd need to kill the process in order to release the port. Then you'll be able to start up again. Of course, you should debug why this is happening. Yoav Shapira Millennium Research Informatics -Original Message- From: Avinash R S [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 12:24 PM To: Tomcat Users List Subject: Re: Help with Tomcat Install? It looks like the port is being used by another application. Run Shutdown.sh once, and then run startup.sh and still if you get the same error as Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 Then some other application is using the port Access server.xml file and change port from 8080 to say 7645 . Try to start the server and access the page at http://localhost:7645 Best Regards, Avinash - Original Message - From: John Villar [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 9:45 PM Subject: Re: Help with Tomcat Install? Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 This error is saying that port 8080 is already taken, probably by your already running Tomcat daemon, it is common in that case -- John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com --- - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with Tomcat Install?
I think that's not the case, look that he gets a 404 status from tomcat with a Apache Tomcat/4.1.18 signature at the end the problem he's having is that the default servlet for tomcat root isn't insatalled very rare indeed, but that's the case Shapira, Yoav escribió: Hi, There is at least one of other possible cause for this error. Perhaps your shutdown cannot be completed normally. For example, if you start a non-daemon thread from your app and never shut it down, it will keep running. That will prevent the JVM process from exiting and the port will stay bound, even though all the Tomcat stuff is gone and you won't be able to connect to Tomcat with a browser. In that case, you'd need to kill the process in order to release the port. Then you'll be able to start up again. Of course, you should debug why this is happening. Yoav Shapira Millennium Research Informatics -Original Message- From: Avinash R S [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 12:24 PM To: Tomcat Users List Subject: Re: Help with Tomcat Install? It looks like the port is being used by another application. Run Shutdown.sh once, and then run startup.sh and still if you get the same error as Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 Then some other application is using the port Access server.xml file and change port from 8080 to say 7645 . Try to start the server and access the page at http://localhost:7645 Best Regards, Avinash - Original Message - From: John Villar [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 9:45 PM Subject: Re: Help with Tomcat Install? Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 This error is saying that port 8080 is already taken, probably by your already running Tomcat daemon, it is common in that case -- John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com --- - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help with Tomcat Install?
Hi, I don't think so ;) You're confusing two threads here. This guy doesn't get a 404, he gets a bind exception. There's no way to rule out the option I suggested from the information he's posted so far. Your suggestion to the other guy who's getting the 404 is also likely wrong: the default servlet is included automatically from $CATALINA_HOME/conf/web.xml. A webapp's web.xml file can contain just the root element with nothing in it, as his does: that's both valid and supported by Tomcat. Yoav Shapira Millennium Research Informatics -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 12:39 PM To: Tomcat Users List Subject: Re: Help with Tomcat Install? I think that's not the case, look that he gets a 404 status from tomcat with a Apache Tomcat/4.1.18 signature at the end the problem he's having is that the default servlet for tomcat root isn't insatalled very rare indeed, but that's the case Shapira, Yoav escribió: Hi, There is at least one of other possible cause for this error. Perhaps your shutdown cannot be completed normally. For example, if you start a non-daemon thread from your app and never shut it down, it will keep running. That will prevent the JVM process from exiting and the port will stay bound, even though all the Tomcat stuff is gone and you won't be able to connect to Tomcat with a browser. In that case, you'd need to kill the process in order to release the port. Then you'll be able to start up again. Of course, you should debug why this is happening. Yoav Shapira Millennium Research Informatics -Original Message- From: Avinash R S [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 12:24 PM To: Tomcat Users List Subject: Re: Help with Tomcat Install? It looks like the port is being used by another application. Run Shutdown.sh once, and then run startup.sh and still if you get the same error as Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 Then some other application is using the port Access server.xml file and change port from 8080 to say 7645 . Try to start the server and access the page at http://localhost:7645 Best Regards, Avinash - Original Message - From: John Villar [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 9:45 PM Subject: Re: Help with Tomcat Install? Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 This error is saying that port 8080 is already taken, probably by your already running Tomcat daemon, it is common in that case -- John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com --- - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary
Re: Help with Tomcat Install?
John, Root App does not have a servlet. The page accessed is a static html page ROOT/index.html. Then verify whether index.html file along with 3 image files is available at location ROOT app. Best Regards, Avinash R S - Original Message - From: John Villar [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 10:08 PM Subject: Re: Help with Tomcat Install? I think that's not the case, look that he gets a 404 status from tomcat with a Apache Tomcat/4.1.18 signature at the end the problem he's having is that the default servlet for tomcat root isn't insatalled very rare indeed, but that's the case Shapira, Yoav escribió: Hi, There is at least one of other possible cause for this error. Perhaps your shutdown cannot be completed normally. For example, if you start a non-daemon thread from your app and never shut it down, it will keep running. That will prevent the JVM process from exiting and the port will stay bound, even though all the Tomcat stuff is gone and you won't be able to connect to Tomcat with a browser. In that case, you'd need to kill the process in order to release the port. Then you'll be able to start up again. Of course, you should debug why this is happening. Yoav Shapira Millennium Research Informatics -Original Message- From: Avinash R S [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 12:24 PM To: Tomcat Users List Subject: Re: Help with Tomcat Install? It looks like the port is being used by another application. Run Shutdown.sh once, and then run startup.sh and still if you get the same error as Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 Then some other application is using the port Access server.xml file and change port from 8080 to say 7645 . Try to start the server and access the page at http://localhost:7645 Best Regards, Avinash - Original Message - From: John Villar [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 9:45 PM Subject: Re: Help with Tomcat Install? Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 This error is saying that port 8080 is already taken, probably by your already running Tomcat daemon, it is common in that case -- John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com --- - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: This message
RE: Help with Tomcat Install?
Hi all Here is the contents of webapps/ROOT WEB-INF/ index.jspjakarta-banner.gif tomcat-power.gif tomcat.gif I also tried http://localserver:8080/index.jsp And got the same 404 error. So its like tomcat is looking in a different directory. Is there a config file that defines where tomcat looks for root files? (perhaps someone (at my site) changed this). Thanks Dave lash -Original Message- From: Avinash R S [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 11:47 AM To: Tomcat Users List Subject: Re: Help with Tomcat Install? John, Root App does not have a servlet. The page accessed is a static html page ROOT/index.html. Then verify whether index.html file along with 3 image files is available at location ROOT app. Best Regards, Avinash R S - Original Message - From: John Villar [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 10:08 PM Subject: Re: Help with Tomcat Install? I think that's not the case, look that he gets a 404 status from tomcat with a Apache Tomcat/4.1.18 signature at the end the problem he's having is that the default servlet for tomcat root isn't insatalled very rare indeed, but that's the case Shapira, Yoav escribió: Hi, There is at least one of other possible cause for this error. Perhaps your shutdown cannot be completed normally. For example, if you start a non-daemon thread from your app and never shut it down, it will keep running. That will prevent the JVM process from exiting and the port will stay bound, even though all the Tomcat stuff is gone and you won't be able to connect to Tomcat with a browser. In that case, you'd need to kill the process in order to release the port. Then you'll be able to start up again. Of course, you should debug why this is happening. Yoav Shapira Millennium Research Informatics -Original Message- From: Avinash R S [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 12:24 PM To: Tomcat Users List Subject: Re: Help with Tomcat Install? It looks like the port is being used by another application. Run Shutdown.sh once, and then run startup.sh and still if you get the same error as Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 Then some other application is using the port Access server.xml file and change port from 8080 to say 7645 . Try to start the server and access the page at http://localhost:7645 Best Regards, Avinash - Original Message - From: John Villar [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 9:45 PM Subject: Re: Help with Tomcat Install? Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 This error is saying that port 8080 is already taken, probably by your already running Tomcat daemon, it is common in that case -- John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com --- - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify
RE: Help with Tomcat Install?
David, In the sequence of events to start Tomcat, binding to the port comes first. If the log says that this failed, then Tomcat is not listening there. I have seen many times the 404 error to know that it doesn't tell me much about what it is really happening. The Tomcat logs are the place to look. Gerardo On Wed, 8 Sep 2004, Lash, David A (David) wrote: Hi all Here is the contents of webapps/ROOT WEB-INF/ index.jspjakarta-banner.gif tomcat-power.gif tomcat.gif I also tried http://localserver:8080/index.jsp And got the same 404 error. So its like tomcat is looking in a different directory. Is there a config file that defines where tomcat looks for root files? (perhaps someone (at my site) changed this). Thanks Dave lash -Original Message- From: Avinash R S [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 11:47 AM To: Tomcat Users List Subject: Re: Help with Tomcat Install? John, Root App does not have a servlet. The page accessed is a static html page ROOT/index.html. Then verify whether index.html file along with 3 image files is available at location ROOT app. Best Regards, Avinash R S - Original Message - From: John Villar [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 10:08 PM Subject: Re: Help with Tomcat Install? I think that's not the case, look that he gets a 404 status from tomcat with a Apache Tomcat/4.1.18 signature at the end the problem he's having is that the default servlet for tomcat root isn't insatalled very rare indeed, but that's the case Shapira, Yoav escribió: Hi, There is at least one of other possible cause for this error. Perhaps your shutdown cannot be completed normally. For example, if you start a non-daemon thread from your app and never shut it down, it will keep running. That will prevent the JVM process from exiting and the port will stay bound, even though all the Tomcat stuff is gone and you won't be able to connect to Tomcat with a browser. In that case, you'd need to kill the process in order to release the port. Then you'll be able to start up again. Of course, you should debug why this is happening. Yoav Shapira Millennium Research Informatics -Original Message- From: Avinash R S [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 12:24 PM To: Tomcat Users List Subject: Re: Help with Tomcat Install? It looks like the port is being used by another application. Run Shutdown.sh once, and then run startup.sh and still if you get the same error as Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 Then some other application is using the port Access server.xml file and change port from 8080 to say 7645 . Try to start the server and access the page at http://localhost:7645 Best Regards, Avinash - Original Message - From: John Villar [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 9:45 PM Subject: Re: Help with Tomcat Install? Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 This error is saying that port 8080 is already taken, probably by your already running Tomcat daemon, it is common in that case -- John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com --- - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission
Re: Help with Tomcat Install?
Let me wrap this up. initially he said that he (david lash) was getting the following page: HTTP Status 404 - / -- type Status report message / description The requested resource (/) is not available. -- Apache Tomcat/4.1.18 Clearly, it is a response from tomcat, because the tomcat signature. Then Gerardo Juarez said: $CATALINA_HOME/bin/start.sh should have happened before pointing at http://localhost:8080. It's a common mistake. And following that david lash response was: Thanks for the help, though I did startup.sh. It appears to start (I have a tomcat deamon running). The file logs/Catalina.out was not clean during the startup (don't know if that is normal). It looks like the enclosed Thanks Dave lash Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 So, what's happening here is that someone confused david lash with the bind exception thing because he had tomcat already up and running as a daemon, and OFF COURSE he had a bind error when manually running tomcat My guess, he doesn't have anything in the tomcat ROOT. and he has an already running tomcat set up. Shapira, Yoav escribió: Hi, I don't think so ;) You're confusing two threads here. This guy doesn't get a 404, he gets a bind exception. There's no way to rule out the option I suggested from the information he's posted so far. Your suggestion to the other guy who's getting the 404 is also likely wrong: the default servlet is included automatically from $CATALINA_HOME/conf/web.xml. A webapp's web.xml file can contain just the root element with nothing in it, as his does: that's both valid and supported by Tomcat. Yoav Shapira Millennium Research Informatics -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 12:39 PM To: Tomcat Users List Subject: Re: Help with Tomcat Install? I think that's not the case, look that he gets a 404 status from tomcat with a Apache Tomcat/4.1.18 signature at the end the problem he's having is that the default servlet for tomcat root isn't insatalled very rare indeed, but that's the case Shapira, Yoav escribió: Hi, There is at least one of other possible cause for this error. Perhaps your shutdown cannot be completed normally. For example, if you start a non-daemon thread from your app and never shut it down, it will keep running. That will prevent the JVM process from exiting and the port will stay bound, even though all the Tomcat stuff is gone and you won't be able to connect to Tomcat with a browser. In that case, you'd need to kill the process in order to release the port. Then you'll be able to start up again. Of course, you should debug why this is happening. Yoav Shapira Millennium Research Informatics -Original Message- From: Avinash R S [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 12:24 PM To: Tomcat Users List Subject: Re: Help with Tomcat Install? It looks like the port is being used by another application. Run Shutdown.sh once, and then run startup.sh and still if you get the same error as Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 Then some other application is using the port Access server.xml file and change port from 8080 to say 7645 . Try to start the server and access the page at http://localhost:7645 Best Regards, Avinash - Original Message - From: John Villar [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 9:45 PM Subject: Re: Help with Tomcat Install? Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 This error is saying that port 8080 is already taken, probably by your already running Tomcat daemon, it is common in that case -- John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com --- - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded
RE: Help with Tomcat Install?
All Thanks for your help and suggestions. I finally got the install to work by the following: 1. I grabbed a more recent binary distribution. 2. I changed the port to . It appeared that something was on port 8080. The strange thing was that the deamon did start (but I could not look at pages). thanks again dave lash -Original Message- From: Lash, David A (David) [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 11:49 AM To: Tomcat Users List Subject: RE: Help with Tomcat Install? Hi all Here is the contents of webapps/ROOT WEB-INF/ index.jspjakarta-banner.gif tomcat-power.gif tomcat.gif I also tried http://localserver:8080/index.jsp And got the same 404 error. So its like tomcat is looking in a different directory. Is there a config file that defines where tomcat looks for root files? (perhaps someone (at my site) changed this). Thanks Dave lash -Original Message- From: Avinash R S [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 11:47 AM To: Tomcat Users List Subject: Re: Help with Tomcat Install? John, Root App does not have a servlet. The page accessed is a static html page ROOT/index.html. Then verify whether index.html file along with 3 image files is available at location ROOT app. Best Regards, Avinash R S - Original Message - From: John Villar [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 10:08 PM Subject: Re: Help with Tomcat Install? I think that's not the case, look that he gets a 404 status from tomcat with a Apache Tomcat/4.1.18 signature at the end the problem he's having is that the default servlet for tomcat root isn't insatalled very rare indeed, but that's the case Shapira, Yoav escribió: Hi, There is at least one of other possible cause for this error. Perhaps your shutdown cannot be completed normally. For example, if you start a non-daemon thread from your app and never shut it down, it will keep running. That will prevent the JVM process from exiting and the port will stay bound, even though all the Tomcat stuff is gone and you won't be able to connect to Tomcat with a browser. In that case, you'd need to kill the process in order to release the port. Then you'll be able to start up again. Of course, you should debug why this is happening. Yoav Shapira Millennium Research Informatics -Original Message- From: Avinash R S [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 12:24 PM To: Tomcat Users List Subject: Re: Help with Tomcat Install? It looks like the port is being used by another application. Run Shutdown.sh once, and then run startup.sh and still if you get the same error as Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 Then some other application is using the port Access server.xml file and change port from 8080 to say 7645 . Try to start the server and access the page at http://localhost:7645 Best Regards, Avinash - Original Message - From: John Villar [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 9:45 PM Subject: Re: Help with Tomcat Install? Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 This error is saying that port 8080 is already taken, probably by your already running Tomcat daemon, it is common in that case -- John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com --- - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. - To unsubscribe, e
RE: Help on tomcat 5.0 connection pool
Hi, Either use the same connection, i.e. don't return it to the pool between executions, or re-prepare the statement with every connection. The choice depends on how often you run these queries. Yoav Shapira Millennium Research Informatics -Original Message- From: Koon Yue Lam [mailto:[EMAIL PROTECTED] Sent: Monday, July 19, 2004 11:42 AM To: Tomcat Users List Subject: Help on tomcat 5.0 connection pool Hi, I am using Tomcat 5.0 and Stuct 1.1 to develop a web base application and I want to create some prepareStatement and execute it multiple times but since the connection is retrieved from the pool upon request, I may get a number of connections, how can I create a prepareStatement to a specific connection?? code like this: PreparedStatement pstmt = con.prepareStatement(UPDATE EMPLOYEES SET SALARY = ? WHERE ID = ?); pstmt.setBigDecimal(1, 153833.00) pstmt.setInt(2, 110592) Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help on tomcat 5.0 connection pool
ok, i will have a try, thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help with tomcat 5 - mod_jk2 - apache 2
Okay this was a Typo and i fixed it in the workers.properties file. I also put an empty jk2.properties file in the tomcat conf directories. However I don't really understand how you can change the jvmRoute to localhost? I have 2 instances of tomcat, I can't name them both localhost, can I? I already tried tomcat1 and tomcat2, but this didn't work either. More ideas are welcome? Bjorn Hi, perhaps it is only a typo, but stickSession=1 is wrong should be stickySession=1 Another thing is naming of jvmRoute=localhost:1009. We didn't include port here. The jk2.properties file is empty in our configuration. hope this helps a bit. Carsten fix wrote: Hey there, I've been searching for a long time know and can't seem to find a solution. I'm settin up a new production server (pIV 4 gig mem) and wanted to run 1 apache in front of several tomcat instances. I've set the whole thing up and it works almost, only the stickySession attribute isn't getting picked up right or something. If I try to access our application I get switched between the 2 instances. here is my workers2.properties file: [shm] info=Scoreboard. Required for reconfiguration and status with multiprocess serversfile=/tmp/jk2.shm size=100 [lb:lb_01] info=Default load balancer. debug=0 stickSession=1 [channel.socket:localhost:11009] tomcatId=localhost:11009 lb_factor=100 group=lb_01 [channel.socket:localhost:12009] tomcatId=localhost:12009 lb_factor=100 group=lb_01 [status:status] info=Status worker, displays runtime informations [uri:/jkstatus/*] info=Display status information and checks the config file for changes. group=status:status [uri:/jsp-examples/*] info=Map all the JSP examples group=lb_01 [uri:/servlets-examples/*] info=Map all the servlet examples group=lb_01 [uri:/loadtest/*] info=testing the load balancer group=lb_01 one tomcat instance jk2.properties ## COMMENTS WILL BE _LOST_ ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc. # Set the desired handler list # handler.list=apr,request,channelJni # # Override the default port for the socketChannel channelSocket.port=11009 # Default: # channelUnix.file=${jkHome}/work/jk2.socket # Just to check if the the config is working # shm.file=${jkHome}/work/jk2.shm # In order to enable jni use any channelJni directive # channelJni.disabled = 0 # And one of the following directives: # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so # If set to inprocess the mod_jk2 will Register natives itself # This will enable the starting of the Tomcat from mod_jk2 # apr.jniModeSo=inprocess server.xml (what is off importance) Engine name=Standalone defaultHost=localhost debug=0 jvmRoute=localhost:11009 Connector port=11009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / 1 thing what's not totaly clear to me is why you have an jk2.properties file and still have to configure the AJP connector. I initialy thought this was because the AJP connector worked with TCP and the jk2.properties was for the UNIX sockets but I think I messed that one up. :) I'm running tomcat5 latest release and the apache 2 from debian testing. It is the worker version. I checked it with apache2 -l and i got this core.c mod_access.c mod_auth.c mod_log_config.c mod_logio.c mod_env.c mod_setenvif.c worker.c http_core.c mod_mime.c mod_status.c mod_autoindex.c mod_negotiation.c mod_dir.c mod_userdir.c mod_alias.c mod_so.c this is correct no? these mods are enabled: cgi.load cgid.conf cgid.load jk2.load ssl.conf ssl.load usertrack.load Has anybody had this problem before? I already spent a few houres on google and rewrote my properties file several times but always the same result. some last info: Apache/2.0.49 (Debian GNU/Linux) mod_jk2/2.0.4 mod_ssl/2.0.49 OpenSSL/0.9.7d Server at 10.0.0.192 Port 80 thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help with tomcat 5 - mod_jk2 - apache 2
Hi, perhaps it is only a typo, but stickSession=1 is wrong should be stickySession=1 Another thing is naming of jvmRoute=localhost:1009. We didn't include port here. The jk2.properties file is empty in our configuration. hope this helps a bit. Carsten fix wrote: Hey there, I've been searching for a long time know and can't seem to find a solution. I'm settin up a new production server (pIV 4 gig mem) and wanted to run 1 apache in front of several tomcat instances. I've set the whole thing up and it works almost, only the stickySession attribute isn't getting picked up right or something. If I try to access our application I get switched between the 2 instances. here is my workers2.properties file: [shm] info=Scoreboard. Required for reconfiguration and status with multiprocess serversfile=/tmp/jk2.shm size=100 [lb:lb_01] info=Default load balancer. debug=0 stickSession=1 [channel.socket:localhost:11009] tomcatId=localhost:11009 lb_factor=100 group=lb_01 [channel.socket:localhost:12009] tomcatId=localhost:12009 lb_factor=100 group=lb_01 [status:status] info=Status worker, displays runtime informations [uri:/jkstatus/*] info=Display status information and checks the config file for changes. group=status:status [uri:/jsp-examples/*] info=Map all the JSP examples group=lb_01 [uri:/servlets-examples/*] info=Map all the servlet examples group=lb_01 [uri:/loadtest/*] info=testing the load balancer group=lb_01 one tomcat instance jk2.properties ## COMMENTS WILL BE _LOST_ ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc. # Set the desired handler list # handler.list=apr,request,channelJni # # Override the default port for the socketChannel channelSocket.port=11009 # Default: # channelUnix.file=${jkHome}/work/jk2.socket # Just to check if the the config is working # shm.file=${jkHome}/work/jk2.shm # In order to enable jni use any channelJni directive # channelJni.disabled = 0 # And one of the following directives: # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so # If set to inprocess the mod_jk2 will Register natives itself # This will enable the starting of the Tomcat from mod_jk2 # apr.jniModeSo=inprocess server.xml (what is off importance) Engine name=Standalone defaultHost=localhost debug=0 jvmRoute=localhost:11009 Connector port=11009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / 1 thing what's not totaly clear to me is why you have an jk2.properties file and still have to configure the AJP connector. I initialy thought this was because the AJP connector worked with TCP and the jk2.properties was for the UNIX sockets but I think I messed that one up. :) I'm running tomcat5 latest release and the apache 2 from debian testing. It is the worker version. I checked it with apache2 -l and i got this core.c mod_access.c mod_auth.c mod_log_config.c mod_logio.c mod_env.c mod_setenvif.c worker.c http_core.c mod_mime.c mod_status.c mod_autoindex.c mod_negotiation.c mod_dir.c mod_userdir.c mod_alias.c mod_so.c this is correct no? these mods are enabled: cgi.load cgid.conf cgid.load jk2.load ssl.conf ssl.load usertrack.load Has anybody had this problem before? I already spent a few houres on google and rewrote my properties file several times but always the same result. some last info: Apache/2.0.49 (Debian GNU/Linux) mod_jk2/2.0.4 mod_ssl/2.0.49 OpenSSL/0.9.7d Server at 10.0.0.192 Port 80 thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help in Tomcat 5.0
Read: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html Then ask more technical questions (make sure you search the list first) -- Jeanfrancois Rahul Toraskar wrote: Hi, I am new to Tomcat env. I am using Tomcat 5.0 with Oracle 8.1.7 on Windows 2000 Platform. Earlier i was working on Weblogic 5.1 Platform. I want to port my application from Weblogic 5.1 to Tomcat 5.0. I need help in setting of server.xml, web.xml and oracle pool settings etc. So can anyone help me in that? Please reply back ASAP. Thanks in anticipation, Rahul Toraskar. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: help w/ Tomcat configuration
Howdy, I already got the http://localhost:8080/ working, but let me tell you that I barely understand the reason I have to install Tomcat, and thus I feel overwhelmed with all this configurations and settings. Welcome to the java and tomcat world ;) My Company wishes me replace their Lotus approach DB/interface with something more efficient and new, after some research I decided to implement MySQL, and Java JSP, I knew that I need to install Tomcat in order to display Java JSP pages, but that's all I know. You've made a solid choice, so you're already off to a good start. I already went to the Administrator/JSP Engine Config HOW-TO section under my local host, but I get easily intimidated by all the terms used Ant, jikes, forks, etc. Is there a section that explains all that, a glossary of sorts? Even though I have a pretty good idea of what all that means, I rather understand it before acting. Get a book, e.g. Core Servlets and JSPs. It gives an overview and explanation of all these terms and ideas. The book may look thick, but it's easy to read and you don't have to memorize all of it. It will save you weeks of frustration. Then when you have specific questions, ask them here and we'll help you out ;) Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help w/ Tomcat configuration
hi actually all is there in server.xml and http://localhost is getting u the /$tomcat_home/webpass/ROOT/index.jsp new contexts are defined in webapps using xml file ..some samples u can get in /$tomcat_home/webapss/ alos for glossory u can search in web its all available in plenty On Sat, 27 Dec 2003, Gustavo Nieto wrote: To whom it may concern: Hi!, I recently installed Tomcat on my Laptop (I have to install it on my Company's Server, which is a Windows 2003 Server, but since this is my first time doing so I begun with my laptop). I already got the http://localhost:8080/ working, but let me tell you that I barely understand the reason I have to install Tomcat, and thus I feel overwhelmed with all this configurations and settings. My Company wishes me replace their Lotus approach DB/interface with something more efficient and new, after some research I decided to implement MySQL, and Java JSP, I knew that I need to install Tomcat in order to display Java JSP pages, but that's all I know. I already went to the Administrator/JSP Engine Config HOW-TO section under my local host, but I get easily intimidated by all the terms used Ant, jikes, forks, etc. Is there a section that explains all that, a glossary of sorts? Even though I have a pretty good idea of what all that means, I rather understand it before acting. I'm barely going to learn Java JSP as well as MySQL, which I know should be first step before diving into Tomcat, but this is an urgent shore and I'm stuck with doing it all at once. Any help would be greatly appreciated. You guys are doing a great work, I still can't believe that all this is open source since it is Top Notch Grade Thank you and have a happy new year! -Gustavo N. P.S. What is a local host? why is my http://localhost:8080/ pointing to a webpage within my computer? what is it doing? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- contact me : _ Akhilesh Kumar Maurya Engineer ITX,BHEL Hardwar _ E-Mail Id(s):- [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] __ DISCLAIMER: This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: help in tomcat 5 and MS SQL 2000
Hi Tom, Can you stop this return receipt thing? Regards -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, December 22, 2003 1:41 PM To: [EMAIL PROTECTED] Subject: RE: help in tomcat 5 and MS SQL 2000 Return Receipt Your RE: help in tomcat 5 and MS SQL 2000 document : was Tom Williams/HQ/dssi received by: at: 12/22/2003 10:40:56 AM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: help in tomcat 5 and MS SQL 2000
Return Receipt Your RE: help in tomcat 5 and MS SQL 2000 document : was Tom Williams/HQ/dssi received by: at: 12/22/2003 10:40:56 AM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help in tomcat 5 and MS SQL 2000
u can either: a) search google for this info b) look at Tomcat Documentation in the JNDI Datasource HOW-TO, http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html c) if setting up MS SQL 2000 is anything similar to Sybase ASE (which it should since they used to be the same product), then u can check out Sybase's jConnect 5.5 (which can be downloaded from Sybase's website) and how to set it up with Tomcat, http://info.sybase.com/resolution/detail.stm?id_number=10899047 Thanks, Alan Czajkowski - Database Administrator BMO Financial Group Decision Support Services 3300 Bloor Street West 14th Floor, West Tower Toronto, Ontario, M8X 2X2 Tel: 416.232.8736 - [EMAIL PROTECTED] 17/12/2003 10:07 AM Please respond to Tomcat Users List To: [EMAIL PROTECTED] cc: Subject:help in tomcat 5 and MS SQL 2000 Hi, I'd like to learn JSP with Tomcat 5. Any help in how to configure Tomcat in order to connect with MS SQL 2000 server. Thanks in advance, Suchun Wu 1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: help in tomcat 5 and MS SQL 2000
If you have a driver already I'll post a sample configuration. Whould that help? Jester -Original Message- From: Alan Czajkowski [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 11:37 AM To: Tomcat Users List Subject: Re: help in tomcat 5 and MS SQL 2000 u can either: a) search google for this info b) look at Tomcat Documentation in the JNDI Datasource HOW-TO, http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html c) if setting up MS SQL 2000 is anything similar to Sybase ASE (which it should since they used to be the same product), then u can check out Sybase's jConnect 5.5 (which can be downloaded from Sybase's website) and how to set it up with Tomcat, http://info.sybase.com/resolution/detail.stm?id_number=10899047 Thanks, Alan Czajkowski - Database Administrator BMO Financial Group Decision Support Services 3300 Bloor Street West 14th Floor, West Tower Toronto, Ontario, M8X 2X2 Tel: 416.232.8736 - [EMAIL PROTECTED] 17/12/2003 10:07 AM Please respond to Tomcat Users List To: [EMAIL PROTECTED] cc: Subject:help in tomcat 5 and MS SQL 2000 Hi, I'd like to learn JSP with Tomcat 5. Any help in how to configure Tomcat in order to connect with MS SQL 2000 server. Thanks in advance, Suchun Wu 1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help in tomcat 5 and MS SQL 2000
In the how-to file you mentioned, there is no example for MS SQL and Sybase. There is an example for mysql. I wonder it works with MS SQL 2000. Someone has similar experience, please share. Thanks, Suchun - Original Message - From: Alan Czajkowski [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 11:37 AM Subject: Re: help in tomcat 5 and MS SQL 2000 u can either: a) search google for this info b) look at Tomcat Documentation in the JNDI Datasource HOW-TO, http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html c) if setting up MS SQL 2000 is anything similar to Sybase ASE (which it should since they used to be the same product), then u can check out Sybase's jConnect 5.5 (which can be downloaded from Sybase's website) and how to set it up with Tomcat, http://info.sybase.com/resolution/detail.stm?id_number=10899047 Thanks, Alan Czajkowski - Database Administrator BMO Financial Group Decision Support Services 3300 Bloor Street West 14th Floor, West Tower Toronto, Ontario, M8X 2X2 Tel: 416.232.8736 - [EMAIL PROTECTED] 17/12/2003 10:07 AM Please respond to Tomcat Users List To: [EMAIL PROTECTED] cc: Subject:help in tomcat 5 and MS SQL 2000 Hi, I'd like to learn JSP with Tomcat 5. Any help in how to configure Tomcat in order to connect with MS SQL 2000 server. Thanks in advance, Suchun Wu 1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: help in tomcat 5 and MS SQL 2000
Goto microsoft's site, they have a SQL 2000 JDBC driver available.. -Art -Original Message- From: Suchun Wu [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 8:26 PM To: Tomcat Users List Subject: Re: help in tomcat 5 and MS SQL 2000 In the how-to file you mentioned, there is no example for MS SQL and Sybase. There is an example for mysql. I wonder it works with MS SQL 2000. Someone has similar experience, please share. Thanks, Suchun - Original Message - From: Alan Czajkowski [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 11:37 AM Subject: Re: help in tomcat 5 and MS SQL 2000 u can either: a) search google for this info b) look at Tomcat Documentation in the JNDI Datasource HOW-TO, http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples -howto.html c) if setting up MS SQL 2000 is anything similar to Sybase ASE (which it should since they used to be the same product), then u can check out Sybase's jConnect 5.5 (which can be downloaded from Sybase's website) and how to set it up with Tomcat, http://info.sybase.com/resolution/detail.stm?id_number=10899047 Thanks, Alan Czajkowski - Database Administrator BMO Financial Group Decision Support Services 3300 Bloor Street West 14th Floor, West Tower Toronto, Ontario, M8X 2X2 Tel: 416.232.8736 - [EMAIL PROTECTED] 17/12/2003 10:07 AM Please respond to Tomcat Users List To: [EMAIL PROTECTED] cc: Subject:help in tomcat 5 and MS SQL 2000 Hi, I'd like to learn JSP with Tomcat 5. Any help in how to configure Tomcat in order to connect with MS SQL 2000 server. Thanks in advance, Suchun Wu 1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: help for tomcat
Hello, Put your driver in common/lib configure server.xml with your database's username/password/driverclass/driveruri also look into the stacktrace to know why the exception is thrown. regards /anton -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: den 11 november 2003 17:47 To: [EMAIL PROTECTED] Subject: help for tomcat Dear all, I am university student in sri lanaka. I want to setup tomacat to access to oracle database.I installed oracle 8i database and apache-tomcat5.0.14 in window 2000 server.Both working individually well. I want to connect thro JSP page. What I have to do? Please tell the which file i have to configure. other wise specify the websites. I ran with sample code but it say this error org.apache.jasper.JasperException please help me thanks in advance This message was sent using IMP, the Internet Messaging Program. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help for tomcat
It is not good programming to put any connection string or code on JSP. Instead, those code should be encapsulated in either a servlet class or a java bean. To access Oracle database, simply use the DriverManager for that. I also recommend you to download the Type 4 JDBC driver for this task. Hope this helps. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 10:47 AM Subject: help for tomcat Dear all, I am university student in sri lanaka. I want to setup tomacat to access to oracle database.I installed oracle 8i database and apache-tomcat5.0.14 in window 2000 server.Both working individually well. I want to connect thro JSP page. What I have to do? Please tell the which file i have to configure. other wise specify the websites. I ran with sample code but it say this error org.apache.jasper.JasperException please help me thanks in advance This message was sent using IMP, the Internet Messaging Program. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help with Tomcat 4.1.24
Howdy, You can search the archives on the use of symlinks or the tldScanJar exception for more information: this comes up a lot. What I suggest is to stick with your current system: have a central location for your tools, preferably under version control, and copy jars out of it into the WEB-INF/lib directories when deploying (this copy is done by an Ant script I assume). Yes, this means two hard copies rather than a link, but it keeps your webapp self-contained and helps ensure portability for platforms/servers that don't support symbolic links. Yoav Shapira Millennium ChemInformatics -Original Message- From: Sarika Inamdar [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 6:31 AM To: [EMAIL PROTECTED] Subject: Help with Tomcat 4.1.24 Hi All, We have migrated to tomcat 4.1.24 from tomcat 3.2.23. Thanks to the tomcat-user list, we were able to deploy the tomcat successfully :-) We have one issue however !!! The tomcat 4.1.24, requires that we place all the jars which is used by the jsp's under TOMCAT_HOME/webapps/WEB-INF/lib directory. In our deployment, we use lot of 3rd party software like AdventSNMP jar, tibco jar and our own application jar. These jars are already present under our tools directory. But with 4.1.24 migration, we have to place all these jars under WEB-INF/lib. This will destroy our directory structure in case we want to mv all of them. To avoid this, we created soft links for the required jars under /WEB-INF/lib. The problem is tomcat server is able to DEPLOY some of the jars, and is cribbing for some jars. For Example, for AdventNetSNMP jar, tomcat throws the following error : 2003-07-31 16:07:25 ContextConfig[] Exception processing JAR at resource path /WE B-INF/lib/AdventNetSnmp.jar javax.servlet.ServletException: Exception processing JAR at resource path /WEB-IN F/lib/AdventNetSnmp.jar at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.jav a:930) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:8 68) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647 ) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig .java:243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycle Support.java:166) Is it possible that some jars get deployed and some don't ? Please lend me your inputs and suggesstions. Thanks in Advance, Sarika - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help Running Tomcat
On Thu, 12 Jun 2003 02:18, Ivon Gonzalez wrote: I have moved the servlet.jar file to the java sdk home/jre/lib/ext. Why did you do that? That is probably causing your problem... Try: startup.bat -- startup_error.log to capture the errors and then see what the problem is by reviewing the file. Regards, -- Jason Bainbridge http://jblinux.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help Running Tomcat
Ivon Gonzalez wrote: I have set up a few computers with Tomcat on a network and local machines. I am having problems running Tomcat on this particular machine which is on a network. I have moved the servlet.jar file to the java sdk home/jre/lib/ext. I have set up JAVA_HOME to point to my sdk location and the TOMCAT_HOME to the tomcat location. when I run Tomcat by typing tomcat startup or tomcat start it opens a new dos window and closes it immediately. I type in tomcat run and it gives me this error: Exception in thread main java.lang.NoClassDefFoundError: org/apache/tomcat/logging/Logger What could be causing this error? How do I fix it so that I can run Tomcat on this machine. Could the current network setup interfere? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . Ivon, I don't think this is the reason for the problem but why are you moving the servlet.jar file. All the instructions I have ready so far (yes I am still a newbie) say to simply set the classpath to point to where the servlet.jar file is, on a windows machine(and I think unix/linux as well) it should be in %CATALINA_HOME%\common\lib\servlet.jar. Have you set the environment variables (JAVA_HOME, CATLINA_HOME, CLASSPATH)? Just though I would add my 2 pennies worth. Regards Lee - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help Running Tomcat
The servlet.jar file needs to exist in both Tomcat and the JDK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help Running Tomcat
It should just be in TOMCAT_HOME/common/lib, and nowhere else, IMHO. - MOD --- Ivon Gonzalez [EMAIL PROTECTED] wrote: The servlet.jar file needs to exist in both Tomcat and the JDK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help Running Tomcat
On Thu, 12 Jun 2003 02:40, Ivon Gonzalez wrote: The servlet.jar file needs to exist in both Tomcat and the JDK No it doesn't, I have never copied or moved the servlet.jar to within the JDK, as long as you build your classpath properly when compiling there is no need what so ever to do that. Regards, -- Jason Bainbridge http://jblinux.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help Running Tomcat
Ivon Gonzalez wrote: The servlet.jar file needs to exist in both Tomcat and the JDK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] That is why you setup your CLASSPATH environment. For example mine is(Excuse the line wrapping): C:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet.jar;C:\Program Files\Apache Group\Tomcat 4.1\common\lib;c:\JMF\lib\jmf.jar;. By having this setup both tomcat and your Java development enviroment have access to the servlet (and whatever other item you have it in, such as Java Media Framework, jmf.jar) classes. Regards Lee - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help Running Tomcat
Thanks everyone for your responses!! I have received a few messages re: the servlet.jar file. I have tried removing it. From the documentation I have reviewed, even on apache's site, it suggests moving the file. I am running Tomcat 3.2.3. I have my JAVA_HOME and TOMCAT_HOME environment variables set, along with my CLASSPATH (which isn't necessary because the .bat files point it to the proper location. Any other suggestions? I appreciate the help! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help Running Tomcat
Don't move anything. NoClassDefFoundError is thrown when you mess with servlet.jar. It means that the servlet.jar file that Tomcat needs is NOT the servlet.jar file it is finding. You probably have more than one on that computer, and the one Tomcat needs is not being found first. Don't move anything. Unpack Tomcat, set your environment variables, and be done. If you need to compile something, put servlet.jar on your PATH, but do it so that the addition to PATH is the location of the servlet.jar file installed with Tomcat. Don't move the file, there's no need to do so. Also, it would help us if you would tell us what version of Tomcat, and what operating system. John On Wed, 11 Jun 2003 13:40:43 -0500, Ivon Gonzalez [EMAIL PROTECTED] wrote: The servlet.jar file needs to exist in both Tomcat and the JDK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help Running Tomcat
I didn't move the servlet.jar file, I copied it. But I did what you have suggested. I have removed all versions of Tomcat. I have installed Tomcat3.2.3 on a Windows XP machine and set the Environmet variables. I have even attempted to set PATH to the servlet.jar file. The error isn't with the servlet.jar file. It is: Exception in thread main java.lang.NoClassDefFoundError: org/apache/tomcat/logging/Logger Does this make a big difference? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help Running Tomcat
On Thu, 12 Jun 2003 03:15, Ivon Gonzalez wrote: Exception in thread main java.lang.NoClassDefFoundError: org/apache/tomcat/logging/Logger That means you have classpath problems with a conflict of that class, I haven't got Tomcat 3 or ever used it so I can't tell you which JAR in particular. Just make sure you have cleared our your CLASSPATH and you don't have any old JAR's hanging around or any newer ones even... -- Jason Bainbridge http://jblinux.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help Running Tomcat
Well, the error message is still the same. NoClassDefFoundError is not the same as ClassNotFound. As I understand it, NoClassDefFound means that the class Tomcat is finding is not the class it should find. Typically this means that there is more than one version of Tomcat or more than one version of a JAR file on a machine, and the incorrect version is being found instead of the correct version. Other than that, I will have to defer to the gurus...you've mentioned that you have removed all versions of Tomcat, so I don't see any reason why the 3.2.3 you are now trying to install would be confused, but someone more experienced than I might have a suggestion. John On Wed, 11 Jun 2003 14:15:52 -0500, Ivon Gonzalez [EMAIL PROTECTED] wrote: I didn't move the servlet.jar file, I copied it. But I did what you have suggested. I have removed all versions of Tomcat. I have installed Tomcat3.2.3 on a Windows XP machine and set the Environmet variables. I have even attempted to set PATH to the servlet.jar file. The error isn't with the servlet.jar file. It is: Exception in thread main java.lang.NoClassDefFoundError: org/apache/tomcat/logging/Logger Does this make a big difference? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help Running Tomcat
Can you find a class named org.apache.tomcat.logging.Logger in any of the JARS in TOMCAT_HOME/common/lib? Maybe you're missing a JAR that you have to add. Also, if I search for that class with Google it turns this up: http://www.caucho.com/support/resin-interest/0009/0126.html The guy who wrote it had the same kind of problem, and he had Resin and Tomcat installed. Do you have any other apps installed (e.g., J2EE reference implementations, etc.) that might be hanging around and causing this? Could be worth a check. - MOD --- John Turner [EMAIL PROTECTED] wrote: Well, the error message is still the same. NoClassDefFoundError is not the same as ClassNotFound. As I understand it, NoClassDefFound means that the class Tomcat is finding is not the class it should find. Typically this means that there is more than one version of Tomcat or more than one version of a JAR file on a machine, and the incorrect version is being found instead of the correct version. Other than that, I will have to defer to the gurus...you've mentioned that you have removed all versions of Tomcat, so I don't see any reason why the 3.2.3 you are now trying to install would be confused, but someone more experienced than I might have a suggestion. John On Wed, 11 Jun 2003 14:15:52 -0500, Ivon Gonzalez [EMAIL PROTECTED] wrote: I didn't move the servlet.jar file, I copied it. But I did what you have suggested. I have removed all versions of Tomcat. I have installed Tomcat3.2.3 on a Windows XP machine and set the Environmet variables. I have even attempted to set PATH to the servlet.jar file. The error isn't with the servlet.jar file. It is: Exception in thread main java.lang.NoClassDefFoundError: org/apache/tomcat/logging/Logger Does this make a big difference? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help Running Tomcat
I did find the Logger.java file I do not have any local servers running which may conflict with Tomcat I have the basic Tomcat and JDK setup. I have ONE version of the servlet.jar file in Tomcat. I am using the same Tomcat setup that I used on other machines - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help Running Tomcat
I have solved my problem. JDK had some jar files that were conflicting with running Tomcat. I did, however, (FOR THE RECORD) require the servlet.jar file to be placed in the JDK1.3.1\jre\lib\ext folder. Perhaps the newer versions do not require this but I Tomcat 3.2.3 does. THANK YOU! to all of those who tried all this time to give me advice. You certainly helped me find the right path to my solution. YOU ALL ROCK!!! Ivon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help Running Tomcat
On Thu, 12 Jun 2003 03:55, Ivon Gonzalez wrote: I did find the Logger.java file I do not have any local servers running which may conflict with Tomcat I have the basic Tomcat and JDK setup. I have ONE version of the servlet.jar file in Tomcat. I am using the same Tomcat setup that I used on other machines Maybe try a reboot? Windows can be a bit funny when it comes to changing environment variables... Have you got both TOMCAT_HOME and CATALINA_HOME pointing to your Tomcat install directory? Is your CLASSPATH empty or non existent? It's a bit hard to remotely debug this sort of problem, you just have to experiment and find what is causing the conflict with your classes. :) What JDK are you using by the way? That could be the culprit... Regards, -- Jason Bainbridge http://jblinux.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with tomcat/j2se install on linux RH7.3
Try going to the command line and typing: service tomcat4 start Mark - Original Message - From: Chris Hale [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 8:34 PM Subject: Help with tomcat/j2se install on linux RH7.3 Looking for assistance getting Tomcat and J2SE installed on my Linux = RH7.3 system. I think I got J2SE 1.4.1_02 installed, as well as Tomcat = 4.1.18. But when I open my browser for the system and look at port 8080, = nothing. I also don't see anything running as far as a process. As you can = probably tell, I'm quite the newbie at this. I need to have this installed so = our web folks can install some .jsp pages (see http://www.peaknetworks.com). We're moving to a new server and need to support their jsp development. If you can provide me some guidance as to where to start, look, what to = do, etc, I'd appreciate it. I am running Apache 1.3.27. If you need any other info, let me know. Thanks, Chris -- Chris Hale Peak Networks 16 Cassie Lane Merrimack, NH 03054 http://www.peaknetworks.com 800-PEAK-987 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help with tomcat/j2se install on linux RH7.3
I get a error message stating the service isn't found - no man entry for service either. How do I add the tomcat4 to a possible service? Chris -- Chris Hale Peak Networks 16 Cassie Lane Merrimack, NH 03054 http://www.peaknetworks.com 800-PEAK-987 [EMAIL PROTECTED] -Original Message- From: Mark Pease [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 8:43 AM To: Tomcat Users List Subject: Re: Help with tomcat/j2se install on linux RH7.3 Try going to the command line and typing: service tomcat4 start Mark - Original Message - From: Chris Hale [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 8:34 PM Subject: Help with tomcat/j2se install on linux RH7.3 Looking for assistance getting Tomcat and J2SE installed on my Linux = RH7.3 system. I think I got J2SE 1.4.1_02 installed, as well as Tomcat = 4.1.18. But when I open my browser for the system and look at port 8080, = nothing. I also don't see anything running as far as a process. As you can = probably tell, I'm quite the newbie at this. I need to have this installed so = our web folks can install some .jsp pages (see http://www.peaknetworks.com). We're moving to a new server and need to support their jsp development. If you can provide me some guidance as to where to start, look, what to = do, etc, I'd appreciate it. I am running Apache 1.3.27. If you need any other info, let me know. Thanks, Chris -- Chris Hale Peak Networks 16 Cassie Lane Merrimack, NH 03054 http://www.peaknetworks.com 800-PEAK-987 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with tomcat/j2se install on linux RH7.3
When I installed Tomcat, it installed the service for me, I think (I'm no expert on Linux). Were you logged in using an account that had the administrative rights to install a service when you installed Tomcat? If not, maybe try reinstalling it, but under the root account or an administrator account. There is probably a way to add the service manually, but since you are starting from scratch, maybe the reinstall would be easier for you... Mark - Original Message - From: Chris Hale [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 9:51 AM Subject: RE: Help with tomcat/j2se install on linux RH7.3 I get a error message stating the service isn't found - no man entry for service either. How do I add the tomcat4 to a possible service? Chris -- Chris Hale Peak Networks 16 Cassie Lane Merrimack, NH 03054 http://www.peaknetworks.com 800-PEAK-987 [EMAIL PROTECTED] -Original Message- From: Mark Pease [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 8:43 AM To: Tomcat Users List Subject: Re: Help with tomcat/j2se install on linux RH7.3 Try going to the command line and typing: service tomcat4 start Mark - Original Message - From: Chris Hale [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 8:34 PM Subject: Help with tomcat/j2se install on linux RH7.3 Looking for assistance getting Tomcat and J2SE installed on my Linux = RH7.3 system. I think I got J2SE 1.4.1_02 installed, as well as Tomcat = 4.1.18. But when I open my browser for the system and look at port 8080, = nothing. I also don't see anything running as far as a process. As you can = probably tell, I'm quite the newbie at this. I need to have this installed so = our web folks can install some .jsp pages (see http://www.peaknetworks.com). We're moving to a new server and need to support their jsp development. If you can provide me some guidance as to where to start, look, what to = do, etc, I'd appreciate it. I am running Apache 1.3.27. If you need any other info, let me know. Thanks, Chris -- Chris Hale Peak Networks 16 Cassie Lane Merrimack, NH 03054 http://www.peaknetworks.com 800-PEAK-987 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help With Tomcat Database Connection Configuration
Hi, Your server.xml looks fine. If you specify the resource in server.xml there is no need to put it in web.xml (in fact this will more than likely cause problems). You should reference the datasource in your app as follows: ctx = new InitialContext(); Context envCtx = (Context) ctx.lookup(java:/comp/env/); DataSource ds = (DataSource) envCtx.lookup(/juddidb); The class.forName() is used when you are not using DBCP but directly connecting. Make sure that the Oracle classes12.zip is renamed to classes12.jar and in CATALINA_HOME/common/lib HTH Eric -Original Message- From: Ravi Rangaswamy [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 16. Jänner 2003 21:38 To: TomcatUserList Subject: Help With Tomcat Database Connection Configuration Hi, I am running a UDDI registry (CATALINA_HOME/web-apps/juddi) from inside Tomcat. Now I want to run the registry with Oracle. So, I created a JDBC datasource in Tomcat. To do this, I followed these steps. 1. I added the segment in CATALINA_HOME/conf/server.xml inside the context element. !-- Orcale JDBC datasource for jUDDI -- Resource name=jdbc/juddidb auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/juddidb parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@localhost:1521:orcl/value /parameter parameter nameusername/name valuejuddiUser/value /parameter parameter namepassword/name valuejuddiUser/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value5000/value /parameter /ResourceParams !-- End of Orcale JDBC datasource for jUDDI -- 2. I added this segment in CATALINA_HOME/web-apps/juddi/WEB_INF/web.xml inside the web-app element. !-- Orcale JDBC datasource for jUDDI -- resource-ref descriptionOracle Datasource/description res-ref-namejdbc/juddidb/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref When I start Tomcat and invoke a action on jUDDI, I get the exception Cannot load JDBC driver class 'null' java.lang.NullPointerException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:523) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:312) So, to further debug, I added the segment from Step 2 to CATALINA_HOME/web-apps/examples/WEB_INF/web.xml and created a jsp (shown at the end of the mail) to see if it was picking up the configuration parameters. When this jsp is executed, I get the following displayed with the parameters as specified in server.xml. DriverClassName: oracle.jdbc.driver.OracleDriver Url: jdbc:oracle:thin:@localhost:1521:orcl Username: juddiUser Password: juddiUser MaxActive: 20 MaxWait: 5000 NumActive: 3 numIdle: 0 If I place the same jsp under CATALINA_HOME/web-apps/juddi/jsp/. and run the jsp, I get nulls for each param DriverClassName: null Url: null Username: null Password: null MaxActive: 8 MaxWait: -1 NumActive: 0 numIdle: 0 Can anyone tell me what I am doing wrong and why these two applications (examples and the uddi registry) behave differently. Thanks, Ravi. Test jsp %@ page language=java import=java.sql.*,javax.naming.InitialContext,javax.naming.Context,javax.sql.DataSource,org.apache.commons.dbcp.BasicDataSource % body bgcolor=white font color=red % Connection conn = null; try { InitialContext initialContext = new InitialContext(); Context context = (Context)initialContext.lookup(java:comp/env); DataSource ds = (DataSource)context.lookup(jdbc/juddidb); out.print( DriverClassName: + ((BasicDataSource) ds).getDriverClassName()); out.print( Url: + ((BasicDataSource) ds).getUrl()); out.print( Username: + ((BasicDataSource) ds).getUsername()); out.print( Password: + ((BasicDataSource) ds).getPassword()); out.print( MaxActive: + ((BasicDataSource) ds).getMaxActive()); out.print( MaxWait: + ((BasicDataSource) ds).getMaxWait()); out.print( NumActive: + ((BasicDataSource) ds).getNumActive()); out.print( numIdle: + ((BasicDataSource) ds).getNumIdle()); } catch (Exception e) { e.printStackTrace(); } % - Do you Yahoo!? Yahoo! Mail
RE: HELP, PLEASE! Tomcat creates too many threads!
] at java.lang.Thread.sleep(Native Method) at org.apache.catalina.session.StandardManager.threadSleep(Unknown Source) at org.apache.catalina.session.StandardManager.run(Unknown Source) at java.lang.Thread.run(Thread.java:536) StandardManager[/iepmms] daemon prio=1 tid=0x0x8386b80 nid=0x4163 waiting on condition [4dd6c000..4dd6c840] at java.lang.Thread.sleep(Native Method) at org.apache.catalina.session.StandardManager.threadSleep(Unknown Source) at org.apache.catalina.session.StandardManager.run(Unknown Source) at java.lang.Thread.run(Thread.java:536) StandardManager[/statsmms] daemon prio=1 tid=0x0x82fd348 nid=0x4162 waiting on condition [4da1b000..4da1b840] at java.lang.Thread.sleep(Native Method) at org.apache.catalina.session.StandardManager.threadSleep(Unknown Source) at org.apache.catalina.session.StandardManager.run(Unknown Source) at java.lang.Thread.run(Thread.java:536) StandardManager[/MMS] daemon prio=1 tid=0x0x82c08a8 nid=0x4161 waiting on condition [4d599000..4d599840] at java.lang.Thread.sleep(Native Method) at org.apache.catalina.session.StandardManager.threadSleep(Unknown Source) at org.apache.catalina.session.StandardManager.run(Unknown Source) at java.lang.Thread.run(Thread.java:536) StandardManager[/mmbox] daemon prio=1 tid=0x0x810c5b0 nid=0x4160 waiting on condition [4d4ac000..4d4ac840] at java.lang.Thread.sleep(Native Method) at org.apache.catalina.session.StandardManager.threadSleep(Unknown Source) at org.apache.catalina.session.StandardManager.run(Unknown Source) at java.lang.Thread.run(Thread.java:536) StandardManager[/admin] daemon prio=1 tid=0x0x8730948 nid=0x415f waiting on condition [4d151000..4d151840] at java.lang.Thread.sleep(Native Method) at org.apache.catalina.session.StandardManager.threadSleep(Unknown Source) at org.apache.catalina.session.StandardManager.run(Unknown Source) at java.lang.Thread.run(Thread.java:536) Signal Dispatcher daemon prio=1 tid=0x0x808d3d0 nid=0x415c waiting on condition [0..0] Finalizer daemon prio=1 tid=0x0x80867d8 nid=0x4159 in Object.wait() [4c3f2000..4c3f2840] at java.lang.Object.wait(Native Method) - waiting on 0x446e3cb0 (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111) - locked 0x446e3cb0 (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159) Reference Handler daemon prio=1 tid=0x0x8085b90 nid=0x4158 in Object.wait() [4c371000..4c371840] at java.lang.Object.wait(Native Method) - waiting on 0x446e3d18 (a java.lang.ref.Reference$Lock) at java.lang.Object.wait(Object.java:426) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:113) - locked 0x446e3d18 (a java.lang.ref.Reference$Lock) main prio=1 tid=0x0x8051e68 nid=0x4155 runnable [bfffc000..bfffd580] at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353) - locked 0x44a91330 (a java.net.PlainSocketImpl) at java.net.ServerSocket.implAccept(ServerSocket.java:439) at java.net.ServerSocket.accept(ServerSocket.java:410) at org.apache.catalina.core.StandardServer.await(Unknown Source) at org.apache.catalina.startup.Catalina.start(Unknown Source) at org.apache.catalina.startup.Catalina.execute(Unknown Source) at org.apache.catalina.startup.Catalina.process(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Unknown Source) VM Thread prio=1 tid=0x0x8082950 nid=0x4157 runnable VM Periodic Task Thread prio=1 tid=0x0x808bf18 nid=0x415a waiting on condition Suspend Checker Thread prio=1 tid=0x0x808c968 nid=0x415b runnable On Thu, 9 Jan 2003, Joao Filipe Placido wrote: Date: Thu, 9 Jan 2003 14:58:02 - From: Joao Filipe Placido [EMAIL PROTECTED] To: 'Craig R. McClanahan' [EMAIL PROTECTED], 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: HELP, PLEASE! Tomcat creates too many threads! Hi, When using SingleThreadModel in the servlets, old tomcat threads never die, and new threads are created for each request, so I have to restart tomcat once in a while. I'm
RE: help conecting Tomcat with a As/400
As I said in response to your earlier e-mail, you really should be asking these questions in tomcat-user. Personally, I still use my own JDBC connection pool. Unlike DBCP, I know every line of my connection pool and, more importantly, I know that it works. There is step-by-step documentation on how to setup a datasource on the Tomcat website: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-how to.html --- Noel -Original Message- From: Gustavo Rojas [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 13:16 To: Noel J. Bergman Subject: RE: help conecting Tomcat with a As/400 I have the JT400.jar in my TOMCAT_HOME/common/lib, i think that this is the JDBC driver that i need. I want to make the next stuff, I want to connect a JSP web page to my database that is in the AS/400, and i have two question: 1) how can i define the datasource, in the tomcat, 2) where can i find any examples about JSP web pages that link with a AS/400 database. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help with Tomcat 4.1 installation please?
Looks like you have something else on that port, probably Tomcat itself. Perhaps my Windows XP HOWTO can help (you can ignore the sections on Installing Apache and Installing JK) and just use the section on installing Tomcat. http://www.johnturner.com/howto John -Original Message- From: Mark [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 1:48 AM To: [EMAIL PROTECTED] Subject: Help with Tomcat 4.1 installation please? Hi, I am attempting to install and run Tomcat 4.1 on my Windows XP system. I have followed the instructions as far as: 1. Downloading and installing J2SDK 1.4.1_01 2. Setting the CATALINA_HOME variable to c:\Program Files\Apache Group\Tomcat 4.1 3. Setting the JAVA_HOME variable to c:\j2sdk1.4.1_01 4. Including %JAVA_HOME%\bin in the PATH variable. 5. Restarting the computer. Problem: When I click on the Start Tomcat icon, a window appears, a listing appears briefly in the window and then the window quickly disappears. At the command prompt, I get the following listing for the startup command and the shutdown commands: C:\Program Files\Apache Group\Tomcat 4.1\binstartup Using CATALINA_BASE: c:\Program Files\Apache Group\Tomcat 4.1 Using CATALINA_HOME: c:\Program Files\Apache Group\Tomcat 4.1 Using CATALINA_TMPDIR: c:\Program Files\Apache Group\Tomcat 4.1\temp Using JAVA_HOME: c:\j2sdk1.4.1_01 C:\Program Files\Apache Group\Tomcat 4.1\binshutdown Using CATALINA_BASE: c:\Program Files\Apache Group\Tomcat 4.1 Using CATALINA_HOME: c:\Program Files\Apache Group\Tomcat 4.1 Using CATALINA_TMPDIR: c:\Program Files\Apache Group\Tomcat 4.1\temp Using JAVA_HOME: c:\j2sdk1.4.1_01 Catalina.stop: java.net.ConnectException: Connection refused: connect java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:426) at java.net.Socket.connect(Socket.java:376) at java.net.Socket.init(Socket.java:291) at java.net.Socket.init(Socket.java:119) at org.apache.catalina.startup.Catalina.stop(Catalina.java:581) at org.apache.catalina.startup.Catalina.execute(Catalina.java:402) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) C:\Program Files\Apache Group\Tomcat 4.1\bin I'm not sure what's really supposed to happen at this point, but something doesn't seem right. Any help would be greatly appreciated. Thanks in advance. Mark Steere [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: HELP, PLEASE! Tomcat creates too many threads!
Hi, When using SingleThreadModel in the servlets, old tomcat threads never die, and new threads are created for each request, so I have to restart tomcat once in a while. I'm using linux and JDK 1.4.1 with Tomcat 4.1.12. Anyone knows how to make old threads get killed? Thank you. Joao Filipe Placido -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: terça-feira, 7 de Janeiro de 2003 20:28 To: Tomcat Users List Subject: RE: HELP, PLEASE! Tomcat creates too many threads! On Tue, 7 Jan 2003, Denise Mangano wrote: Date: Tue, 7 Jan 2003 09:31:01 -0500 From: Denise Mangano [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: HELP, PLEASE! Tomcat creates too many threads! I am curious about the same thing. My app isn't fully up and operational yet so I do not know for sure if I suffer from the same problem, but I have noticed that while doing some testing new threads are getting started, and it usually takes a restart to get rid of them. I've seen this question posted a few times, but haven't noticed any 'resolution' or possible solutions. Can anyone recommend things to check for, settings to make, or perhaps any documentation on the issue? Is it possible that this could be a JSDK 1.4 issue? It's the only common link I've noticed between my set up and other posters with this problem. Tomcat creates threads as follows: * One thread per Host element if you turn on autoDeploy -- should not have this on a production system. * One thread per Context element if you use reloading -- should not have this on a production system. * One thread per Context element for session expiration -- required. * One thread per processor in your Connector elements. At startup it will create the number of threads you configure for minProcessors. The number will increase (up to the configured maxProcessors value) but never decrease. For most people, tuning maxProcessors is the easiest way to control the number of threads Tomcat creates, since that is where most of them come from. Be aware, though, that reducing this number also limits the number of simultaneous requests your app will handle, since each simultaneous request requires a processor thread. If you're running behind Apache (via JK or JK2), you probably also want to comment out the stand-alone connector on port 8080. Likewise, if you're running Tomcat standalone, you don't need the JK connector on 8009. Thanks :) Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Help with Tomcat 4.1 installation please?
Thank you Peng. You were correct. Tomcat was already running, having started automatically upon bootup. Now I will be unsubscribing from the list. Thanks again. Mark Steere [EMAIL PROTECTED] Are you installing tomcat from a exe ? If so you may have already started tomcat from the service, in this case it is already started, you can test by going to port 8080 on your own machine using the web browser. If you prefer to run from a batch file, either stop the current service and disable it from running. It's also possible you might be running something else on that port. Mark wrote: Hi, I am attempting to install and run Tomcat 4.1 on my Windows XP system. I have followed the instructions as far as: 1. Downloading and installing J2SDK 1.4.1_01 2. Setting the CATALINA_HOME variable to c:\Program Files\Apache Group\Tomcat 4.1 3. Setting the JAVA_HOME variable to c:\j2sdk1.4.1_01 4. Including %JAVA_HOME%\bin in the PATH variable. 5. Restarting the computer. Problem: When I click on the Start Tomcat icon, a window appears, a listing appears briefly in the window and then the window quickly disappears. At the command prompt, I get the following listing for the startup command and the shutdown commands: C:\Program Files\Apache Group\Tomcat 4.1\binstartup Using CATALINA_BASE: c:\Program Files\Apache Group\Tomcat 4.1 Using CATALINA_HOME: c:\Program Files\Apache Group\Tomcat 4.1 Using CATALINA_TMPDIR: c:\Program Files\Apache Group\Tomcat 4.1\temp Using JAVA_HOME: c:\j2sdk1.4.1_01 C:\Program Files\Apache Group\Tomcat 4.1\binshutdown Using CATALINA_BASE: c:\Program Files\Apache Group\Tomcat 4.1 Using CATALINA_HOME: c:\Program Files\Apache Group\Tomcat 4.1 Using CATALINA_TMPDIR: c:\Program Files\Apache Group\Tomcat 4.1\temp Using JAVA_HOME: c:\j2sdk1.4.1_01 Catalina.stop: java.net.ConnectException: Connection refused: connect java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:426) at java.net.Socket.connect(Socket.java:376) at java.net.Socket.init(Socket.java:291) at java.net.Socket.init(Socket.java:119) at org.apache.catalina.startup.Catalina.stop(Catalina.java:581) at org.apache.catalina.startup.Catalina.execute(Catalina.java:402) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) C:\Program Files\Apache Group\Tomcat 4.1\bin I'm not sure what's really supposed to happen at this point, but something doesn't seem right. Any help would be greatly appreciated. Thanks in advance. Mark Steere [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: HELP, PLEASE! Tomcat creates too many threads!
On Thu, 9 Jan 2003, Joao Filipe Placido wrote: Date: Thu, 9 Jan 2003 14:58:02 - From: Joao Filipe Placido [EMAIL PROTECTED] To: 'Craig R. McClanahan' [EMAIL PROTECTED], 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: HELP, PLEASE! Tomcat creates too many threads! Hi, When using SingleThreadModel in the servlets, old tomcat threads never die, and new threads are created for each request, so I have to restart tomcat once in a while. I'm using linux and JDK 1.4.1 with Tomcat 4.1.12. Anyone knows how to make old threads get killed? Using SingleThreadModel (by itself) has no impact on how many threads get created -- it only affects how many instances of your servlet get created. (Of course, I think using STM is a bad idea anyway, because it only gives you a false sense of security about thread safety, but that's a different issue.) The only reasonable way to debug this kind of situation is to trigger a thread dump after you've tried to shut Tomcat down, to see what the remaining threads are actually doing. If you're running Tomcat directly from a console window on Unix, for example, you should be able to press CTRL+\ (backslash) to trigger the dump. Thank you. Joao Filipe Placido Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Help with Tomcat 4.1 installation please?
Are you installing tomcat from a exe ? If so you may have already started tomcat from the service, in this case it is already started, you can test by going to port 8080 on your own machine using the web browser. If you prefer to run from a batch file, either stop the current service and disable it from running. It's also possible you might be running something else on that port. Mark wrote: Hi, I am attempting to install and run Tomcat 4.1 on my Windows XP system. I have followed the instructions as far as: 1. Downloading and installing J2SDK 1.4.1_01 2. Setting the CATALINA_HOME variable to c:\Program Files\Apache Group\Tomcat 4.1 3. Setting the JAVA_HOME variable to c:\j2sdk1.4.1_01 4. Including %JAVA_HOME%\bin in the PATH variable. 5. Restarting the computer. Problem: When I click on the Start Tomcat icon, a window appears, a listing appears briefly in the window and then the window quickly disappears. At the command prompt, I get the following listing for the startup command and the shutdown commands: C:\Program Files\Apache Group\Tomcat 4.1\binstartup Using CATALINA_BASE: c:\Program Files\Apache Group\Tomcat 4.1 Using CATALINA_HOME: c:\Program Files\Apache Group\Tomcat 4.1 Using CATALINA_TMPDIR: c:\Program Files\Apache Group\Tomcat 4.1\temp Using JAVA_HOME: c:\j2sdk1.4.1_01 C:\Program Files\Apache Group\Tomcat 4.1\binshutdown Using CATALINA_BASE: c:\Program Files\Apache Group\Tomcat 4.1 Using CATALINA_HOME: c:\Program Files\Apache Group\Tomcat 4.1 Using CATALINA_TMPDIR: c:\Program Files\Apache Group\Tomcat 4.1\temp Using JAVA_HOME: c:\j2sdk1.4.1_01 Catalina.stop: java.net.ConnectException: Connection refused: connect java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:426) at java.net.Socket.connect(Socket.java:376) at java.net.Socket.init(Socket.java:291) at java.net.Socket.init(Socket.java:119) at org.apache.catalina.startup.Catalina.stop(Catalina.java:581) at org.apache.catalina.startup.Catalina.execute(Catalina.java:402) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) C:\Program Files\Apache Group\Tomcat 4.1\bin I'm not sure what's really supposed to happen at this point, but something doesn't seem right. Any help would be greatly appreciated. Thanks in advance. Mark Steere [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help with Tomcat on HP-UX 10.20
Thanks again for the suggestions. I tried both and in case it is useful to others this is what happened: 1) 3.3.2 nightly also didn't work (although with a different error) 2) After a bit of playing around (root does not seem to find .tomcatrc) I managed to get 3.3.1 up and running with the TOMCAT_OPTS setting. I have established a connection and will start testing my application. Thanks once again for all the help. John -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED]] Sent: 04 January 2003 08:04 To: [EMAIL PROTECTED] Subject: Re: Help with Tomcat on HP-UX 10.20 This looks like a bug in the 3.3.1 release. There should be a 3.3.2 release out in the near future. In the meantime there are two options for you at this point: 1) Use the 3.3.2-dev nightly release (not as bad as it sounds, since the 3.3 branch is mostly bug-fixes these days). 2) Set the '-Dtomcat.install=/u01/jc_keep/jakarta-tomcat-3.3.1' in the TOMCAT_OPTS environment parameter (e.g. by setting it in $HOME/.tomcatrc). The problem is that Tomcat's auto-detect doesn't work properly for certain (broken) 1.1.x JVMs. This has shown up for Mac/Classic systems (as well as others). For more information see: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11177 John Clark [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Thanks for your help. As you probably realised, the JDK version from HP is actually 1.1.8.07. I have now downloaded Tomcat 3.3.1. As root user, I do not get any errors when I run startup.sh (but I cannot connect), but get the following error when I run shutdown.sh: # ./shutdown.sh Using classpath: ./../lib/tomcat.jar Using JAVA_HOME: /opt/java Using TOMCAT_HOME: /u01/jc_keep/jakarta-tomcat-3.3.1 Jdk11Compat: Installing jar protocol handler Guessed home=/u01/jc_keep/jakarta-tomcat-3.3.1/lib Exception: java.lang.ClassNotFoundException: org.apache.tomcat.startup.StopTomca t java.lang.ClassNotFoundException: org.apache.tomcat.startup.StopTomcat at org.apache.tomcat.util.compat.SimpleClassLoader.loadClass(SimpleClass Loader.java:274) at java.lang.ClassLoader.loadClass(ClassLoader.java) at org.apache.tomcat.startup.Main.execute(Main.java:300) at org.apache.tomcat.startup.Main.main(Main.java:140) Is this a config problem or version problem? Once again any help will be much appreciated. John Clark -Original Message- From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED]] Sent: 03 January 2003 16:24 To: Tomcat Users List Subject: Re: Help with Tomcat on HP-UX 10.20 John Clark wrote: I have spent some time looking at the FAQs, archives, etc. but cannot find the information I need, can anyone help. I have an intranet application (using JSP) that currently runs using Oracle 9i (Apache built in) on Linux and using Oracle 8 and Tomcat on NT/2000. I now want to use it with Oracle 8 on HP-UX 10.20 and need answers to the following: 1. Can I just use Tomcat, or do I also need Apache? Yes, you can. 2. I have downloaded a version of JDK (1.18.07) from the HP website, will this work? You need at least JDK 1.2 to run Tomcat 4.1.18. Tomcat 3.2.2 3.3 will work with your current JDK. -- Jeanfrancois Any help much appreciated. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: HELP, PLEASE! Tomcat creates too many threads!
I am curious about the same thing. My app isn't fully up and operational yet so I do not know for sure if I suffer from the same problem, but I have noticed that while doing some testing new threads are getting started, and it usually takes a restart to get rid of them. I've seen this question posted a few times, but haven't noticed any 'resolution' or possible solutions. Can anyone recommend things to check for, settings to make, or perhaps any documentation on the issue? Is it possible that this could be a JSDK 1.4 issue? It's the only common link I've noticed between my set up and other posters with this problem. Thanks :) Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Wagner José Queiroz de Santana [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 6:47 AM To: [EMAIL PROTECTED] Subject: HELP, PLEASE! Tomcat creates too many threads! Hello all, Im running Apache and Tomcat in a Linux machine, after a couple days and several accesses to my applications, Tomcat creates several threads/processes that stay sleeping, as you can see at the end of this e-mail. Im using Tomcat 4.0.4, Apache 1.3.26 with mod_webapp, and Java 1.4.0_01. If I don't restart my tomcat, it will exceed the maximum number of processes the user can execute and it will block, turning my applications offline. Is there any solution to this problem? How is it possible to avoid the creation of so many processes? I really appreciate any help you can give me. These lines are only a few ones I get when I run the ps -elf command: 040 S root 13849 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 13850 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 19616 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 19619 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 19628 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 26732 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 26754 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 31033 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 4677 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 4687 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 5470 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:01 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 6154 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 6161 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 6165 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat -- Wagner Santana Analista de Sistemas - TIM Av. Conde da Boa Vista, 800 081 3216-2713081 99136661 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: HELP, PLEASE! Tomcat creates too many threads!
Can you try with IBM JVM, as it works well on linux in cae of performance as well as memory usage -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Tue 1/7/2003 9:31 AM To: 'Tomcat Users List' Cc: Subject:RE: HELP, PLEASE! Tomcat creates too many threads! I am curious about the same thing. My app isn't fully up and operational yet so I do not know for sure if I suffer from the same problem, but I have noticed that while doing some testing new threads are getting started, and it usually takes a restart to get rid of them. I've seen this question posted a few times, but haven't noticed any 'resolution' or possible solutions. Can anyone recommend things to check for, settings to make, or perhaps any documentation on the issue? Is it possible that this could be a JSDK 1.4 issue? It's the only common link I've noticed between my set up and other posters with this problem. Thanks :) Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Wagner José Queiroz de Santana [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 6:47 AM To: [EMAIL PROTECTED] Subject: HELP, PLEASE! Tomcat creates too many threads! Hello all, Im running Apache and Tomcat in a Linux machine, after a couple days and several accesses to my applications, Tomcat creates several threads/processes that stay sleeping, as you can see at the end of this e-mail. Im using Tomcat 4.0.4, Apache 1.3.26 with mod_webapp, and Java 1.4.0_01. If I don't restart my tomcat, it will exceed the maximum number of processes the user can execute and it will block, turning my applications offline. Is there any solution to this problem? How is it possible to avoid the creation of so many processes? I really appreciate any help you can give me. These lines are only a few ones I get when I run the ps -elf command: 040 S root 13849 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 13850 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 19616 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 19619 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 19628 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 26732 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 26754 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 31033 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 4677 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 4687 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 5470 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:01 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 6154 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 6161 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 6165 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat -- Wagner Santana Analista de Sistemas - TIM Av. Conde da Boa Vista, 800 081 3216-2713081 99136661 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: HELP, PLEASE! Tomcat creates too many threads!
You ought to look into the cause of this problem by running a combination of ps, top, etc commands and getting a thread dump by killing the threads. Generally it turns out that some application/servlet is the cause of runaway threads. It would be a good idea to look into the bug database/forums on the sun java site for JSDK1.4/Linux issues. I know JSDK1.3.x/Linux had a couple of issues with regards to sockets. RS Venkat Reddy Valluri To: Tomcat Users List venkatv@quinnfab [EMAIL PROTECTED] le.com cc: Subject: RE: HELP, PLEASE! Tomcat creates too many 01/07/03 08:31 AM threads! Please respond to Tomcat Users List Can you try with IBM JVM, as it works well on linux in cae of performance as well as memory usage -Original Message- From:Denise Mangano [mailto:[EMAIL PROTECTED]] Sent:Tue 1/7/2003 9:31 AM To: 'Tomcat Users List' Cc: Subject: RE: HELP, PLEASE! Tomcat creates too many threads! I am curious about the same thing. My app isn't fully up and operational yet so I do not know for sure if I suffer from the same problem, but I have noticed that while doing some testing new threads are getting started, and it usually takes a restart to get rid of them. I've seen this question posted a few times, but haven't noticed any 'resolution' or possible solutions. Can anyone recommend things to check for, settings to make, or perhaps any documentation on the issue? Is it possible that this could be a JSDK 1.4 issue? It's the only common link I've noticed between my set up and other posters with this problem. Thanks :) Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Wagner José Queiroz de Santana [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 6:47 AM To: [EMAIL PROTECTED] Subject: HELP, PLEASE! Tomcat creates too many threads! Hello all, Im running Apache and Tomcat in a Linux machine, after a couple days and several accesses to my applications, Tomcat creates several threads/processes that stay sleeping, as you can see at the end of this e-mail. Im using Tomcat 4.0.4, Apache 1.3.26 with mod_webapp, and Java 1.4.0_01. If I don't restart my tomcat, it will exceed the maximum number of processes the user can execute and it will block, turning my applications offline. Is there any solution to this problem? How is it possible to avoid the creation of so many processes? I really appreciate any help you can give me. These lines are only a few ones I get when I run the ps -elf command: 040 S root 13849 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 13850 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 19616 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 19619 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 19628 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 26732 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 26754 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 31033 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 4677 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java
RE: HELP, PLEASE! Tomcat creates too many threads!
Cool. This is part of what I was looking for in my post. Thanks Craig. You rule. -Troy -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 3:28 PM To: Tomcat Users List Subject: RE: HELP, PLEASE! Tomcat creates too many threads! On Tue, 7 Jan 2003, Denise Mangano wrote: Date: Tue, 7 Jan 2003 09:31:01 -0500 From: Denise Mangano [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: HELP, PLEASE! Tomcat creates too many threads! I am curious about the same thing. My app isn't fully up and operational yet so I do not know for sure if I suffer from the same problem, but I have noticed that while doing some testing new threads are getting started, and it usually takes a restart to get rid of them. I've seen this question posted a few times, but haven't noticed any 'resolution' or possible solutions. Can anyone recommend things to check for, settings to make, or perhaps any documentation on the issue? Is it possible that this could be a JSDK 1.4 issue? It's the only common link I've noticed between my set up and other posters with this problem. Tomcat creates threads as follows: * One thread per Host element if you turn on autoDeploy -- should not have this on a production system. * One thread per Context element if you use reloading -- should not have this on a production system. * One thread per Context element for session expiration -- required. * One thread per processor in your Connector elements. At startup it will create the number of threads you configure for minProcessors. The number will increase (up to the configured maxProcessors value) but never decrease. For most people, tuning maxProcessors is the easiest way to control the number of threads Tomcat creates, since that is where most of them come from. Be aware, though, that reducing this number also limits the number of simultaneous requests your app will handle, since each simultaneous request requires a processor thread. If you're running behind Apache (via JK or JK2), you probably also want to comment out the stand-alone connector on port 8080. Likewise, if you're running Tomcat standalone, you don't need the JK connector on 8009. Thanks :) Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: HELP, PLEASE! Tomcat creates too many threads!
Fortunately, he's one of the benevolent kind. LOL John -Original Message- From: Troy J. Kelley [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 3:54 PM To: 'Tomcat Users List' Subject: RE: HELP, PLEASE! Tomcat creates too many threads! Cool. This is part of what I was looking for in my post. Thanks Craig. You rule. -Troy -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 3:28 PM To: Tomcat Users List Subject: RE: HELP, PLEASE! Tomcat creates too many threads! On Tue, 7 Jan 2003, Denise Mangano wrote: Date: Tue, 7 Jan 2003 09:31:01 -0500 From: Denise Mangano [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: HELP, PLEASE! Tomcat creates too many threads! I am curious about the same thing. My app isn't fully up and operational yet so I do not know for sure if I suffer from the same problem, but I have noticed that while doing some testing new threads are getting started, and it usually takes a restart to get rid of them. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: HELP, PLEASE! Tomcat creates too many threads!
On Tue, 7 Jan 2003, Denise Mangano wrote: Date: Tue, 7 Jan 2003 09:31:01 -0500 From: Denise Mangano [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: HELP, PLEASE! Tomcat creates too many threads! I am curious about the same thing. My app isn't fully up and operational yet so I do not know for sure if I suffer from the same problem, but I have noticed that while doing some testing new threads are getting started, and it usually takes a restart to get rid of them. I've seen this question posted a few times, but haven't noticed any 'resolution' or possible solutions. Can anyone recommend things to check for, settings to make, or perhaps any documentation on the issue? Is it possible that this could be a JSDK 1.4 issue? It's the only common link I've noticed between my set up and other posters with this problem. Tomcat creates threads as follows: * One thread per Host element if you turn on autoDeploy -- should not have this on a production system. * One thread per Context element if you use reloading -- should not have this on a production system. * One thread per Context element for session expiration -- required. * One thread per processor in your Connector elements. At startup it will create the number of threads you configure for minProcessors. The number will increase (up to the configured maxProcessors value) but never decrease. For most people, tuning maxProcessors is the easiest way to control the number of threads Tomcat creates, since that is where most of them come from. Be aware, though, that reducing this number also limits the number of simultaneous requests your app will handle, since each simultaneous request requires a processor thread. If you're running behind Apache (via JK or JK2), you probably also want to comment out the stand-alone connector on port 8080. Likewise, if you're running Tomcat standalone, you don't need the JK connector on 8009. Thanks :) Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Help with Tomcat on HP-UX 10.20
John Clark wrote: I have spent some time looking at the FAQs, archives, etc. but cannot find the information I need, can anyone help. I have an intranet application (using JSP) that currently runs using Oracle 9i (Apache built in) on Linux and using Oracle 8 and Tomcat on NT/2000. I now want to use it with Oracle 8 on HP-UX 10.20 and need answers to the following: 1. Can I just use Tomcat, or do I also need Apache? Yes, you can. 2. I have downloaded a version of JDK (1.18.07) from the HP website, will this work? You need at least JDK 1.2 to run Tomcat 4.1.18. Tomcat 3.2.2 3.3 will work with your current JDK. -- Jeanfrancois Any help much appreciated. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help with Tomcat on HP-UX 10.20
Thanks for your help. As you probably realised, the JDK version from HP is actually 1.1.8.07. I have now downloaded Tomcat 3.3.1. As root user, I do not get any errors when I run startup.sh (but I cannot connect), but get the following error when I run shutdown.sh: # ./shutdown.sh Using classpath: ./../lib/tomcat.jar Using JAVA_HOME: /opt/java Using TOMCAT_HOME: /u01/jc_keep/jakarta-tomcat-3.3.1 Jdk11Compat: Installing jar protocol handler Guessed home=/u01/jc_keep/jakarta-tomcat-3.3.1/lib Exception: java.lang.ClassNotFoundException: org.apache.tomcat.startup.StopTomca t java.lang.ClassNotFoundException: org.apache.tomcat.startup.StopTomcat at org.apache.tomcat.util.compat.SimpleClassLoader.loadClass(SimpleClass Loader.java:274) at java.lang.ClassLoader.loadClass(ClassLoader.java) at org.apache.tomcat.startup.Main.execute(Main.java:300) at org.apache.tomcat.startup.Main.main(Main.java:140) Is this a config problem or version problem? Once again any help will be much appreciated. John Clark -Original Message- From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED]] Sent: 03 January 2003 16:24 To: Tomcat Users List Subject: Re: Help with Tomcat on HP-UX 10.20 John Clark wrote: I have spent some time looking at the FAQs, archives, etc. but cannot find the information I need, can anyone help. I have an intranet application (using JSP) that currently runs using Oracle 9i (Apache built in) on Linux and using Oracle 8 and Tomcat on NT/2000. I now want to use it with Oracle 8 on HP-UX 10.20 and need answers to the following: 1. Can I just use Tomcat, or do I also need Apache? Yes, you can. 2. I have downloaded a version of JDK (1.18.07) from the HP website, will this work? You need at least JDK 1.2 to run Tomcat 4.1.18. Tomcat 3.2.2 3.3 will work with your current JDK. -- Jeanfrancois Any help much appreciated. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help with Tomcat on HP-UX 10.20 [RBS2003010300005612]
Ahoy there! This is an automated response, to let you know that we have received your query and will answer your email as soon as possible. We know you'd like to get back to playing our state-of-the-art online games. We'd therefore like to assure you that we are determined to keep our service at the level that you've come to expect from The River Belle Online Casino. Thank you for your patience and enjoy your day! Best wishes, Sebastian First Mate RIVER BELLE ONLINE CASINO RIVER BELLE CASINOS ONLINE RIVER BELLE ACES HIGH Enjoy Southern HospitalityFast Paced Casino Action www.riverbelle.com/a3099 www.aceshigh.com/a3181 24/7 toll-free support24/7 toll-free support USA:1 888 615 2383USA:1 877 566 0482 CANADA: 1 888 552 4196CANADA: 1 877 776 0549 UK: 0 800 783 4381UK: 0 800 169 8796 E-mail support: E-mail support [EMAIL PROTECTED][EMAIL PROTECTED] E.O.E. The River Belle Online Casino respects your online time and privacy. If you wish to be removed from our mailing list and not receive any promotional e-mails from us, please send an e-mail to [EMAIL PROTECTED] and type UNSUBSCRIBE in the subject bar. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Help with Tomcat on HP-UX 10.20
This looks like a bug in the 3.3.1 release. There should be a 3.3.2 release out in the near future. In the meantime there are two options for you at this point: 1) Use the 3.3.2-dev nightly release (not as bad as it sounds, since the 3.3 branch is mostly bug-fixes these days). 2) Set the '-Dtomcat.install=/u01/jc_keep/jakarta-tomcat-3.3.1' in the TOMCAT_OPTS environment parameter (e.g. by setting it in $HOME/.tomcatrc). The problem is that Tomcat's auto-detect doesn't work properly for certain (broken) 1.1.x JVMs. This has shown up for Mac/Classic systems (as well as others). For more information see: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11177 John Clark [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Thanks for your help. As you probably realised, the JDK version from HP is actually 1.1.8.07. I have now downloaded Tomcat 3.3.1. As root user, I do not get any errors when I run startup.sh (but I cannot connect), but get the following error when I run shutdown.sh: # ./shutdown.sh Using classpath: ./../lib/tomcat.jar Using JAVA_HOME: /opt/java Using TOMCAT_HOME: /u01/jc_keep/jakarta-tomcat-3.3.1 Jdk11Compat: Installing jar protocol handler Guessed home=/u01/jc_keep/jakarta-tomcat-3.3.1/lib Exception: java.lang.ClassNotFoundException: org.apache.tomcat.startup.StopTomca t java.lang.ClassNotFoundException: org.apache.tomcat.startup.StopTomcat at org.apache.tomcat.util.compat.SimpleClassLoader.loadClass(SimpleClass Loader.java:274) at java.lang.ClassLoader.loadClass(ClassLoader.java) at org.apache.tomcat.startup.Main.execute(Main.java:300) at org.apache.tomcat.startup.Main.main(Main.java:140) Is this a config problem or version problem? Once again any help will be much appreciated. John Clark -Original Message- From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED]] Sent: 03 January 2003 16:24 To: Tomcat Users List Subject: Re: Help with Tomcat on HP-UX 10.20 John Clark wrote: I have spent some time looking at the FAQs, archives, etc. but cannot find the information I need, can anyone help. I have an intranet application (using JSP) that currently runs using Oracle 9i (Apache built in) on Linux and using Oracle 8 and Tomcat on NT/2000. I now want to use it with Oracle 8 on HP-UX 10.20 and need answers to the following: 1. Can I just use Tomcat, or do I also need Apache? Yes, you can. 2. I have downloaded a version of JDK (1.18.07) from the HP website, will this work? You need at least JDK 1.2 to run Tomcat 4.1.18. Tomcat 3.2.2 3.3 will work with your current JDK. -- Jeanfrancois Any help much appreciated. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: help with tomcat 1.4.1 and j2sdk1.4.0?
You're missing =. Should be: CATALINA_HOME=C:\tomcat John -Original Message- From: Stanley Michaud [mailto:jmichau2;optonline.net] Sent: Wednesday, October 30, 2002 5:51 PM To: [EMAIL PROTECTED] Subject: help with tomcat 1.4.1 and j2sdk1.4.0? I need help with the jakarta-tomcat 1.4.1 and j2sdk1.4.0 which is installed in windows 2000 Professional in an IBM laptop with an intel celeron processor with 466Mhz speed. Both in the user variables for default and the system variables. I use this to declare my variables: CATALINA_HOME C:\tomcat JAVA_HOME C:\j2sdk CLASSPATH .;C:\j2sdk\bin;C:\j2sdk\jre\lib\ext\mm.mysql-2.0.14-bin.jar;C: \tomcat\bin\bootstrap.jar;C:\tomcat\common\lib\servlet.jar;c:\ tomcat\common\lib\tools.jar; I use the command prompt to startup my tomcat and this happens: Microsoft(R) Windows DOS (C)Copyright Microsoft Corp 1990-1999. C:\cd tomcat C:\TOMCATcd bin C:\TOMCAT\BINstartup The CATALINA_HOME environment variable is not defined correctly This environment variable is needed to run this program C:\TOMCAT\BIN Another problem is when I compile a servlet in jdk this happens, it seems that the servlet jar file is not being recognized anywhere. Microsoft(R) Windows DOS (C)Copyright Microsoft Corp 1990-1999. C:\cd j2sdk C:\J2SDKcd bin C:\J2SDK\BINjavac -classpath c:\j2sdk\bin;%CLASSPATH% Cam.java Cam.java:1: package javax.servlet does not exist import javax.servlet.*; ^ Cam.java:2: package javax.servlet.http does not exist import javax.servlet.http.*; ^ Cam.java:7: cannot resolve symbol symbol : class HttpServlet location: class Cam public class Cam extends HttpServlet ^ Cam.java:10: cannot resolve symbol symbol : class ServletConfig location: class Cam public void init(ServletConfig config) throws ServletException ^ Cam.java:10: cannot resolve symbol symbol : class ServletException location: class Cam public void init(ServletConfig config) throws ServletException ^ Cam.java:88: cannot resolve symbol symbol : class HttpServletRequest location: class Cam public void doGet(HttpServletRequest req, HttpServletResponse resp) ^ Cam.java:88: cannot resolve symbol symbol : class HttpServletResponse location: class Cam public void doGet(HttpServletRequest req, HttpServletResponse resp) ^ Cam.java:101: cannot resolve symbol symbol : class HttpServletRequest location: class Cam public synchronized void doPost(HttpServletRequest req, ^ Cam.java:102: cannot resolve symbol symbol : class HttpServletResponse location: class Cam HttpServletResponse resp) ^ Cam.java:13: cannot resolve symbol symbol : variable super location: class Cam super.init(config); ^ Cam.java:20: cannot resolve symbol symbol : class ServletException location: class Cam { throw new ServletException(e.toString()); } ^ Cam.java:136: cannot resolve symbol symbol : class ServletInputStream location: class Cam ServletInputStream instream = null; ^ Cam.java:141: cannot resolve symbol symbol : variable HttpUtils location: class Cam postData = HttpUtils.parsePostData( ^ 13 errors C:\J2SDK\BIN If anyone out there has the answer to these problems give me back a response, I would really appreciate it. Stanley Michaud -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Help with Tomcat 3.3.1 and IIS 5.0
the \classes directory must be inside the \WEB-INF directory. ex. webapps\ch03\WEB-INF\classes Marisol Encalada-Malibran wrote: Hi, I also need some help with Tomcat, I have installed Tomcat 3.3 with IIS 5.0, I have been working in the examples folder under webapps but now I want to deploy a new application, in ..webapps\ch03, I have created the folder webapps\ch03\WEB-INF , webapps\ch03\classes and in it web.xml file with: web-app servlet servlet-name Servy /servlet-name servlet-class com.wrox.projsp.ch03.myfirstwebapp.MyFirstServlet /servlet-class /servlet /web-app and generated the automatic configuration files uriworkermap.properties, then restarted tomcat and IIS, I am trying to run my app as: http://localhost/ch03/servlet/Servy but it doesn´t work, does somebody have an idea of what is wrong or what did I miss? Greetings Marisol Encalada Marisol Encalada RKS Data Öst Datalinjen 1 583 30 Linköping Telefon vxl: + 46 13-489 37 00 Telefon dir: + 46 13-489 37 63 Mobil: + 46 733 51 47 63 Fax: +46 13-489 37 01 E-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- Randie V. Ursal Design Engineering Department NEC Telecom Software Philippines, Inc. office : +63(032) 233-9142 (loc.3119) mobile : +63(0917) 467-8244 email : [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Help with Tomcat 3.3
My best advise is to start over. You are missing many critical elements of server.xml, and many of the ones you left in are in the wrong order. With the possible exception of *Realm, *Connector, or *Config, you shouldn't remove or re-order any of the elements in the shipping server.xml. See http://jakarta.apache.org/tomcat/tomcat-3.3-doc/serverxml.html for how to configure the remainder. Camhi Michel-Ange [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, My config is the following : a Netscape Enterprise Server with AJP13 connector to Tomcat 3.3.1 , with a context (/intranet) fully deployed under the docBase stated below. The problem is that no requests are mapped to this context, and the context never gets initialized! If i add the StaticInterceptor module to this config, i get all my pages but without dynamic content. What am i doing wrong? My web.xml isn't even read. Thanks in advance for your help, Michel-Ange Camhi ?xml version=1.0 encoding=ISO-8859-1? Server ContextManager debug=9 installDir=/opt/local/framework/distrib/srunners/tomcat331 home=/MIDDLE/asn/intranet.asn.alize/tomcat1 workDir=logs/tomcat_work showDebugInfo=true !-- Loggers -- LogSetter name= path=/MIDDLE/asn/intranet.asn.alize/tomcat1/logs/others.log verbosityLevel=DEBUG/ LogSetter name=tc_log path=/MIDDLE/asn/intranet.asn.alize/tomcat1/logs/tomcat.log verbosityLevel=DEBUG/ LogSetter name=servlet_log path=/MIDDLE/asn/intranet.asn.alize/tomcat1/logs/servlet.log verbosityLevel=DEBUG/ LogSetter name=JASPER_LOG path=/MIDDLE/asn/intranet.asn.alize/tomcat1/logs/jasper.log verbosityLevel=DEBUG/ !-- Modules -- LogEvents enabled=true / LoaderInterceptor11 / !-- Loaded last since JSP's that load-on-startup use request handling -- LoadOnStartupInterceptor / !-- Request processing -- !-- Session interceptor will extract the session id from cookies and deal with URL rewriting ( by fixing the URL ). If you wish to suppress the use of cookies for session identifiers, change the noCookies attribute to true -- SessionId noCookies=false/ !-- Find the container ( context and prefix/extension map ) for a request. -- !-- SimpleMapper1 debug=9/ -- !-- Plug a session manager. You can plug in more advanced session modules. -- !-- Connectors -- !-- Apache AJP13 support. This is also used to shut down tomcat. -- Ajp13Connector debug=9 port=9702 address=172.18.17.13 maxThreads=100 maxSpareThreads=8 minSpareThreads=5 / WebXMLReader debug=9 validate=true / Servlet22Interceptor debug=9 / JSPInterceptor debug=9 / ContextXMLReader config=conf/server.xml / Context path=/intranet docBase=/WEBS/asn/intranet.asn.alize/docs/intranet debug=9 reloadable=false/ /ContextManager /Server Michel-Ange CAMHI Responsable Unix-Dev - Atos Origin Multimédia ZI La Pointe - 59113 Seclin Tel: 33+ (0)3 20 60 7896 - Fax: 33+ (0)3 20 60 7649 - [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help: Installing Tomcat 4.0.4
As far as I know, -Djava.endorsed.dirs=... works only with jdk1.4, but you seem to be using jdk 1.3.1_03. HTH Sincerely, Sergei Batiuk. IT department Damen Shipyards Okean +380 512 293146 +380 512 293329 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 29, 2002 9:46 AM To: [EMAIL PROTECTED] Subject: Help: Installing Tomcat 4.0.4 Hi, I am new to Jsp and Java stuff. I installed Tomcat 4.0.4 following instructions http://jakarta.apache.org/tomcat/tomcat-4.0-doc/RUNNING.txt When I try to startup tomcat, I get the following: C:\jakarta-tomcat-4.0.4\binstartup The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program The system cannot find the batch label specified - end Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CATALINA_TMPDIR: ..\temp Using JAVA_HOME: c:\jdk1.3.1_03\bin; The system cannot find the file -Djava.endorsed.dirs=. I have tried setting up environment variables for JAVA_HOME and CATALINA_HOME but still get same error. Please help. Thanks in advance. Manisha -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Help: Installing Tomcat 4.0.4
Try c:\jdk1.3.1_03 or c:\jdk1.3.1_03\jre because Tomcat uses %JAVA_HOME%\lib and %JAVA_HOME%\bin just take a look at %CATALINA_HOME%\bin\setclasspath.bat Regards Miquel Sas -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Help: Installing Tomcat 4.0.4
JAVA_HOME is set incorrectly. It should be: JAVA_HOME=c:\jdk1.3.1_03 RS Manisha_Toor@Dell .com To: [EMAIL PROTECTED] cc: 07/29/02 01:46 AMSubject: Help: Installing Tomcat 4.0.4 Please respond to Tomcat Users List Hi, I am new to Jsp and Java stuff. I installed Tomcat 4.0.4 following instructions http://jakarta.apache.org/tomcat/tomcat-4.0-doc/RUNNING.txt When I try to startup tomcat, I get the following: C:\jakarta-tomcat-4.0.4\binstartup The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program The system cannot find the batch label specified - end Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CATALINA_TMPDIR: ..\temp Using JAVA_HOME: c:\jdk1.3.1_03\bin; The system cannot find the file -Djava.endorsed.dirs=. I have tried setting up environment variables for JAVA_HOME and CATALINA_HOME but still get same error. Please help. Thanks in advance. Manisha -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help on Tomcat 4.0.4 configuration
Hi Nishant, Now, every thing is going well, only problem is session. Actually, i have a login page, after getting the userid and passwd it calls a servlet for validation. this servlet after validation, sends the response page to a new jsp page using sendRedirect(). here, in jsp page, i couldn't retreive the session variable, it gives null using session.getAttribute(). It seems tomcat 4.0.4 supports session. becoz, it is working on the same page, only thing is when we send to other page, it is not working. If any body have an idea regarding session attribute please let me know.. Thanks in advance. Murugan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 7:22 PM To: Tomcat Users List Subject: Re: Help on Tomcat 4.0.4 configuration Hello Murugan I ahve installed tomcat 4.0.4 and it is running fine here: All you need to set is JAVA_HOME and CATALINA_HOME. You need not worry about any of the other files like setenv.bat or startup.bat or catalina.bat. Actually if you want you can edit catalina.bat which contains you classpath settings. and add your own class path as: set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\bin\bootstrap.jar; (place your classes here); Tomcat automatically sets the classpath depending on your autoexec.bat file set classpath when it is run for the first time. It also includes all the jar files from %TOMCAT_HOME%\common\lib. So you neednot worry about the classpath. Either edit autoexec.bat or edit catalina.bat. No need to do anything with web.xml tell me in case of any probs. -- Nishant Awasthi Corporate Systems Database Intern Progressive Insurance Phone: 440-603-4055 (Work) Cell: 330-328-0243 (Cell) Telesis Support - To: Tomcat Users List Bangalore[EMAIL PROTECTED] tel_bbubng@incc: (bcc: Nishant Awasthi) fosys.comSubject: Help on Tomcat 4.0.4 configuration 07/15/2002 08:03 AM Please respond to Tomcat Users List Hi all, Can anyone tell me the steps for tomcat 4.0.4 configuration. I have set the JAVA_HOME and CATALINA_HOME and start the tomcat. but, for tomcat 3.3.1, i had set classpath in tomcat.bat file.. I have the doubt about classpath for tomcat 4.0.4. Can u please come with the steps for tomcat 4.0.4 configuration, including web.xml.. there is also one more web.xml in conf folder, it seems, it is for global things.. little bit confusion. Till now, i couldn't get any jsp page, even in the examples jsp page not working. If anyone succeed in the tomcat 4.0.4 configuration, please let me know.. bye, Murugan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Help on Tomcat 4.0.4 configuration
Hello Murugan I ahve installed tomcat 4.0.4 and it is running fine here: All you need to set is JAVA_HOME and CATALINA_HOME. You need not worry about any of the other files like setenv.bat or startup.bat or catalina.bat. Actually if you want you can edit catalina.bat which contains you classpath settings. and add your own class path as: set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\bin\bootstrap.jar; (place your classes here); Tomcat automatically sets the classpath depending on your autoexec.bat file set classpath when it is run for the first time. It also includes all the jar files from %TOMCAT_HOME%\common\lib. So you neednot worry about the classpath. Either edit autoexec.bat or edit catalina.bat. No need to do anything with web.xml tell me in case of any probs. -- Nishant Awasthi Corporate Systems Database Intern Progressive Insurance Phone: 440-603-4055 (Work) Cell: 330-328-0243 (Cell) Telesis Support - To: Tomcat Users List Bangalore[EMAIL PROTECTED] tel_bbubng@incc: (bcc: Nishant Awasthi) fosys.comSubject: Help on Tomcat 4.0.4 configuration 07/15/2002 08:03 AM Please respond to Tomcat Users List Hi all, Can anyone tell me the steps for tomcat 4.0.4 configuration. I have set the JAVA_HOME and CATALINA_HOME and start the tomcat. but, for tomcat 3.3.1, i had set classpath in tomcat.bat file.. I have the doubt about classpath for tomcat 4.0.4. Can u please come with the steps for tomcat 4.0.4 configuration, including web.xml.. there is also one more web.xml in conf folder, it seems, it is for global things.. little bit confusion. Till now, i couldn't get any jsp page, even in the examples jsp page not working. If anyone succeed in the tomcat 4.0.4 configuration, please let me know.. bye, Murugan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help on Tomcat 4.0.4 configuration
) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125) at java.lang.Thread.run(Thread.java:484) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 7:22 PM To: Tomcat Users List Subject: Re: Help on Tomcat 4.0.4 configuration Hello Murugan I ahve installed tomcat 4.0.4 and it is running fine here: All you need to set is JAVA_HOME and CATALINA_HOME. You need not worry about any of the other files like setenv.bat or startup.bat or catalina.bat. Actually if you want you can edit catalina.bat which contains you classpath settings. and add your own class path as: set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\bin\bootstrap.jar; (place your classes here); Tomcat automatically sets the classpath depending on your autoexec.bat file set classpath when it is run for the first time. It also includes all the jar files from %TOMCAT_HOME%\common\lib. So you neednot worry about the classpath. Either edit autoexec.bat or edit catalina.bat. No need to do anything with web.xml tell me in case of any probs. -- Nishant Awasthi Corporate Systems Database Intern Progressive Insurance Phone: 440-603-4055 (Work) Cell: 330-328-0243 (Cell) Telesis Support - To: Tomcat Users List Bangalore[EMAIL PROTECTED] tel_bbubng@incc: (bcc: Nishant Awasthi) fosys.comSubject: Help on Tomcat 4.0.4 configuration 07/15/2002 08:03 AM Please respond to Tomcat Users List Hi all, Can anyone tell me the steps for tomcat 4.0.4 configuration. I have set the JAVA_HOME and CATALINA_HOME and start the tomcat. but, for tomcat 3.3.1, i had set classpath in tomcat.bat file.. I have the doubt about classpath for tomcat 4.0.4. Can u please come with the steps for tomcat 4.0.4 configuration, including web.xml.. there is also one more web.xml in conf folder, it seems, it is for global things.. little bit confusion. Till now, i couldn't get any jsp page, even in the examples jsp page not working. If anyone succeed in the tomcat 4.0.4 configuration, please let me know.. bye, Murugan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help on Tomcat 4.0.4 configuration
Hi Nishant, Its go thro after setting the CLASSPATH at catalina.bat. but, it seems, some error in session, when applying my application.. i will check it and tell you.. bye, Murugan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 7:22 PM To: Tomcat Users List Subject: Re: Help on Tomcat 4.0.4 configuration Hello Murugan I ahve installed tomcat 4.0.4 and it is running fine here: All you need to set is JAVA_HOME and CATALINA_HOME. You need not worry about any of the other files like setenv.bat or startup.bat or catalina.bat. Actually if you want you can edit catalina.bat which contains you classpath settings. and add your own class path as: set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\bin\bootstrap.jar; (place your classes here); Tomcat automatically sets the classpath depending on your autoexec.bat file set classpath when it is run for the first time. It also includes all the jar files from %TOMCAT_HOME%\common\lib. So you neednot worry about the classpath. Either edit autoexec.bat or edit catalina.bat. No need to do anything with web.xml tell me in case of any probs. -- Nishant Awasthi Corporate Systems Database Intern Progressive Insurance Phone: 440-603-4055 (Work) Cell: 330-328-0243 (Cell) Telesis Support - To: Tomcat Users List Bangalore[EMAIL PROTECTED] tel_bbubng@incc: (bcc: Nishant Awasthi) fosys.comSubject: Help on Tomcat 4.0.4 configuration 07/15/2002 08:03 AM Please respond to Tomcat Users List Hi all, Can anyone tell me the steps for tomcat 4.0.4 configuration. I have set the JAVA_HOME and CATALINA_HOME and start the tomcat. but, for tomcat 3.3.1, i had set classpath in tomcat.bat file.. I have the doubt about classpath for tomcat 4.0.4. Can u please come with the steps for tomcat 4.0.4 configuration, including web.xml.. there is also one more web.xml in conf folder, it seems, it is for global things.. little bit confusion. Till now, i couldn't get any jsp page, even in the examples jsp page not working. If anyone succeed in the tomcat 4.0.4 configuration, please let me know.. bye, Murugan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help with Tomcat and IIS
try changing all references from isapi_redirector.dll to isapi_redirect.dll -Original Message- From: Robert A. Rogerson [mailto:[EMAIL PROTECTED]] Sent: June 3, 2002 19:07 To: Tomcat Users List Subject: RE: Help with Tomcat and IIS Hi Larry. I checked my registry (NT4 SP6) and the only reference to islapi_rediector.dll is under HKEY_LOCAL_MACHINE/SOFTWARE/Apache Software Foundation/Jakarta Isapi Redirector/1.0/extension_uri=/jakarta/isapi_redirector.dll. I did notice in other docs that the redirector should only be entered for Filter DLLs for Win98. Could I be confused and the extension_uri=/jakarta/isapi_redictor.dll should not exist? Thanks, Rob -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 11:31 AM To: Tomcat Users List Subject: RE: Help with Tomcat and IIS The /jakarta/isapi_redirector.dll URI should never be forwarded to Tomcat. It occurrence indicates that the isapi_redirector.dll filter is being called more than once per request. In the past this error was most often accomplished on WinNT/Win2k systems by adding the filter via the Admin console and incorrectly adding it again via the Filter DLLs registry key. The Filter DLLs is for Win9x only. There have also been instances of the dll filter being added globally and to an individual web server causing it to be called twice. Cheers, Larry -Original Message- From: Robert A. Rogerson [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 11:55 AM To: [EMAIL PROTECTED] Subject: Help with Tomcat and IIS I installed Tomcat 4.0.3 and followed the How To directions for redirecting when using IIS. JSP pages are served correctly through Tomcat http://local host:8080/examples/jsp/dates/date.jsp but when I try and serve a simple jsp http://localhost/test.jsp where test.jsp is html head titleWelcome JSP/title /head body bgcolor=white h3 Welcome /h3 pb Today is %= new java.util.Date() %. Have a nice day! :-) /b/p /body /html I receive the error ...titleApache Tomcat/4.0.3 - Error report/title ...Apache Tomcat/4.0.3 - HTTP Status 404 - /jakarta/isapi_redirector.dll ...type/b Status report ...message/b u/jakarta/isapi_redirector.dll ...description/b uThe requested resource (/jakarta/isapi_redirector.dll) is not available. through IIS. I checked the authority to the /jakarta virtual directory and it does have Execute permission. Any ideas would be appreciated. Robert A. Rogerson Phone: 905-826-7761 Cell: 416-562-1039 Email:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help with Tomcat and IIS
The isapi_redirect[or].dll is both a filter and an extension. The filter portion examines the request to see if it should be forwarded to Tomcat. If so, the request URI is saved in new header entries which are added to the request and the request URI is replaced with the extension-uri value. This causes the request to be processed by the extension portion of the dll which handles the communications with Tomcat. Your symptom is typical of having the isapi filter called twice per request where even /jakarta/isapi_redirector.dll is configured to be forwarded to Tomcat. The second call to the filter routine replaces the correctly request URI, saved previously, with /jakarta/isapi_redirector.dll and the request is now doomed to failure. Since it appears you didn't make the mistake of adding the Filter DLLs key, check to make sure the filter appears only once in either the desired virtual host(s) or in their parent node. It should not appear at both levels. Cheers, Larry -Original Message- From: Robert A. Rogerson [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 7:07 PM To: Tomcat Users List Subject: RE: Help with Tomcat and IIS Hi Larry. I checked my registry (NT4 SP6) and the only reference to islapi_rediector.dll is under HKEY_LOCAL_MACHINE/SOFTWARE/Apache Software Foundation/Jakarta Isapi Redirector/1.0/extension_uri=/jakarta/isapi_redirector.dll. I did notice in other docs that the redirector should only be entered for Filter DLLs for Win98. Could I be confused and the extension_uri=/jakarta/isapi_redictor.dll should not exist? Thanks, Rob -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 11:31 AM To: Tomcat Users List Subject: RE: Help with Tomcat and IIS The /jakarta/isapi_redirector.dll URI should never be forwarded to Tomcat. It occurrence indicates that the isapi_redirector.dll filter is being called more than once per request. In the past this error was most often accomplished on WinNT/Win2k systems by adding the filter via the Admin console and incorrectly adding it again via the Filter DLLs registry key. The Filter DLLs is for Win9x only. There have also been instances of the dll filter being added globally and to an individual web server causing it to be called twice. Cheers, Larry -Original Message- From: Robert A. Rogerson [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 11:55 AM To: [EMAIL PROTECTED] Subject: Help with Tomcat and IIS I installed Tomcat 4.0.3 and followed the How To directions for redirecting when using IIS. JSP pages are served correctly through Tomcat http://local host:8080/examples/jsp/dates/date.jsp but when I try and serve a simple jsp http://localhost/test.jsp where test.jsp is html head titleWelcome JSP/title /head body bgcolor=white h3 Welcome /h3 pb Today is %= new java.util.Date() %. Have a nice day! :-) /b/p /body /html I receive the error ...titleApache Tomcat/4.0.3 - Error report/title ...Apache Tomcat/4.0.3 - HTTP Status 404 - /jakarta/isapi_redirector.dll ...type/b Status report ...message/b u/jakarta/isapi_redirector.dll ...description/b uThe requested resource (/jakarta/isapi_redirector.dll) is not available. through IIS. I checked the authority to the /jakarta virtual directory and it does have Execute permission. Any ideas would be appreciated. Robert A. Rogerson Phone: 905-826-7761 Cell: 416-562-1039 Email:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Help with Tomcat and IIS
Robert A. Rogerson wrote: I installed Tomcat 4.0.3 and followed the How To directions for redirecting when using IIS. JSP pages are served correctly through Tomcat http://local host:8080/examples/jsp/dates/date.jsp but when I try and serve a simple jsp http://localhost/test.jsp where test.jsp is html head titleWelcome JSP/title /head body bgcolor=white h3 Welcome /h3 pb Today is %= new java.util.Date() %. Have a nice day! :-) /b/p /body /html I receive the error ...titleApache Tomcat/4.0.3 - Error report/title ...Apache Tomcat/4.0.3 - HTTP Status 404 - /jakarta/isapi_redirector.dll ...type/b Status report ...message/b u/jakarta/isapi_redirector.dll ...description/b uThe requested resource (/jakarta/isapi_redirector.dll) is not available. through IIS. I checked the authority to the /jakarta virtual directory and it does have Execute permission. Any ideas would be appreciated. 1. In %CATALINA_HOME%/conf/server.xml make sure the line Context path= docBase=ROOT reloadable=true debug=0/ is uncommented (in 403 as shipped, it's commented). 2. Put test.jsp in %CATALINA_HOME%/webapps/ROOT 3. Unless you switched Tomcat's port to 80, I think your URL has to be http://localhost:8080/test.jsp HTH P. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help with Tomcat and IIS
The /jakarta/isapi_redirector.dll URI should never be forwarded to Tomcat. It occurrence indicates that the isapi_redirector.dll filter is being called more than once per request. In the past this error was most often accomplished on WinNT/Win2k systems by adding the filter via the Admin console and incorrectly adding it again via the Filter DLLs registry key. The Filter DLLs is for Win9x only. There have also been instances of the dll filter being added globally and to an individual web server causing it to be called twice. Cheers, Larry -Original Message- From: Robert A. Rogerson [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 11:55 AM To: [EMAIL PROTECTED] Subject: Help with Tomcat and IIS I installed Tomcat 4.0.3 and followed the How To directions for redirecting when using IIS. JSP pages are served correctly through Tomcat http://local host:8080/examples/jsp/dates/date.jsp but when I try and serve a simple jsp http://localhost/test.jsp where test.jsp is html head titleWelcome JSP/title /head body bgcolor=white h3 Welcome /h3 pb Today is %= new java.util.Date() %. Have a nice day! :-) /b/p /body /html I receive the error ...titleApache Tomcat/4.0.3 - Error report/title ...Apache Tomcat/4.0.3 - HTTP Status 404 - /jakarta/isapi_redirector.dll ...type/b Status report ...message/b u/jakarta/isapi_redirector.dll ...description/b uThe requested resource (/jakarta/isapi_redirector.dll) is not available. through IIS. I checked the authority to the /jakarta virtual directory and it does have Execute permission. Any ideas would be appreciated. Robert A. Rogerson Phone: 905-826-7761 Cell: 416-562-1039 Email:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help with Tomcat and IIS
Hi Larry. I checked my registry (NT4 SP6) and the only reference to islapi_rediector.dll is under HKEY_LOCAL_MACHINE/SOFTWARE/Apache Software Foundation/Jakarta Isapi Redirector/1.0/extension_uri=/jakarta/isapi_redirector.dll. I did notice in other docs that the redirector should only be entered for Filter DLLs for Win98. Could I be confused and the extension_uri=/jakarta/isapi_redictor.dll should not exist? Thanks, Rob -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 11:31 AM To: Tomcat Users List Subject: RE: Help with Tomcat and IIS The /jakarta/isapi_redirector.dll URI should never be forwarded to Tomcat. It occurrence indicates that the isapi_redirector.dll filter is being called more than once per request. In the past this error was most often accomplished on WinNT/Win2k systems by adding the filter via the Admin console and incorrectly adding it again via the Filter DLLs registry key. The Filter DLLs is for Win9x only. There have also been instances of the dll filter being added globally and to an individual web server causing it to be called twice. Cheers, Larry -Original Message- From: Robert A. Rogerson [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 11:55 AM To: [EMAIL PROTECTED] Subject: Help with Tomcat and IIS I installed Tomcat 4.0.3 and followed the How To directions for redirecting when using IIS. JSP pages are served correctly through Tomcat http://local host:8080/examples/jsp/dates/date.jsp but when I try and serve a simple jsp http://localhost/test.jsp where test.jsp is html head titleWelcome JSP/title /head body bgcolor=white h3 Welcome /h3 pb Today is %= new java.util.Date() %. Have a nice day! :-) /b/p /body /html I receive the error ...titleApache Tomcat/4.0.3 - Error report/title ...Apache Tomcat/4.0.3 - HTTP Status 404 - /jakarta/isapi_redirector.dll ...type/b Status report ...message/b u/jakarta/isapi_redirector.dll ...description/b uThe requested resource (/jakarta/isapi_redirector.dll) is not available. through IIS. I checked the authority to the /jakarta virtual directory and it does have Execute permission. Any ideas would be appreciated. Robert A. Rogerson Phone: 905-826-7761 Cell: 416-562-1039 Email:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Help with Tomcat and mm.mql driver
David, Hello all, Hopefully this is an easy one... I am trying to connect to mysql from a servlet running on Tomcat 4.0.3. I have the mm.mysql driver installed and it works fine from within a Java console app. When I run the servlet I get the following error: java.sql.SQLException: No suitable driver I am running this servlet from Tomcat\webapps\ROOT\WEB-INF\classes\code_lib (code_lib being the name of the package I am creating...) I read in a few places that I should put the mm.mysql class in WEB-INF\lib, does this still apply if my app is not running in the classes directory? Or should it go in WEB-INF\code_lib\lib? Do I have to alter server.xml or modify the CLASSPATH? Hopefully this is enought information. Help is MUCH appreciated. Two bits to this answer: 1. Tomcat itself ignores CLASSPATH. Put the MM.MySQL .jar file in $CATALINA_HOME/common/lib. 2. If MM.MySQL is installed in c:mm_mysql, then _that_ path needs to be in your CLASSPATH, the fully qualified path to the Driver.class file is c:/mm_mysql/org/gjt/mm/mysql/Driver.class, so the argument to Class.forName() in your servlet is org.gjt.mm.mysql.Driver HTH -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help with Tomcat and mm.mql driver
Hey guys, Thanks for your help, I managed to get it working! I had previously dropped the jar file in tomcat\lib but was still getting class not found errors. Just for kicks I rebooted and it started working (I had previously just tried restarting Tomcat). Go figure... Thanks again! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help !!! JNI Tomcat (UnSatisfiedLinkError exception)
I tried all these options. But, unfortunately, it didn't resolve the issue. I think Tomcat does find the DLL, since if I remove DLL from \winnt\system32 folder I get a different error meesage. My guess is to run JNI under Tomcat, certain security seetings need to be configured. Does anyone know of this ? Any help would be great. thanks - Anil From: Brian Adams [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: Help !!! JNI Tomcat (UnSatisfiedLinkError exception) Date: Wed, 30 Jan 2002 20:31:14 -0600 Tomcat must not look in the \winnt\system32 directory. put the dll in the same directory as the class file. If you have tomcat starting as a service, try putting the dll in the %TOMCAT_HOME% directory eg. C:\tomcat lastly try putting the dll in %TOMCAT_HOME%\bin directory. goodluck, B -Original Message- From: Anil Bhagwat [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 4:35 PM To: [EMAIL PROTECTED] Subject: Help !!! JNI Tomcat (UnSatisfiedLinkError exception) Hi, I have been trying to use JNI on Win2K using tomcat 4.0. I am running into a problem. I keep getting UnSatisfiedLinkError exception. This doesn't happen when I execute the JNI from a sample JAVA application. I have placed the DLL under \winnt\system32 directory. The DLL is a C++ COM DLL compiled using MS Visual C++ 6.0. I tried using a C++ (no COM) DLL and a C DLL but no success. I tried creating just a simple function that doesn't accept any parameters doesn't return any value. But, still it doesn't work. So, the problem is unlikely to have with the param types etc. I tried this on several versions of Tomcat but no success. I think the app finds the DLL correctly but can't find the method within correctly. I suspect this has something to do with Tomcat configuration (security ??). Has anyone seen this problem before ? While browsing thru' archives, I saw quite few people have run into this issue, but didn't notice any resolution. I would appreciate any help on this issue. thanks - Anil _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Help giving Tomcat more memory
Michael, I then start the program with java -Xms145M -Xmx160M test If I understand this correctly, the initial heap size should be 145 megs. However, looking at my processes, there is only about 7200K allocated for the program. Why doesn't it start out at 145? That is the same behaviour I'm seeing on the Win2K machine with Tomcat. It ignores the initial heap size I'm specifying and starts around 16MB, and then dies around 78. Am I misunderstanding how the -Xms and -Xmx flags work? No, but when looking at the task manager you should not look at Mem Usage but at VM Size. (You can select the columns at View | Select Columns...) NT/W2K/XP allocate Memory usually as virtual memory (using LocalAlloc() or GlobalAlloc() API functions in C/C++). The OS decides when it will swap unused data and program code to the page file and give more fast memory to a process. So if you specify -Xmsn and -Xmxn the OS will not immediately take away all memory when the process starts. You just made sort of a reservation. If you look at VMSize you will see, that you got your 145 MB. HTH Thomas -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Help giving Tomcat more memory
I then start the program with java -Xms145M -Xmx160M test If I understand this correctly, the initial heap size should be 145 megs. However, looking at my processes, there is only about 7200K allocated for the program. Why doesn't it start out at 145? That is the same behaviour I'm seeing on the Win2K machine with Tomcat. It ignores the initial heap size I'm specifying and starts around 16MB, and then dies around 78. Assuming you are getting the 7200k from Windoze task manager, the main problem is that this tool is inaccurate at best. About the most you can use it for is relative memory useage - increase your -Xms param and see if it at least changes your memory (not conclusive, but could at least tell you that you are changing something!) drfish -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]