Re: Error starting tomcat 9.0.7 from Eclipse
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Charles, On 4/24/18 2:48 AM, charles Andrews wrote: > Hi > > I am having problems starting Tomcat 9.0.7 from Eclipse version > Oxygen.3a Release (4.7.3a). Tomcat will start from the command > line but not from within Eclipse. I get the following error: > > Could not create the Java Virtual Machine > > The console log in Eclipse contains: > > -Djava.endorsed.dirs=C:\Program Files\Apache Software > Foundation\apache-tomcat-9.0.7\endorsed is not supported. Endorsed > standards and standalone APIs in modular form will be supported via > the concept of upgradeable modules. > > Can anyone help me with this? I seem to remember someone on SO saying that Eclipse had an update that provides the necessary changes to support Tomcat 9. I dunno if it's available yet though. - -chris -BEGIN PGP SIGNATURE- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlrfMmkACgkQHPApP6U8 pFisOA//Q6V09hUy4k48IyJOjx7pA4JXZVEMRl1SSErgHE5zGDRUvZo0pyrsqGjV gd3wneCMfou1l0jUmDdBqHJWfcAZDBymmN3xjHl+71n0HesszH8QRJMiRUj/6Be7 EjeMG4OWNIHCLRZhSd++w542zn92b19BA4yHPWGv8C8HXa836pSxpmF7s1gF/KM0 M8zK+GJn72XjWzwxVMlssVr32AtyaLeuKwWNYpbbR3BvnoGV3IEHykbB8MZFHQHt 0ZnJ7p9b/ihS19TxowFWAS5h2ruAJMUsa/Z3rKsDhZMYyWZnPc4HgZPtOJlbINfV 70w9lEmxWllBMAdrn+705pCiWm+MApml7RGdehFafDSVEpbFG1rBFe8pdBAodWW7 PjPYnIv4QqcAPpcw0uoqkP9UAiFWpD9UvYPZuomgnYQ56EQzsa06yGZCT7nThkSV zU537w+Pbw6F7MCtEChfFvJAFlZNwPISaob7xP7ExvxVX6SgyQ7bbf0zGpfcJc1N h/l70Odgr9S8DGDL7oY/QOxOif+PpTGXZi//imUek0UFDYVY0V2SZe0DQ0jPNg5D 5mm+CMCZtYx/en+C0Nj2wUSm1+OWCBViCmn2Z6w36/LVmBqpgLdbS17N7BZoWDKY 92zBsraMNUMbTBlHHOf1GPTn2AawFSo/0RAlYY0n0vjvjSfXGLg= =Hp0v -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Error starting tomcat 9.0.7 from Eclipse
On 24/04/18 07:48, charles Andrews wrote: > Hi > > I am having problems starting Tomcat 9.0.7 from Eclipse version > Oxygen.3a Release (4.7.3a). Tomcat will start from the command line > but not from within Eclipse. I get the following error: > > Could not create the Java Virtual Machine > > The console log in Eclipse contains: > > -Djava.endorsed.dirs=C:\Program Files\Apache Software > Foundation\apache-tomcat-9.0.7\endorsed is not supported. Endorsed > standards and standalone APIs > in modular form will be supported via the concept of upgradeable modules. > > Can anyone help me with this? That is a question for the Eclipse folks. It looks like Eclipse's integration for Apache Tomcat needs an update for Java 9. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Error starting Tomcat
Konstantin: I am very glad that I found this thread. For a week I have been struggling with this problem. I have Tomcat7 running. My application which was running just fine under Tomcat5 does not run under Tomcat7. I have created setupclasspath.sh with all the necessary JARs. My Tomcat starts fine and I see the opening page. Even my Axis comes up ok but not my application. I start Tomcat with ./startup.sh and I do not use Eclipse. The message that I get is *** Oct 20, 2011 3:04:03 PM org.apache.catalina.core.ContainerBase addChildInternal SEVERE: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/mywebapp]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:812) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1055) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:978) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1329) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) *** I tried reading this thread but I cannot understand what exactly I should do in my setup. I see only one /opt/tomcat7/lib/servlet-api.jar and this file is inside my CLASSPATH. Your help is greatly appreciated. Thank you. -- View this message in context: http://old.nabble.com/Error-starting-Tomcat-tp32338111p32691794.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Error starting Tomcat
I have Tomcat7 running. My application which was running just fine under Tomcat5 does not run under Tomcat7. I have created setupclasspath.sh with all the necessary JARs. My Tomcat starts fine and I see the opening page. Even my Axis comes up ok but not my application. I start Tomcat with ./startup.sh and I do not use Eclipse. The message that I get is *** Oct 20, 2011 3:04:03 PM org.apache.catalina.core.ContainerBase addChildInternal SEVERE: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component Sounds like there may have been some configuration changes to the various xml files that pertain to your app, between versions 5 and 7 I mean. Did you change any of the server.xml, and friends, when migrating? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Error starting Tomcat
On 20/10/2011 20:16, ramsri wrote: Konstantin: I am very glad that I found this thread. For a week I have been struggling with this problem. If this is a new problem, please start a new thread. I have Tomcat7 running. My application which was running just fine under Tomcat5 does not run under Tomcat7. I have created setupclasspath.sh with all the necessary JARs. That's not likely to help matters, don't do that. My Tomcat starts fine and I see the opening page. Even my Axis comes up ok but not my application. I start Tomcat with ./startup.sh and I do not use Eclipse. The message that I get is *** Oct 20, 2011 3:04:03 PM org.apache.catalina.core.ContainerBase addChildInternal SEVERE: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/mywebapp]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:812) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1055) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:978) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1329) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) *** I tried reading this thread but I cannot understand what exactly I should do in my setup. I see only one /opt/tomcat7/lib/servlet-api.jar and this file is inside my CLASSPATH. Your help is greatly appreciated. Thank you. Please start a new thread. p signature.asc Description: OpenPGP digital signature
Re: Error starting Tomcat
Can anyone please help in this.. I am also facing the same error.. Regards Naveen Pratibha S wrote: Hi, I'm a newbie. I'm unable to start Tomcat from Eclipse Indigo and getting the error below. I checked forums and found that I need to remove servlet.api from CLASSPATH. I removed the entry in the Libraries and also tried removing the file from tomcat/lib. Now, Eclipse is not recognizing javax.servlet.annotation and some other servlet classes. Please help. Aug 25, 2011 6:00:34 PM 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: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/server:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/jvm/java-6-openjdk/jre/../lib/i386:/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk/jre/lib/i386::/usr/java/packages/lib/i386:/usr/lib/i386-linux-gnu/jni:/lib/i386-linux-gnu:/usr/lib/i386-linux-gnu:/usr/lib/jni:/lib:/usr/lib Aug 25, 2011 6:00:34 PM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:RecommendationApp' did not find a matching property. Aug 25, 2011 6:00:35 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [http-bio-8080] Aug 25, 2011 6:00:35 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [ajp-bio-8009] Aug 25, 2011 6:00:35 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1634 ms Aug 25, 2011 6:00:35 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Aug 25, 2011 6:00:35 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.20 Aug 25, 2011 6:00:35 PM org.apache.catalina.startup.Catalina start SEVERE: Catalina.start: org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.startup.Catalina.start(Catalina.java:621) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) ... 7 more Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) ... 9 more Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) ... 11 more Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) ... 14 more Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getSessionCookieConfig()Ljavax/servlet/SessionCookieConfig; at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1308) at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1390) at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:896) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:322) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at
Re: Error starting Tomcat
Can anyone please help in this.. I am also facing the same error.. Regards Naveen Pratibha S wrote: Hi, I'm a newbie. I'm unable to start Tomcat from Eclipse Indigo and getting the error below. I checked forums and found that I need to remove servlet.api from CLASSPATH. I removed the entry in the Libraries and also tried removing the file from tomcat/lib. Now, Eclipse is not recognizing javax.servlet.annotation and some other servlet classes. Please help. Aug 25, 2011 6:00:34 PM 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: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/server:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/jvm/java-6-openjdk/jre/../lib/i386:/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk/jre/lib/i386::/usr/java/packages/lib/i386:/usr/lib/i386-linux-gnu/jni:/lib/i386-linux-gnu:/usr/lib/i386-linux-gnu:/usr/lib/jni:/lib:/usr/lib Aug 25, 2011 6:00:34 PM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:RecommendationApp' did not find a matching property. Aug 25, 2011 6:00:35 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [http-bio-8080] Aug 25, 2011 6:00:35 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [ajp-bio-8009] Aug 25, 2011 6:00:35 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1634 ms Aug 25, 2011 6:00:35 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Aug 25, 2011 6:00:35 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.20 Aug 25, 2011 6:00:35 PM org.apache.catalina.startup.Catalina start SEVERE: Catalina.start: org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.startup.Catalina.start(Catalina.java:621) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) ... 7 more Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) ... 9 more Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) ... 11 more Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) ... 14 more Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getSessionCookieConfig()Ljavax/servlet/SessionCookieConfig; at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1308) at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1390) at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:896) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:322) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at
Re: Error starting Tomcat
In Eclipse, you do not run Tomcat on its own. It is configured as a Server within Eclipse and then all of your programs that use Tomcat will run within that Server. 1. To create a Server. Click File - New - Other and then expand the Server category and select Server. Go through the wizard which will ask you for the installation directory of your Tomcat, so that it can find the libraries. 2. Now you create and code your Dynamic Web Projects that will contain Servlets within them. When you run these Eclipse will ask you which Server you want to associate them with. Once you make the association Eclipse will start and stop Tomcat automatically as you start and stop your application. See Eclipse documentation for more. HTH Rudy On Tue, Sep 13, 2011 at 11:31 PM, NaveenShan naveens...@yahoo.com wrote: Can anyone please help in this.. I am also facing the same error.. Regards Naveen Pratibha S wrote: Hi, I'm a newbie. I'm unable to start Tomcat from Eclipse Indigo and getting the error below. I checked forums and found that I need to remove servlet.api from CLASSPATH. I removed the entry in the Libraries and also tried removing the file from tomcat/lib. Now, Eclipse is not recognizing javax.servlet.annotation and some other servlet classes. Please help. Aug 25, 2011 6:00:34 PM 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: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/server:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/jvm/java-6-openjdk/jre/../lib/i386:/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk/jre/lib/i386::/usr/java/packages/lib/i386:/usr/lib/i386-linux-gnu/jni:/lib/i386-linux-gnu:/usr/lib/i386-linux-gnu:/usr/lib/jni:/lib:/usr/lib Aug 25, 2011 6:00:34 PM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:RecommendationApp' did not find a matching property. Aug 25, 2011 6:00:35 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [http-bio-8080] Aug 25, 2011 6:00:35 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [ajp-bio-8009] Aug 25, 2011 6:00:35 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1634 ms Aug 25, 2011 6:00:35 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Aug 25, 2011 6:00:35 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.20 Aug 25, 2011 6:00:35 PM org.apache.catalina.startup.Catalina start SEVERE: Catalina.start: org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.startup.Catalina.start(Catalina.java:621) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) ... 7 more Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) ... 9 more Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) ... 11 more Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033) at
Re: Error starting Tomcat
2011/8/26 Pratibha S psund...@gmail.com: Hi Konstantin Kolinko, thank you for the reply. Did you mean tomcat/webapps/examples/WEB-INF/lib? No. Do not touch Tomcat installation and return it to its original state. There is no servlet-api.jar there. Please correct me if I got it wrong. You have to start from scratch and describe what exact error it was, before you broke your Tomcat installation, and how your project is configured. You should not have servlet-api.jar in your own project - it should be only a part of Apache Tomcat runtime. It should not be in WebContent/WEB-INF/lib. There is a FAQ on Eclipse + Tomcat somewhere. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Error starting Tomcat
Hi Konstantin Kolinko, I had copied servlet-api.jar into the tomcat/lib directory while adding external jars. Now I have removed that jar file and any other jar files I have added extra from the tomcat/lib folder. Now, the server is starting. Thank you for the help. Regards, Pratibha On Fri, Aug 26, 2011 at 7:06 AM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2011/8/26 Pratibha S psund...@gmail.com: Hi Konstantin Kolinko, thank you for the reply. Did you mean tomcat/webapps/examples/WEB-INF/lib? No. Do not touch Tomcat installation and return it to its original state. There is no servlet-api.jar there. Please correct me if I got it wrong. You have to start from scratch and describe what exact error it was, before you broke your Tomcat installation, and how your project is configured. You should not have servlet-api.jar in your own project - it should be only a part of Apache Tomcat runtime. It should not be in WebContent/WEB-INF/lib. There is a FAQ on Eclipse + Tomcat somewhere. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Error starting Tomcat
2011/8/26 Pratibha S psund...@gmail.com: Hi, I'm a newbie. I'm unable to start Tomcat from Eclipse Indigo and getting the error below. I checked forums and found that I need to remove servlet.api from CLASSPATH. I removed the entry in the Libraries and also tried removing the file from tomcat/lib. Now, Eclipse is not recognizing javax.servlet.annotation and some other servlet classes. Please help. No. You have to remove it from WEB-INF/lib only. Put it back in all other places. Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getSessionCookieConfig()Ljavax/servlet/SessionCookieConfig; at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1308) Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Error starting Tomcat
Hi Konstantin Kolinko, thank you for the reply. Did you mean tomcat/webapps/examples/WEB-INF/lib? There is no servlet-api.jar there. Please correct me if I got it wrong. Regards, Pratibha On Thu, Aug 25, 2011 at 6:38 PM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2011/8/26 Pratibha S psund...@gmail.com: Hi, I'm a newbie. I'm unable to start Tomcat from Eclipse Indigo and getting the error below. I checked forums and found that I need to remove servlet.api from CLASSPATH. I removed the entry in the Libraries and also tried removing the file from tomcat/lib. Now, Eclipse is not recognizing javax.servlet.annotation and some other servlet classes. Please help. No. You have to remove it from WEB-INF/lib only. Put it back in all other places. Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getSessionCookieConfig()Ljavax/servlet/SessionCookieConfig; at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1308) Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Error starting Tomcat 5.5 as a Windows service
Daniel, Thanks for the suggestion. That did the trick. The Tomcat application is now running as a windows service and everything is working. Odd situation though since I always thought that environment variables were recognized immediately (except for previously opened command windows). Lesson learned :). Thanks, Tony Fountain Benefit Concepts, Inc. (419) 244-9936 x9010 -Original Message- From: Daniel Stephens [mailto:[EMAIL PROTECTED] Sent: Thursday, July 05, 2007 4:32 PM To: Tomcat Users List Subject: Re: Error starting Tomcat 5.5 as a Windows service Make sure you have CATALINA_HOME pointed to your tomcat instance. make sure your java home is correct.. It sounds like it can't find the java home.. You did boot after the install right? If you added that environment variable to the system section, you'll need to boot to pick it up or open a new cmd prompt to re-read the environment. On 7/5/07, Tony Fountain [EMAIL PROTECTED] wrote: Hi, I am attempting to install Tomcat 5.5.23 as a Windows service on a Windows 2003 Server box. The steps I went through are as follows * Installed the JDK 1.5 Update 12 * Manually added the environment variable JAVA_HOME to C:\Program Files\Java\jdk1.5.0_12 (as a system variable, not user level) * Ran the windows installer package and selected the full install option. At this point I expected to be able to test the service can start and serve requests using examples installed with the installation but I am unable to. Anytime I try to start the Windows service the following error is logged: [2007-07-05 15:53:54] [1276 prunsrv.c] [debug] Procrun log initialized [2007-07-05 15:53:54] [info] Running Service... [2007-07-05 15:53:54] [1098 prunsrv.c] [debug] Inside ServiceMain... [2007-07-05 15:53:54] [info] Starting service... [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[0] -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.5 [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[1] -Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 5.5 [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[2] -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\endorsed [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[3] -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 5.5\temp [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[4] -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[5] -Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\logging.properties [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[6] -Djava.class.path=C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\bootstrap.jar [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[7] vfprintf [2007-07-05 15:53:54] [info] Error occurred during initialization of VM [2007-07-05 15:53:54] [info] java/lang/NoClassDefFoundError [2007-07-05 15:53:54] [info] : java/lang/Object I'm assuming it's a class path issue but being new to the world of Java, I'm not sure what could be missing out of a basic installation. I have performed some Google searches and even searched through some of the archives but was unable to find anything specific to this situation. Any pointers or a push in the right direction would be greatly appreciated. FYI - Even at the Windows command prompt, if I type java -version I receive this error: Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object Same error, different cause so I'm not completely sure if this is even related to the Tomcat installation, rather possibly some odd situation that was encountered when the JDK was installed. Thanks, Tony This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.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]
Re: Error starting Tomcat 5.5 as a Windows service
Excellent! Glad to hear it worked out. On 7/6/07, Tony Fountain [EMAIL PROTECTED] wrote: Daniel, Thanks for the suggestion. That did the trick. The Tomcat application is now running as a windows service and everything is working. Odd situation though since I always thought that environment variables were recognized immediately (except for previously opened command windows). Lesson learned :). Thanks, Tony Fountain Benefit Concepts, Inc. (419) 244-9936 x9010 -Original Message- From: Daniel Stephens [mailto:[EMAIL PROTECTED] Sent: Thursday, July 05, 2007 4:32 PM To: Tomcat Users List Subject: Re: Error starting Tomcat 5.5 as a Windows service Make sure you have CATALINA_HOME pointed to your tomcat instance. make sure your java home is correct.. It sounds like it can't find the java home.. You did boot after the install right? If you added that environment variable to the system section, you'll need to boot to pick it up or open a new cmd prompt to re-read the environment. On 7/5/07, Tony Fountain [EMAIL PROTECTED] wrote: Hi, I am attempting to install Tomcat 5.5.23 as a Windows service on a Windows 2003 Server box. The steps I went through are as follows * Installed the JDK 1.5 Update 12 * Manually added the environment variable JAVA_HOME to C:\Program Files\Java\jdk1.5.0_12 (as a system variable, not user level) * Ran the windows installer package and selected the full install option. At this point I expected to be able to test the service can start and serve requests using examples installed with the installation but I am unable to. Anytime I try to start the Windows service the following error is logged: [2007-07-05 15:53:54] [1276 prunsrv.c] [debug] Procrun log initialized [2007-07-05 15:53:54] [info] Running Service... [2007-07-05 15:53:54] [1098 prunsrv.c] [debug] Inside ServiceMain... [2007-07-05 15:53:54] [info] Starting service... [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[0] -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.5 [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[1] -Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 5.5 [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[2] -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\endorsed [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[3] -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 5.5\temp [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[4] -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[5] -Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\logging.properties [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[6] -Djava.class.path=C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\bootstrap.jar [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[7] vfprintf [2007-07-05 15:53:54] [info] Error occurred during initialization of VM [2007-07-05 15:53:54] [info] java/lang/NoClassDefFoundError [2007-07-05 15:53:54] [info] : java/lang/Object I'm assuming it's a class path issue but being new to the world of Java, I'm not sure what could be missing out of a basic installation. I have performed some Google searches and even searched through some of the archives but was unable to find anything specific to this situation. Any pointers or a push in the right direction would be greatly appreciated. FYI - Even at the Windows command prompt, if I type java -version I receive this error: Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object Same error, different cause so I'm not completely sure if this is even related to the Tomcat installation, rather possibly some odd situation that was encountered when the JDK was installed. Thanks, Tony This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.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]
Re: Error starting Tomcat 5.5 as a Windows service
Make sure you have CATALINA_HOME pointed to your tomcat instance. make sure your java home is correct.. It sounds like it can't find the java home.. You did boot after the install right? If you added that environment variable to the system section, you'll need to boot to pick it up or open a new cmd prompt to re-read the environment. On 7/5/07, Tony Fountain [EMAIL PROTECTED] wrote: Hi, I am attempting to install Tomcat 5.5.23 as a Windows service on a Windows 2003 Server box. The steps I went through are as follows * Installed the JDK 1.5 Update 12 * Manually added the environment variable JAVA_HOME to C:\Program Files\Java\jdk1.5.0_12 (as a system variable, not user level) * Ran the windows installer package and selected the full install option. At this point I expected to be able to test the service can start and serve requests using examples installed with the installation but I am unable to. Anytime I try to start the Windows service the following error is logged: [2007-07-05 15:53:54] [1276 prunsrv.c] [debug] Procrun log initialized [2007-07-05 15:53:54] [info] Running Service... [2007-07-05 15:53:54] [1098 prunsrv.c] [debug] Inside ServiceMain... [2007-07-05 15:53:54] [info] Starting service... [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[0] -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.5 [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[1] -Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 5.5 [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[2] -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\endorsed [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[3] -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 5.5\temp [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[4] -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[5] -Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\logging.properties [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[6] -Djava.class.path=C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\bootstrap.jar [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[7] vfprintf [2007-07-05 15:53:54] [info] Error occurred during initialization of VM [2007-07-05 15:53:54] [info] java/lang/NoClassDefFoundError [2007-07-05 15:53:54] [info] : java/lang/Object I'm assuming it's a class path issue but being new to the world of Java, I'm not sure what could be missing out of a basic installation. I have performed some Google searches and even searched through some of the archives but was unable to find anything specific to this situation. Any pointers or a push in the right direction would be greatly appreciated. FYI - Even at the Windows command prompt, if I type java -version I receive this error: Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object Same error, different cause so I'm not completely sure if this is even related to the Tomcat installation, rather possibly some odd situation that was encountered when the JDK was installed. Thanks, Tony
Re: Error starting Tomcat 5.5 as a Windows service
java.lang.Object is the core ancestor of all java classes. Given it's pretty much available by default regardless of classpath or anything else I suspect your JVM install is messed up in some manner. Try reinstalling your JVM and start tomcat again. --David Tony Fountain wrote: Hi, I am attempting to install Tomcat 5.5.23 as a Windows service on a Windows 2003 Server box. The steps I went through are as follows * Installed the JDK 1.5 Update 12 * Manually added the environment variable JAVA_HOME to C:\Program Files\Java\jdk1.5.0_12 (as a system variable, not user level) * Ran the windows installer package and selected the full install option. At this point I expected to be able to test the service can start and serve requests using examples installed with the installation but I am unable to. Anytime I try to start the Windows service the following error is logged: [2007-07-05 15:53:54] [1276 prunsrv.c] [debug] Procrun log initialized [2007-07-05 15:53:54] [info] Running Service... [2007-07-05 15:53:54] [1098 prunsrv.c] [debug] Inside ServiceMain... [2007-07-05 15:53:54] [info] Starting service... [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[0] -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.5 [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[1] -Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 5.5 [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[2] -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\endorsed [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[3] -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 5.5\temp [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[4] -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[5] -Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\logging.properties [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[6] -Djava.class.path=C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\bootstrap.jar [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[7] vfprintf [2007-07-05 15:53:54] [info] Error occurred during initialization of VM [2007-07-05 15:53:54] [info] java/lang/NoClassDefFoundError [2007-07-05 15:53:54] [info] : java/lang/Object I'm assuming it's a class path issue but being new to the world of Java, I'm not sure what could be missing out of a basic installation. I have performed some Google searches and even searched through some of the archives but was unable to find anything specific to this situation. Any pointers or a push in the right direction would be greatly appreciated. FYI - Even at the Windows command prompt, if I type java -version I receive this error: Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object Same error, different cause so I'm not completely sure if this is even related to the Tomcat installation, rather possibly some odd situation that was encountered when the JDK was installed. Thanks, Tony - 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: Error starting Tomcat 5.5 as a Windows service
Tony, We had the same issue recently. Copying msvcr71.dll into the $CATALINA_HOME/bin directory fixed the issue... Here's a thread with more background: http://forum.java.sun.com/thread.jspa?threadID=5121172 Hope this helps! -randy Randy Bumgardner Software Engineer 1400 Marina Way South Richmond, CA 94804 +1 510.621.5010 direct +1 510.402.8750 cell [EMAIL PROTECTED] www.inovis.com -Original Message- From: Tony Fountain [mailto:[EMAIL PROTECTED] Sent: Thursday, July 05, 2007 1:14 PM To: users@tomcat.apache.org Subject: Error starting Tomcat 5.5 as a Windows service Hi, I am attempting to install Tomcat 5.5.23 as a Windows service on a Windows 2003 Server box. The steps I went through are as follows * Installed the JDK 1.5 Update 12 * Manually added the environment variable JAVA_HOME to C:\Program Files\Java\jdk1.5.0_12 (as a system variable, not user level) * Ran the windows installer package and selected the full install option. At this point I expected to be able to test the service can start and serve requests using examples installed with the installation but I am unable to. Anytime I try to start the Windows service the following error is logged: [2007-07-05 15:53:54] [1276 prunsrv.c] [debug] Procrun log initialized [2007-07-05 15:53:54] [info] Running Service... [2007-07-05 15:53:54] [1098 prunsrv.c] [debug] Inside ServiceMain... [2007-07-05 15:53:54] [info] Starting service... [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[0] -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.5 [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[1] -Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 5.5 [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[2] -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\endorsed [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[3] -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 5.5\temp [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[4] -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[5] -Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\logging.properties [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[6] -Djava.class.path=C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\bootstrap.jar [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[7] vfprintf [2007-07-05 15:53:54] [info] Error occurred during initialization of VM [2007-07-05 15:53:54] [info] java/lang/NoClassDefFoundError [2007-07-05 15:53:54] [info] : java/lang/Object I'm assuming it's a class path issue but being new to the world of Java, I'm not sure what could be missing out of a basic installation. I have performed some Google searches and even searched through some of the archives but was unable to find anything specific to this situation. Any pointers or a push in the right direction would be greatly appreciated. FYI - Even at the Windows command prompt, if I type java -version I receive this error: Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object Same error, different cause so I'm not completely sure if this is even related to the Tomcat installation, rather possibly some odd situation that was encountered when the JDK was installed. Thanks, Tony - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]