2011-11-16 15 views
5

Ayer Tomcat estaba funcionando bien, pero hoy, cuando intento ejecutar mi aplicación web, recibo una gran cantidad de errores y Tomcat no se inicia.errores de despliegue de tomcat y netbeans

No cambié nada, así que no tengo idea de por qué sucede esto.

A continuación, encontrará una lista de lo que obtendré. ¿Puedes ayudarme a resolver esto?

Using CATALINA_BASE: "C:\apache" 
Using CATALINA_HOME: "C:\apache" 
Using CATALINA_TMPDIR: "C:\apache\temp" 
Using JRE_HOME:  "C:\Program Files\Java\jdk1.6.0_29" 
Using CLASSPATH:  "C:\apache\bin\bootstrap.jar;C:\apache\bin\tomcat-juli.jar" 
16 Νοε 2011 4:02:13 μμ org.apache.catalina.core.AprLifecycleListener init 
INFO: Loaded APR based Apache Tomcat Native library 1.1.22. 
16 Νοε 2011 4:02:13 μμ org.apache.catalina.core.AprLifecycleListener init 
INFO: APR capabilities: IPv6 [false], sendfile [true], accept filters [false], random [true]. 
16 Νοε 2011 4:02:14 μμ org.apache.coyote.AbstractProtocol init 
INFO: Initializing ProtocolHandler ["http-apr-8080"] 
16 Νοε 2011 4:02:14 μμ org.apache.coyote.AbstractProtocol init 
INFO: Initializing ProtocolHandler ["ajp-apr-8009"] 
16 Νοε 2011 4:02:14 μμ org.apache.catalina.startup.Catalina load 
INFO: Initialization processed in 1509 ms 
16 Νοε 2011 4:02:14 μμ org.apache.catalina.core.StandardService startInternal 
INFO: Starting service Catalina 
16 Νοε 2011 4:02:14 μμ org.apache.catalina.core.StandardEngine startInternal 
INFO: Starting Servlet Engine: Apache Tomcat/7.0.22 
16 Νοε 2011 4:02:14 μμ org.apache.catalina.startup.HostConfig deployDirectory 
INFO: Deploying web application directory docs 
16 Νοε 2011 4:02:15 μμ org.apache.catalina.core.ContainerBase addChildInternal 
SEVERE: ContainerBase.addChild: start: 
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/docs]] 
    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) 
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) 
    at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:389) 
    at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:334) 
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1041) 
    morelines..... 
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450) 
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:1343) 
    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) 
    ... 29 more 
16 Νοε 2011 4:02:15 μμ org.apache.catalina.startup.HostConfig deployDirectory 
SEVERE: Error deploying web application directory docs 
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/docs]] 
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:816) 
    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) 
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) 
    at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:389) 
    at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:334) 
    morelines..... 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
    at java.lang.reflect.Method.invoke(Method.java:597) 
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322) 
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450) 
16 Νοε 2011 4:02:15 μμ org.apache.catalina.startup.HostConfig deployDirectory 
INFO: Deploying web application directory examples 
16 Νοε 2011 4:02:16 μμ org.apache.catalina.core.ContainerBase addChildInternal 
SEVERE: ContainerBase.addChild: start: 
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/examples]] 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) 
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:812) 
    some more lines... 
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) 
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) 
    at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:389) 
    at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:334) 
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1041) 
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) 
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033) 
    at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291) 
    morelines.. 
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450) 
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:1343) 
    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) 
    ... 29 more 
16 Νοε 2011 4:02:16 μμ org.apache.catalina.startup.HostConfig deployDirectory 
SEVERE: Error deploying web application directory examples 
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/examples]] 
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:816) 
    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) 
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) 
    at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:389) 
    at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:334) 
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1041) 
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) 
    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) 
    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) 
    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) 
    at org.apache.catalina.startup.Catalina.start(Catalina.java:621) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
    at java.lang.reflect.Method.invoke(Method.java:597) 
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322) 
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450) 
16 Νοε 2011 4:02:16 μμ org.apache.catalina.startup.HostConfig deployDirectory 
INFO: Deploying web application directory host-manager 
16 Νοε 2011 4:02:16 μμ org.apache.catalina.core.ContainerBase addChildInternal 
SEVERE: ContainerBase.addChild: start: 
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/host-manager]] 
    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) 
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) 
    at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:389) 
    at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:334) 
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1041) 
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774) 
    more lines..... 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
    at java.lang.reflect.Method.invoke(Method.java:597) 
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322) 
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450) 
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:1343) 
    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) 
    ... 29 more 
