Error deploying configuration descriptor [C:\Users\12541\Desktop\JavaWeb\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\conf\Catalina\localhost\UserLand_springmvc.xml]
java.lang.IllegalStateException:
ContainerBase.addChild: start: org.apache.catalina.LifecycleException:
Failed to start component[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/UserLand_springmvc]]
该项目部署在elipse工作台上的tomcat中,
在报错中我们就可以看到该tomcat下conf中的server.xml路径:
[C:\Users\12541\Desktop\JavaWeb\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\conf\Catalina\localhost\UserLand_springmvc.xml]
因为server.xml中:
<Context docBase="C:\Users\12541\Desktop\JavaWeb\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\webapps\ROOT" path="" reloadable="false"/></Host>
docBase所在路径的项目不存在或者项目文件内部缺少。我们直接修改doBase就可以。如果doBase项目不需要了,也可以直接删除Context。