码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2018-08-23 12:01:53      阅读:320      评论:0      收藏:0      [点我收藏+]

标签:com   文件   adapter   XML   jee   files   apt   app   ext   

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 [org.apache.catalina.webresources.StandardRoot@b23428]
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.23\webapps\ssm] 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.23\conf\Catalina\localhost\ssm.xml]
java.lang.IllegalStateException: Container

 

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

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

<Context docBase="D:\programfiles\apache-tomcat-8.5.23\wtpwebapps\youknow" 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:\programfiles\apache-tomcat-8.5.23\wtpwebapps\youknow" path="/youknow" reloadable="true" source="org.eclipse.jst.jee.server:youknow"/>

 

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

标签:com   文件   adapter   XML   jee   files   apt   app   ext   

原文地址:https://www.cnblogs.com/zbq6/p/9522871.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!