我使用eclipse 3.6.2 [Helios]和tomcat 7以及myfaces 1.2.10
当我想要导入动态Web项目时,我遇到了问题。我在我的工作区导入项目并执行配置并设置jar文件但是当我在tomcat中运行时我会遇到这个问题
HTTP Status 404 -
type Status report
message
description The requested resource () is not available.
Apache Tomcat/6.0.33
并在控制台中显示此错误:
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\Eclipse\Workspaces\Wsp2\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\Wp1 does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:142)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4320)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4489)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Oct 13, 2011 4:12:18 AM org.apache.catalina.core.StandardContext start
SEVERE: Error in resourceStart()
我该怎么办?
thanx
答案 0 :(得分:0)
Eclipse和Tomcat都很混乱。我建议清理并重建所有。