Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ssm]]

Posted zbq6

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ssm]]相关的知识,希望对你有一定的参考价值。

org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ssm]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1842)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [[email protected]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4860)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4995)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 10 more
Caused by: java.lang.IllegalArgumentException: The main resource set specified [D:apache-tomcat-8.5.23webappsssm] is not valid
at org.apache.catalina.webresources.StandardRoot.createMainResourceSet(StandardRoot.java:749)
at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:706)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 13 more

八月 23, 2018 11:21:47 上午 org.apache.catalina.startup.HostConfig deployDescriptor
严重: Error deploying configuration descriptor [D:apache-tomcat-8.5.23confCatalinalocalhostssm.xml]
java.lang.IllegalStateException: Container

 

这个问题在同事的电脑上出现的,而且还重复出现. 

产生这个问题的问题的根本原因是Tomcat的conf/server.xml文件的问题,对比了我电脑上和同时电脑上的这个文件,发现多了了一句:

<Context docBase="D:programfilesapache-tomcat-8.5.23wtpwebappsyouknow" path="/youknow" reloadable="true" source="org.eclipse.jst.jee.server:youknow"/>

解决这个问题发现了两个方法,

1)eclipse下双击Tomcat,在他的配置文件下,取消 Server Options下的Pubish module....的勾选,

2)去Tomcat的conf/server.xml下,删除:

<Context docBase="D:programfilesapache-tomcat-8.5.23wtpwebappsyouknow" path="/youknow" reloadable="true" source="org.eclipse.jst.jee.server:youknow"/>

 

























以上是关于Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ssm]]的主要内容,如果未能解决你的问题,请参考以下文章

Tomcat启动报错 Failed to start component [StandardServer[8005]]解决

启动项目报错——A child container failed during start——解决Failed to start component [StandardEngine[Catalina]

The required Server component failed to start so Tomcat is unable to start解决之一

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

Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]]

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