org.apache.catalina.LifecycleException: Failed to start component

时间:2021-10-07 07:09:27

1、错误描述

Using CATALINA_BASE:   "D:\NetBeans\apache-tomcat-8.0.12"
Using CATALINA_HOME:   "D:\NetBeans\apache-tomcat-8.0.12"
Using CATALINA_TMPDIR: "D:\NetBeans\apache-tomcat-8.0.12\temp"
Using JRE_HOME:        "D:\Java\jdk1.7.0_67"
Using CLASSPATH:       "D:\NetBeans\apache-tomcat-8.0.12\bin\bootstrap.jar;D:\NetBeans\apache-tomcat-8.0.12\bin\tomcat-juli.jar"
25-Jan-2015 19:08:33.046 INFO [main] org.apache.catalina.core.AprLifecycleListener.init Loaded APR based Apache Tomcat Native library 1.1.31 using APR version 1.4.8.
25-Jan-2015 19:08:33.062 INFO [main] org.apache.catalina.core.AprLifecycleListener.init APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
25-Jan-2015 19:08:34.107 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized (OpenSSL 1.0.1h 5 Jun 2014)
25-Jan-2015 19:08:34.388 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-apr-8080"]
25-Jan-2015 19:08:34.404 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-apr-8009"]
25-Jan-2015 19:08:34.419 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 2151 ms
25-Jan-2015 19:08:34.482 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
25-Jan-2015 19:08:34.482 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.12
25-Jan-2015 19:08:34.513 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor D:\NetBeans\apache-tomcat-8.0.12\conf\Catalina\localhost\Tree.xml
25-Jan-2015 19:08:34.591 WARNING [localhost-startStop-1] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'antiJARLocking' to 'true' did not find a matching property.
25-Jan-2015 19:08:34.669 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start:
 org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Tree]]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:581)
	at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1686)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot@35d7c7ad]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
	at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4854)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4983)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	... 10 more
Caused by: java.lang.IllegalArgumentException: The main resource set specified [D:\NetBeans\workspaces\Tree\build\web] is not valid
	at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:665)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	... 13 more

25-Jan-2015 19:08:34.669 SEVERE [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Error deploying configuration descriptor D:\NetBeans\apache-tomcat-8.0.12\conf\Catalina\localhost\Tree.xml
 java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Tree]]
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:727)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:581)
	at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1686)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)

25-Jan-2015 19:08:34.669 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor D:\NetBeans\apache-tomcat-8.0.12\conf\Catalina\localhost\Tree.xml has finished in 156 ms
25-Jan-2015 19:08:34.669 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\NetBeans\apache-tomcat-8.0.12\webapps\docs
25-Jan-2015 19:08:35.324 INFO [localhost-startStop-1] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [125] milliseconds.
25-Jan-2015 19:08:35.371 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\NetBeans\apache-tomcat-8.0.12\webapps\docs has finished in 702 ms
25-Jan-2015 19:08:35.371 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\NetBeans\apache-tomcat-8.0.12\webapps\examples
25-Jan-2015 19:08:36.307 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\NetBeans\apache-tomcat-8.0.12\webapps\examples has finished in 936 ms
25-Jan-2015 19:08:36.307 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\NetBeans\apache-tomcat-8.0.12\webapps\host-manager
25-Jan-2015 19:08:36.385 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\NetBeans\apache-tomcat-8.0.12\webapps\host-manager has finished in 78 ms
25-Jan-2015 19:08:36.385 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\NetBeans\apache-tomcat-8.0.12\webapps\manager
25-Jan-2015 19:08:36.432 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\NetBeans\apache-tomcat-8.0.12\webapps\manager has finished in 47 ms
25-Jan-2015 19:08:36.432 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\NetBeans\apache-tomcat-8.0.12\webapps\ROOT
25-Jan-2015 19:08:36.463 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\NetBeans\apache-tomcat-8.0.12\webapps\ROOT has finished in 31 ms
25-Jan-2015 19:08:36.478 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-apr-8080"]
25-Jan-2015 19:08:36.510 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-apr-8009"]
25-Jan-2015 19:08:36.510 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 2096 ms
25-Jan-2015 19:08:37.492 INFO [http-apr-8080-exec-3] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor D:\NetBeans\apache-tomcat-8.0.12\conf\Catalina\localhost\HBFM.xml
25-Jan-2015 19:08:37.508 WARNING [http-apr-8080-exec-3] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'antiJARLocking' to 'true' did not find a matching property.
25-Jan-2015 19:08:37.570 INFO [http-apr-8080-exec-3] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor D:\NetBeans\apache-tomcat-8.0.12\conf\Catalina\localhost\HBFM.xml has finished in 78 ms
25-Jan-2015 19:08:37.570 INFO [http-apr-8080-exec-2] org.apache.catalina.util.LifecycleBase.start The start() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/HBFM]] after start() had already been called. The second call will be ignored.
25-Jan-2015 19:09:23.790 INFO [http-apr-8080-exec-9] org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/Tree]

2、错误原因

3、解决办法