我正在尝试Spring教程。我开发了一个项目,后来因为包含错误而被删除。在新项目中,每当我启动Tomcat时,它都会给我严重:启动静态资源时出错。 我尝试过这个问题的先前解决方案 Tomcat - SEVERE Error during starting static Resources ( A war which has been deleted purposefully )
但即使从C:\ Users \ A603388 \ workspace.metadata.plugins \ org.eclipse.wst.server.core \ tmp0 \ work \ Catalina \ localhost删除该文件夹后,每次运行apache tomacat时它仍然存在。 正如在回答中建议的那样,我找不到Spring_a.xml文件。
错误日志如下:
Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\Users\A603388\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\Spring_a does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:138)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:5055)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5235)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)