1 Reply Latest reply: Jan 8, 2014 12:44 AM by gimbal2 RSS

Tomcat is no more able to start

piratolo Newbie
Currently Being Moderated

Hi,

since this morning Tomcat is not working anymore; it worked for months and suddenly today, without editing any jsp page/class or modifying anything on Tomcat or Eclipse it stops working.

I tried to understand what happened but i couldn't. I even deleted all my projects inside Eclipse, thinking that the fault was of one of them, but i keep getting the same errors and i'm not able to understand what they mean.


I hope someone can help me, i can't understand what's wrong.

 

These are my environment/system variables (dunno exactly how they are called in english)
CATALINA_HOME C:\Program Files\Apache Software Foundation\Tomcat 7.0
JAVA_HOME C:\Program Files\Java\jre7
classpath .;C:\Program Files\Java\jdk1.7.0_02\lib;C:\Program Files\Apache Software Foundation\Tomcat 7.0\lib\servlet-api.jar


and the variale PATH for my user

PATH ;%CATALINA_HOME%\bin;



 

These are the errors i get when i try to start Tomcat

 

gen 07, 2014 3:08:53 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: C:\Program Files\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files (x86)/Java/jre6/bin/client;C:/Program Files (x86)/Java/jre6/bin;C:/Program Files (x86)/Java/jre6/lib/i386;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Toshiba\Bluetooth Toshiba Stack\sys\;C:\Program Files (x86)\Toshiba\Bluetooth Toshiba Stack\sys\x64\;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter\Driver;.;C:\Program Files\Java\jdk1.7.0_02\bin;C:\Program Files (x86)\Calibre2\;;C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin;;C:\Users\matteo.depasquali\Desktop\eclipse;;.

gen 07, 2014 3:08:53 PM org.apache.tomcat.util.digester.SetPropertiesRule begin

WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:prova' did not find a matching property.

gen 07, 2014 3:08:53 PM org.apache.coyote.AbstractProtocol init

INFO: Initializing ProtocolHandler ["http-bio-8080"]

gen 07, 2014 3:08:53 PM org.apache.coyote.AbstractProtocol init

INFO: Initializing ProtocolHandler ["ajp-bio-8009"]

gen 07, 2014 3:08:53 PM org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 931 ms

gen 07, 2014 3:08:53 PM org.apache.catalina.core.StandardService startInternal

INFO: Starting service Catalina

gen 07, 2014 3:08:53 PM org.apache.catalina.core.StandardEngine startInternal

INFO: Starting Servlet Engine: Apache Tomcat/7.0.42

gen 07, 2014 3:08:54 PM org.apache.catalina.core.ContainerBase startInternal

SEVERE: A child container failed during start

java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]

    at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)

    at java.util.concurrent.FutureTask.get(Unknown Source)

    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)

    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)

    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)

    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

    at java.util.concurrent.FutureTask.run(Unknown Source)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

    at java.lang.Thread.run(Unknown Source)

Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)

    ... 7 more

Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getSessionCookieConfig()Ljavax/servlet/SessionCookieConfig;

    at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1374)

    at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1346)

    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:878)

    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:376)

    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:5322)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

    ... 7 more

 

gen 07, 2014 3:08:54 PM org.apache.catalina.core.ContainerBase startInternal

SEVERE: A child container failed during start

java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/prova]]

    at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)

    at java.util.concurrent.FutureTask.get(Unknown Source)

    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)

    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)

    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)

    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

    at java.util.concurrent.FutureTask.run(Unknown Source)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

    at java.lang.Thread.run(Unknown Source)

Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/prova]]

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)

    ... 7 more

Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getSessionCookieConfig()Ljavax/servlet/SessionCookieConfig;

    at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1374)

    at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1346)

    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:878)

    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:376)

    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:5322)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

    ... 7 more

 

gen 07, 2014 3:08:54 PM org.apache.catalina.core.ContainerBase startInternal

SEVERE: A child container failed during start

java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]

    at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)

    at java.util.concurrent.FutureTask.get(Unknown Source)

    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)

    at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

    at org.apache.catalina.startup.Catalina.start(Catalina.java:691)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

    at java.lang.reflect.Method.invoke(Unknown Source)

    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)

    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:456)

Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)

    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)

    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)

    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

    at java.util.concurrent.FutureTask.run(Unknown Source)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

    at java.lang.Thread.run(Unknown Source)

Caused by: org.apache.catalina.LifecycleException: A child container failed during start

    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)

    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

    ... 7 more

 

gen 07, 2014 3:08:54 PM org.apache.catalina.startup.Catalina start

SEVERE: The required Server component failed to start so Tomcat is unable to start.

org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)

    at org.apache.catalina.startup.Catalina.start(Catalina.java:691)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

    at java.lang.reflect.Method.invoke(Unknown Source)

    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)

    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:456)

Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)

    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

    ... 7 more

Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)

    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

    ... 9 more

Caused by: org.apache.catalina.LifecycleException: A child container failed during start

    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)

    at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

    ... 11 more

 

gen 07, 2014 3:08:54 PM org.apache.coyote.AbstractProtocol pause

INFO: Pausing ProtocolHandler ["http-bio-8080"]

gen 07, 2014 3:08:54 PM org.apache.coyote.AbstractProtocol pause

INFO: Pausing ProtocolHandler ["ajp-bio-8009"]

gen 07, 2014 3:08:54 PM org.apache.catalina.core.StandardService stopInternal

INFO: Stopping service Catalina

gen 07, 2014 3:08:54 PM org.apache.coyote.AbstractProtocol destroy

INFO: Destroying ProtocolHandler ["http-bio-8080"]

gen 07, 2014 3:08:54 PM org.apache.coyote.AbstractProtocol destroy

INFO: Destroying ProtocolHandler ["ajp-bio-8009"]

  • 1. Re: Tomcat is no more able to start
    gimbal2 Guru
    Currently Being Moderated

    SOMETHING changed. You can't take the easy way out and pretend this is an act of some divine force; somebody did something to break the Tomcat installation. You'll have to figure out what was done, and repair the damage. Methods in core APIs don't just go missing, you'd have to screw up the server's classpath with manual meddling in its libraries somehow.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points