You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Pratibha S <ps...@gmail.com> on 2011/08/26 00:03:41 UTC

Error starting Tomcat

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
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5103)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
... 17 more
Aug 25, 2011 6:00:35 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 215 ms
----------------------------------------

Re: Error starting Tomcat

Posted by Rudy Gireyev <rg...@gmail.com>.
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 <na...@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
>> 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
>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5103)
>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
>> ... 17 more
>> Aug 25, 2011 6:00:35 PM org.apache.catalina.startup.Catalina start
>> INFO: Server startup in 215 ms
>> ----------------------------------------
>>
>>
>
> --
> View this message in context: http://old.nabble.com/Error-starting-Tomcat-tp32338111p32461187.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Error starting Tomcat

Posted by NaveenShan <na...@yahoo.com>.
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
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5103)
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
> ... 17 more
> Aug 25, 2011 6:00:35 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 215 ms
> ----------------------------------------
> 
> 

-- 
View this message in context: http://old.nabble.com/Error-starting-Tomcat-tp32338111p32461187.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Error starting Tomcat

Posted by NaveenShan <na...@yahoo.com>.
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
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5103)
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
> ... 17 more
> Aug 25, 2011 6:00:35 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 215 ms
> ----------------------------------------
> 
> 

-- 
View this message in context: http://old.nabble.com/Error-starting-Tomcat-tp32338111p32461189.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Error starting Tomcat

Posted by Pratibha S <ps...@gmail.com>.
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
<kn...@gmail.com>wrote:

> 2011/8/26 Pratibha S <ps...@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-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Error starting Tomcat

Posted by Pid <pi...@pidster.com>.
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


RE: Error starting Tomcat

Posted by Ch...@emc.com.

> 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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Error starting Tomcat

Posted by ramsri <ra...@yahoo.com>.
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Error starting Tomcat

Posted by Konstantin Kolinko <kn...@gmail.com>.
2011/8/26 Pratibha S <ps...@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Error starting Tomcat

Posted by Pratibha S <ps...@gmail.com>.
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
<kn...@gmail.com>wrote:

> 2011/8/26 Pratibha S <ps...@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-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Error starting Tomcat

Posted by Konstantin Kolinko <kn...@gmail.com>.
2011/8/26 Pratibha S <ps...@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org