RE: catalina errors
Nope, that had little to do with the problem. I did figure out what was causing the problems. 1) There were two libraries that I needed to put in the widows\system32 directory that eliminated most of the INFO: messages. 2) The other was that I didn't need the root directory because nothing was being accessed in that directory and there wasn't any valid content in it, (all http is being handled by Apache) this caused the context[] error, null pointer exceptions and SSI errors (deleted root directory to solve problem). 3) Now the log just shows startup and/or shutdown information. 4) The reason I began looking in the logs in the first place was because the server was hanging when parts of it were trying to send mail. This was due to our mail server having issues with black list servers. Thanks for you help. -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Friday, April 17, 2009 10:52 AM To: Tomcat Users List Subject: Re: catalina errors Walter Thompson wrote: I am running the following configuration: Windows Server 2003 Apache 2.2.6 front end Tomcat 6.0.16.0 backend for servlets Java 1.6.0_13-b03 mod_SSL 2.2.6 openSSL 0.9.8g Thanks for mentioning that. Few people do without prodding. The SSL Certificates are installed in Apache so I may not need to enable SSL in Tomcat (now tomcat ssl is enabled). Catalina log shows following: ... Apr 17, 2009 8:59:48 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\www\Tomcat6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WI ND OWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Intel\DMIX;C:\www\openssl\bin;C:\www\Apache22\bin;C:\www\php5;C: \w ww\mysql5\bin;C:\www\perl\bin;C:\PROGRA~1\CA\SHARED~1\SCANEN~1;C:\PROG RA ~1\CA\ETRUST~1;C:\Program Files\Executive Software\Diskeeper\;C:\Program Files\java\jdk1.6.0_13;C:\Program Files\java\jre6;C:\www\Tomcat6;C:\www\Tomcat6\lib Apr 17, 2009 8:59:48 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 487 ms Apr 17, 2009 8:59:48 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Apr 17, 2009 8:59:48 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.16 Apr 17, 2009 8:59:48 AM org.apache.catalina.startup.HostConfig deployDirectory SEVERE: Error deploying web application directory ROOT java.lang.SecurityException: Servlet of class org.apache.catalina.ssi.SSIServlet is privileged and cannot be loaded by this web application Well, that sounds pretty clear. Maybe here : http://tomcat.apache.org/tomcat-6.0-doc/config/context.html privileged ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
catalina errors
I am getting three or more errors when tomcat starts. Thanks for any help or suggestions you can give me. I am running the following configuration: Windows Server 2003 Apache 2.2.6 front end Tomcat 6.0.16.0 backend for servlets Java 1.6.0_13-b03 mod_SSL 2.2.6 openSSL 0.9.8g The SSL Certificates are installed in Apache so I may not need to enable SSL in Tomcat (now tomcat ssl is enabled). Catalina log shows following: Apr 17, 2009 8:58:43 AM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Apr 17, 2009 8:58:43 AM org.apache.catalina.startup.HostConfig undeployApps WARNING: Error while removing context [] java.lang.NullPointerException at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:91 5) at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1189 ) at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1160) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31 3) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:117) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098) at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448) at org.apache.catalina.core.StandardService.stop(StandardService.java:584) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744) at org.apache.catalina.startup.Catalina.stop(Catalina.java:628) at org.apache.catalina.startup.Catalina.start(Catalina.java:603) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Apr 17, 2009 8:59:48 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\www\Tomcat6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WIND OWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Intel\DMIX;C:\www\openssl\bin;C:\www\Apache22\bin;C:\www\php5;C:\w ww\mysql5\bin;C:\www\perl\bin;C:\PROGRA~1\CA\SHARED~1\SCANEN~1;C:\PROGRA ~1\CA\ETRUST~1;C:\Program Files\Executive Software\Diskeeper\;C:\Program Files\java\jdk1.6.0_13;C:\Program Files\java\jre6;C:\www\Tomcat6;C:\www\Tomcat6\lib Apr 17, 2009 8:59:48 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 487 ms Apr 17, 2009 8:59:48 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Apr 17, 2009 8:59:48 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.16 Apr 17, 2009 8:59:48 AM org.apache.catalina.startup.HostConfig deployDirectory SEVERE: Error deploying web application directory ROOT java.lang.SecurityException: Servlet of class org.apache.catalina.ssi.SSIServlet is privileged and cannot be loaded by this web application at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav a:1134) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j ava:4058) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4364 ) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja va:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:9 24) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java :887) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31 1) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
RE: Graceful shutdown
Try using shutdown.sh and startup.sh to start and stop Tomcat. Walter -Original Message- From: Antonio Parolini [mailto:[EMAIL PROTECTED] Sent: Friday, July 04, 2008 2:54 AM To: users@tomcat.apache.org Subject: Graceful shutdown Hello, We use Tomcat 5.5.23 Using the command catalina.sh stop interrupts abruptly any working servlet threads and stop Tomcat. Is there a way of shutting tomcat gracefully? For me, an example of graceful shutdown would be: 1) The HTTP connector stop accepting new requests 2) Tomcat wait that all the servlet threads finish (without interrupting them as it does today) 3) Shutdown the server Thanks for your advises, Antonio NB: I've seen that jk2 connector did something about this, but we are not using Apache as our front end. -- View this message in context: http://www.nabble.com/Graceful-shutdown-tp18274673p18274673.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SEVERE: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/finalServer,J2EEApplication=none,J2EEServer=none
1) What OS are you running? 2) What JRE or JDK have you installed? 3) If in windows did you set environment variables? Walter -Original Message- From: reena george [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 1:42 PM To: users@tomcat.apache.org Subject: SEVERE: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/finalServer,J2EE Application=none,J2EEServer=none -- Forwarded message -- From: reena george [EMAIL PROTECTED] Date: Wed, Jun 25, 2008 at 12:06 AM Subject: SEVERE: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/finalServer,J2EE Application=none,J2EEServer=none To: users@tomcat.apache.org hi, When am running the project through NetBeans,Am getting an HTTP 404 error:servlet jsp not found.And am getting an apache tomcat 5.5 error: Jun 24, 2008 10:37:24 PM org.apache.commons.modeler.Registry registerComponent SEVERE: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/f inalServer,J2EEApplication=none,J2EEServer=none I dont know whether its a tomcat related error Could someone please tell me why this is happening?i have no clue..its important! any help will be really appreciated! - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Log4j Logging
OK. It doesn't give 404, how about fixing the page not found on this server error too? -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 3:30 PM To: Tomcat Users List Subject: Re: Log4j Logging David Fisher wrote: (3) On the logger FAQ page the Configuration link is dead! http://tomcat.apache.org/tomcat-5.0-doc/config/logger.html gives a 404. Fixed. Note, the FAQ is now on a wiki so anyone who spots an error can just fix it. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Log4j Logging
The same one you claimed to have fixed the 404 error on! (3) On the logger FAQ page the Configuration link is dead! http://tomcat.apache.org/tomcat-5.0-doc/config/logger.html gives a 404. -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 3:45 PM To: Tomcat Users List Subject: Re: Log4j Logging Walter Thompson wrote: OK. It doesn't give 404, how about fixing the page not found on this server error too? I'm not a mind reader. Which link is broken? Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Pointers in tomcat
You should get your registor (thawte) to add the redirect to your domain. No need to change webapp. Walter -Original Message- From: Mathias P.W Nilsson [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2008 1:18 PM To: users@tomcat.apache.org Subject: Pointers in tomcat Hi! I have a web page that is deployed as ROOT.war. In my web app I have created a connector for https that points to the www.mysite.com. My problem is that I also want it to point to mysite.com without the www. I have only bought www.mysite.com from thawte so the browser complains about the mysite.com. Is there anyway of redirecting mysite.com to www.mysite.com? -- View this message in context: http://www.nabble.com/Pointers-in-tomcat-tp18075070p18075070.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Pointers in tomcat
On second thought, is thawte who registered your domain or did they just provide your server certificate? Where ever you registered your domain is where you can get them to do the redirect. I think there is a small fee for this service. Walter -Original Message- From: Mathias P.W Nilsson [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2008 1:18 PM To: users@tomcat.apache.org Subject: Pointers in tomcat Hi! I have a web page that is deployed as ROOT.war. In my web app I have created a connector for https that points to the www.mysite.com. My problem is that I also want it to point to mysite.com without the www. I have only bought www.mysite.com from thawte so the browser complains about the mysite.com. Is there anyway of redirecting mysite.com to www.mysite.com? -- View this message in context: http://www.nabble.com/Pointers-in-tomcat-tp18075070p18075070.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Pointers in tomcat
The Thawte certificate is not you domain registration. Your domain registration is separate from the certificate. Since I don't know the actual domain name you are refering to, I can't look up who did you domain registration. By the way www.mysite.com is a working website, is this your actual website or is it snyltarna.se? Anyway, the people that registered your domain (network solutions, godady, thawte, etc.) can provide the redirect as a separate service (goes with domain not security certificate). Walter -Original Message- From: Mathias P.W Nilsson [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2008 1:50 PM To: users@tomcat.apache.org Subject: RE: Pointers in tomcat I own the domain but didn't buy a wildcard certificate. So the only thing that works is www.mysite.com for the certificate. When I type mysite.com I get to the same server but it is not ssl enabled -- View this message in context: http://www.nabble.com/Pointers-in-tomcat-tp18075070p18075744.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running on Mac OS 10.4
Thanks Martin, It turned out that the wrong version had been installed. Found this out after looking for bootstrap.jar Installed the correct .zip version and it worked without any problem. Thanks to everyone. Problem solved. Walter -Original Message- From: Martin [mailto:[EMAIL PROTECTED] Sent: Saturday, June 21, 2008 5:01 PM To: Tomcat Users List Subject: Re: Running on Mac OS 10.4 please confirm this entry in $TOMCAT_HOME/bin/catalina.sh CLASSPATH=$CLASSPATH:$CATALINA_HOME/bin/bootstrap.jar: pls confirm $CATALINA_HOME/bin/bootstrap.jar exists Martin - Original Message - From: Walter Thompson [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Saturday, June 21, 2008 5:29 PM Subject: RE: Running on Mac OS 10.4 1) .zip 2) java is 1.5 3) yes, using startup.sh Walter -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Saturday, June 21, 2008 4:22 PM To: Tomcat Users List Subject: RE: Running on Mac OS 10.4 From: Walter Thompson [mailto:[EMAIL PROTECTED] Subject: Running on Mac OS 10.4 We are trying to run Tomcat 6.0.16 on Mac OS 10.4.11. Installed using download, followed instructions. Which download - the .tar or .zip? Which instructions? Also getting error Message: Exception in thread main java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap. Are you using the startup.sh script? What JRE/JDK do you have installed? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running on Mac OS 10.4
We are trying to run Tomcat 6.0.16 on Mac OS 10.4.11. Installed using download, followed instructions. Tomcat welcome page doesn't display. Also getting error Message: Exception in thread main java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap. Does anyone have a clue what is causing the problem? Thanks for any help! Walter Thompson
RE: Running on Mac OS 10.4
Sorry I didn't mention that, the .zip version. -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Saturday, June 21, 2008 4:22 PM To: Tomcat Users List Subject: RE: Running on Mac OS 10.4 From: Walter Thompson [mailto:[EMAIL PROTECTED] Subject: Running on Mac OS 10.4 We are trying to run Tomcat 6.0.16 on Mac OS 10.4.11. Installed using download, followed instructions. Which download - the .tar or .zip? Which instructions? Also getting error Message: Exception in thread main java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap. Are you using the startup.sh script? What JRE/JDK do you have installed? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running on Mac OS 10.4
1) .zip 2) java is 1.5 3) yes, using startup.sh Walter -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Saturday, June 21, 2008 4:22 PM To: Tomcat Users List Subject: RE: Running on Mac OS 10.4 From: Walter Thompson [mailto:[EMAIL PROTECTED] Subject: Running on Mac OS 10.4 We are trying to run Tomcat 6.0.16 on Mac OS 10.4.11. Installed using download, followed instructions. Which download - the .tar or .zip? Which instructions? Also getting error Message: Exception in thread main java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap. Are you using the startup.sh script? What JRE/JDK do you have installed? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running on Mac OS 10.4
OK, another question, how do you set environment variables in Mac OS? Thanks. -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Saturday, June 21, 2008 4:57 PM To: Tomcat Users List Subject: RE: Running on Mac OS 10.4 From: Walter Thompson [mailto:[EMAIL PROTECTED] Subject: RE: Running on Mac OS 10.4 3) yes, using startup.sh The startup.sh script should generate a call to catalina.sh start, which in turn should generate a java command line that includes a -classpath of $CATALINA_HOME/bin/bootstrap.jar. You can also do catalina.sh run directly, if you want to see what it's doing. Make sure you do not have a CLASSPATH environment variable set to anything (this is critical), and that JAVA_HOME is set to the location of your JDK. (If you only have a JRE, set JRE_HOME instead.) Also insure that neither CATALINA_OPTS nor JAVA_OPTS are present for your initial testing. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: NoClassDefFoundError
Use JRE_HOME not JAVA_HOME. It should point to jre1.6.0.02 directory. If you are trying to access the site from the machine it is on try http://localhost:8080 , if you are trying to access it from a remote system across the network use http://###.###.###.###:8080 the machine actual IP address, 127.0.0.1 is a loopback address. -Original Message- From: Gaurav Pruthi [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2008 7:50 AM To: users@tomcat.apache.org Subject: NoClassDefFoundError Hi All, I had installed tomcat last year. Everything was find but yesterday i saw a strange error. Under examples, i can't execute even a single jsp script. I gets the following error. I don't have any CLASSPATH set. I m using Tomcat 6.0.14 JRE1.6.0.02 with mod_jk. On the web interface, i am using http://127.0.0.1:8080/ I tried using latest version of tomcat ie. 6.0.16 JRE1.6.06 but in vain and facing same issue. Can anybody guide me what could be the issue. I have already set JAVA_HOME CATALINA_HOME Here is the error: javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator Base.java:433) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2 86) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:84 4) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process( Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Unknown Source) *root cause* java.lang.NoClassDefFoundError: Could not initialize class org.apache.jasper.compiler.JspRuntimeContext org.apache.jasper.servlet.JspServlet.init(JspServlet.java:101) org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator Base.java:433) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2 86) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:84 4) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process( Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Unknown Source) Thanks, Gaurav Pruthi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: A few questions
In the Tomcat bin directory there should be two batch files startup.bat and shutdown.bat that should work fine unless you are running Tomcat as a service. If running as a service, use services to stop and start. Walter -Original Message- From: jan [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2008 5:53 AM To: Tomcat Users List Subject: A few questions The answer to these questions are quite possibly annoyingly obvious, but I haven't been able to find them in the User Guide. 1. What is the proper way of shutting down tomcat? I start it with what I have found in the user guide: export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.13 /u01/tomcat/apache-tomcat-5.5.26/bin/jsvc \ -Djava.endorsed.dirs=/u01/tomcat/apache-tomcat-5.5.26/common/endorsed \ -cp /u01/tomcat/apache-tomcat-5.5.26/bin/bootstrap.jar -outfile \ /u01/tomcat/apache-tomcat-5.5.26/logs/catalina.out -errfile \ /u01/tomcat/apache-tomcat-5.5.26/logs/catalina.err \ org.apache.catalina.startup.Bootstrap This works fine, but when I kill the process and try to restart, it won't - it complains: java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina Why does that happen? And how can I avoid it? 2. On the front page, when I get the server to run, there is a link to an administration package that I am supposed to download from somewhere. Is there a standard place to find these things? /jan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: A few questions
Then use startup.sh or shutdown.sh Walter -Original Message- From: Steve Ochani [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2008 10:44 AM To: Tomcat Users List Subject: RE: A few questions Date sent: Thu, 19 Jun 2008 10:30:15 -0500 From: Walter Thompson [EMAIL PROTECTED] Subject:RE: A few questions To: Tomcat Users List users@tomcat.apache.org Send reply to: Tomcat Users List users@tomcat.apache.org In the Tomcat bin directory there should be two batch files startup.bat and shutdown.bat that should work fine unless you are running Tomcat as a service. If running as a service, use services to stop and start. OP is not using Windows. -Steve O. Walter -Original Message- From: jan [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2008 5:53 AM To: Tomcat Users List Subject: A few questions The answer to these questions are quite possibly annoyingly obvious, but I haven't been able to find them in the User Guide. 1. What is the proper way of shutting down tomcat? I start it with what I have found in the user guide: export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.13 /u01/tomcat/apache-tomcat-5.5.26/bin/jsvc \ -Djava.endorsed.dirs=/u01/tomcat/apache-tomcat-5.5.26/common/endorse d \ -cp /u01/tomcat/apache-tomcat-5.5.26/bin/bootstrap.jar -outfile \ /u01/tomcat/apache-tomcat-5.5.26/logs/catalina.out -errfile \ /u01/tomcat/apache-tomcat-5.5.26/logs/catalina.err \ org.apache.catalina.startup.Bootstrap This works fine, but when I kill the process and try to restart, it won't - it complains: java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina Why does that happen? And how can I avoid it? 2. On the front page, when I get the server to run, there is a link to an administration package that I am supposed to download from somewhere. Is there a standard place to find these things? /jan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mapping tomcat to ip address behind router
Maybe your router doesn't recognize the IP address you are using. IP numbers usually are 0-255 and the end number in your IP address is 456? -Original Message- From: Johnny Kewl [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2008 11:08 PM To: Tomcat Users List Subject: Re: mapping tomcat to ip address behind router - Original Message - From: illusion [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, June 12, 2008 11:14 PM Subject: mapping tomcat to ip address behind router Hey, I want to set-up tomcat to serve http requests from behind a router. When there is a direct internet connection and no router, and the address property is added and port number is changed in server.xml as below in example 1, tomcat serves requests fine for http://99.153.32.456. When I set it up to run behind a router as show in example 2, with the router forwarding requests to 192.168.0.54 which is the computer behind the router with tomcat, it does not work for the url http://99.153.32.456. What is the correct way to set it tomcat behind a router? thanks in advance for your assistance Example 1 - no router - works Connector port=80 protocol=HTTP/1.1 connectionTimeout=2 address=99.153.32.456 redirectPort=8443 / !-- A Connector using the shared thread pool-- !-- Connector executor=tomcatThreadPool port=80 protocol=HTTP/1.1 address=99.153.32.456 connectionTimeout=2 redirectPort=8443 / -- Example 2 - behind router - does not work Connector port=80 protocol=HTTP/1.1 connectionTimeout=2 address=192.168.0.54 redirectPort=8443 / !-- A Connector using the shared thread pool-- !-- Connector executor=tomcatThreadPool port=80 protocol=HTTP/1.1 address=192.168.0.54 connectionTimeout=2 redirectPort=8443 / -- illusion, you have now probably screwed up the TC config... Reload the the standard TC config, and just change the 8080, to 80, dont touch other stuff for now. Then google, I think you have one of those ADSL Nat Router things Heres an article with someone else struggling along http://sanzon.wordpress.com/2008/04/04/setting-up-web-server-behind-rout er-wrt54g2/ Whats probably screwing you up is even though you have it forwarding, the IP's internally are being dynamicly assigned, you have to give the server a fixed IP, typically this is not the ISP IP, its the machine IP, and then you need to check the machine and make sure its using your router as the gateway. Its not really a TC thing, best thing is to look at the router name and google for it and web server. These little box's now a days have some amazing functionality, so you need to find the manual for the thing. You need to check the Dynamip DNS is not on, DHCP is not assinged to the server, the DNS discovery is set or on auto, the network masks are right etc. If your SP supplied the router, they should know how to set the thing up, dont mention tomcat, its got nothing to do with it, just tell em its a web server on a machine if that works, TC will work. And then learn to do things like ping a machine etc. Have fun --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat producing (near) duplicate Catalina logs
Check your server.xml config file for valves-logs settings. -Original Message- From: Lucas Campbell [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2008 9:33 AM To: users@tomcat.apache.org Subject: Tomcat producing (near) duplicate Catalina logs Recently we've discovered that our Tomcat server is producing near duplicate Catalina logs. I say near because sometimes the logs are exactly the same, then other times one version will have more information than the other (not constantly one having more than the other). We can't seem to figure out where they are being produced from or why they would be different. Here's a smattering of the logs so you can see what I'm talking about. The logs use both . and _, they're produced at the exact same times. -rw-r--r-- 1 tomcat6 nogroup 12675 2008-02-24 17:30 catalina_2008-02-24.log -rw-r--r-- 1 tomcat6 nogroup 15027 2008-02-24 17:30 catalina.2008-02-24.log -rw-r--r-- 1 tomcat6 nogroup9937 2008-03-04 15:46 catalina_2008-03-04.log -rw-r--r-- 1 tomcat6 nogroup9734 2008-03-04 15:46 catalina.2008-03-04.log -rw-r--r-- 1 tomcat6 nogroup1160 2008-03-05 15:08 catalina_2008-03-05.log -rw-r--r-- 1 tomcat6 nogroup1160 2008-03-05 15:08 catalina.2008-03-05.log -rw-r--r-- 1 tomcat6 nogroup7509 2008-03-06 17:36 catalina_2008-03-06.log -rw-r--r-- 1 tomcat6 nogroup7509 2008-03-06 17:36 catalina.2008-03-06.log -rw-r--r-- 1 tomcat6 nogroup5219 2008-06-12 10:50 catalina_2008-06-12.log -rw-r--r-- 1 tomcat6 nogroup5016 2008-06-12 10:50 catalina.2008-06-12.log All the information I was able to find seemed to be pointing at the log4j.properties file as far as logging settings. But none of the information in it seemed to be of any use, I'll post it here because it may be of more use to someone who knows what really might be going on. # # Enables debug output for Probe classes. # #log4j.logger.org.jstripe=DEBUG log4j.logger.org.springframework.web.context.support=ERROR log4j.logger.org.springframework.beans.factory.support=ERROR log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=${catalina.base}/logs/probe.log log4j.appender.R.MaxFileSize=5036KB log4j.appender.R.MaxBackupIndex=4 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%d{dd MMM HH:mm:ss} [%t] %-5p %c %x - %m%n I've searched and searched, but I seems as though no one has run into the problem that I'm having right now. If anyone has any idea why this would be occurring, or where it is being produced from it would be greatly appreciated. Thanks, Lucas - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Relative internal links
I am talking about servlet code and configuration file information and links in the htlm pages on the server under the root directory. -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2008 5:00 PM To: Tomcat Users List Subject: Re: Relative internal links You mention links like ../webapps/MCRCServlets/logs/MCRCServlets.log which implies these are presented in the browser, but then your talk about absolute paths like C:/www/ implying a local read of the file system. These don't normally go together. Could you clarify how you are using these paths (from browser or servlet code)? --David Walter Thompson wrote: I have run into an issue with Tomcat6. In Tomcat5 we were using links like ../webapps/MCRCServlets/logs/MCRCServlet.log in the Java Code. I copied all of the folders over from Tomcat5 to Tomcat6 so that they have the same directory structure: webapps root MCRCServlets Balancer In all of the Java Code for the servlets and config files I have had to put absolute paths in like C:/www/Tomcat6/MCRCSerlets/logs/MCRCServlet.log for it to find the files. Is there a configuration file that I can change to make the relative references work? What would the config code would I add? I have searched everywhere for an answer to this quest and found no answers. Thanks for any help anyone can offer! Walter Thompson Midland Certified Reagent Company 3112 W Cuthbert Avenue Midland, Texas 79701 432-694-7950 Ph 432-694-2387 Fx - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Relative internal links
I have run into an issue with Tomcat6. In Tomcat5 we were using links like ../webapps/MCRCServlets/logs/MCRCServlet.log in the Java Code. I copied all of the folders over from Tomcat5 to Tomcat6 so that they have the same directory structure: webapps root MCRCServlets Balancer In all of the Java Code for the servlets and config files I have had to put absolute paths in like C:/www/Tomcat6/MCRCSerlets/logs/MCRCServlet.log for it to find the files. Is there a configuration file that I can change to make the relative references work? What would the config code would I add? I have searched everywhere for an answer to this quest and found no answers. Thanks for any help anyone can offer! Walter Thompson Midland Certified Reagent Company 3112 W Cuthbert Avenue Midland, Texas 79701 432-694-7950 Ph 432-694-2387 Fx