16 Νοε 2011 4:02:16 μμ org.apache.catalina.startup.HostConfig deployDirectory 
SEVERE: Error deploying web application directory host-manager 
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/host-manager]] 
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:816) 
    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) 
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) 
    at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:389) 
    at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:334) 
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1041) 
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) 
    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) 
    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) 
    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) 
    at org.apache.catalina.startup.Catalina.start(Catalina.java:621) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
    at java.lang.reflect.Method.invoke(Method.java:597) 
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322) 
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450) 
16 Νοε 2011 4:02:16 μμ org.apache.catalina.startup.HostConfig deployDirectory 
INFO: Deploying web application directory manager 
16 Νοε 2011 4:02:16 μμ org.apache.catalina.core.ContainerBase addChildInternal 
SEVERE: ContainerBase.addChild: start: 
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/manager]] 
    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) 
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) 
    at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:389) 
    at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:334) 
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1041) 
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) 
    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) 
    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) 
    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) 
    at org.apache.catalina.startup.Catalina.start(Catalina.java:621) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
    at java.lang.reflect.Method.invoke(Method.java:597) 
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322) 
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450) 
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:1343) 
    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) 
    ... 29 more 
16 Νοε 2011 4:02:16 μμ org.apache.catalina.startup.HostConfig deployDirectory 
SEVERE: Error deploying web application directory manager 
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/manager]] 
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:816) 
    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) 
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) 
    at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:389) 
    at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:334) 
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1041) 
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) 
    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) 
    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) 
    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) 
    at org.apache.catalina.startup.Catalina.start(Catalina.java:621) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
    at java.lang.reflect.Method.invoke(Method.java:597) 
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322) 
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450) 
16 Νοε 2011 4:02:16 μμ org.apache.catalina.startup.HostConfig deployDirectory 
INFO: Deploying web application directory ROOT 
16 Νοε 2011 4:02:16 μμ org.apache.catalina.core.ContainerBase addChildInternal 
SEVERE: ContainerBase.addChild: start: 
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.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) 
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) 
    at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:389) 
    at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:334) 
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1041) 
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) 
    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) 
    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) 
    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) 
    at org.apache.catalina.startup.Catalina.start(Catalina.java:621) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
    at java.lang.reflect.Method.invoke(Method.java:597) 
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322) 
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450) 
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:1343) 
    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) 
    ... 29 more 
16 Νοε 2011 4:02:16 μμ org.apache.catalina.startup.HostConfig deployDirectory 
SEVERE: Error deploying web application directory ROOT 
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] 
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:816) 
    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) 
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) 
    at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:389) 
    at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:334) 
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1041) 
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) 
    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) 
    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) 
    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) 
    at org.apache.catalina.startup.Catalina.start(Catalina.java:621) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
    at java.lang.reflect.Method.invoke(Method.java:597) 
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322) 
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450) 
16 Νοε 2011 4:02:16 μμ org.apache.coyote.AbstractProtocol start 
INFO: Starting ProtocolHandler ["http-apr-8080"] 
16 Νοε 2011 4:02:16 μμ org.apache.coyote.AbstractProtocol start 
INFO: Starting ProtocolHandler ["ajp-apr-8009"] 
16 Νοε 2011 4:02:16 μμ org.apache.catalina.startup.Catalina start 
INFO: Server startup in 1885 ms 
+0

¿Está implementando un jar servlet en su aplicación? ¿Qué hay en WEB-INF/lib? –

Respuesta

8

El método getSessionCookieConfig(), que está ausente y parece ser la causa del error, se introdujo con Java 6. Está utilizando Java 6 y Tomcat 7, por lo que está bien.

El método debe estar en servlet.jar. Asegúrese de tener el servlet.jar original en el directorio Tomcat lib y de que no tiene ningún otro servlet.jar en ninguna de sus aplicaciones web.

Si ha implementado más de una aplicación web, eliminaría todas y las implementaría una por una para ver cuál está causando el problema.

+0

muchas gracias :) había olvidado que había colocado un servlet.jar en mis carpetas jdk lib (porque hice algunos experimentos con el Textpad), eliminando el truco :) – George

+0

* "nuestras aplicaciones web" *? ¿Son colegas? :) – BalusC

+0

@BalusC: gracias por señalar el error tipográfico. Lo he arreglado – Codo

0

Si la gente está utilizando IntelliJ IDEA, es posible que accidentalmente tengan marcada la opción "Add-classpath" en la Configuración de ejecución/depuración en la pestaña Grails.

  1. Ir a RUN> Editar configuración,
  2. recoger la configuración griales y
  3. a la derecha de la pantalla para comprobar el:

(Parece que este)

[X] Add --classpath:/home/..... 

y desmárquelo, haga clic en [Aceptar] y vuelva a ejecutar la aplicación

[ ] Add --classpath:/home/..... 

Buena suerte.

David

Cuestiones relacionadas