在eclipse下,启动tomcat会出现这样的错误
这样的错误:
严重: Error starting static Resources
java.lang.IllegalArgumentException: Document base D:\j2ee\project\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\WNIS 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:3910)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4138)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:480)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
2007-9-20 21:59:03 org.apache.catalina.core.StandardContext start
严重: Error in resourceStart()
2007-9-20 21:59:03 org.apache.catalina.core.StandardContext start
严重: Error getConfigured
2007-9-20 21:59:03 org.apache.catalina.core.StandardContext start
严重: Context startup failed due to previous errors
2007-9-20 21:59:03 org.apache.catalina.core.StandardContext start
严重: Exception during cleanup after start failed
LifecycleException: Container StandardContext[/WNIS] has not been started
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4466)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4371)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:480)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
怎么解决啊????
[解决办法]
不用管他,可以正常运行,或者你可以重启动机器/ECLIPSE ,谢谢
------解决方案--------------------
主要就这句:
D:\j2ee\project\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\WNIS does not exist or is not a readable directory
要么是配置的路径错了,要么是你缺少文件
[解决办法]
看不懂
[解决办法]
你看看 eclips里面你选的tomcat几 设置的tomcat路径还对
[解决办法]
检查设TOMCAT时有没有设对,如果没办法的话,还有最后一个笨办法,全部卸了重装呵呵