- Java code
严重: Error starting static Resourcesjava.lang.IllegalArgumentException: Document base C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\struts2-mailreader-2.1.8.1 does not exist or is not a readable directory at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:141) at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3855) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4024) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) 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:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)2009-12-12 10:09:43 org.apache.catalina.core.StandardContext start严重: Error in resourceStart()2009-12-12 10:09:43 org.apache.catalina.core.StandardContext start严重: Error getConfigured2009-12-12 10:09:43 org.apache.catalina.core.StandardContext start严重: Context [/struts2-mailreader-2.1.8.1] startup failed due to previous errors
已经删除了webapps和work下的struts2-mailreader-2.1.8.1这个文件,但是在tomcat启动的时候
依然在work下生产了struts2-mailreader-2.1.8.1这个空文件夹,所以导致了上面的错误
按道理说,删除webapps和work下的文件,就是已经删除干净了,为什么还会生成一个空文件
从而导致上面的错误?
------解决方案--------------------------------------------------------
楼主修改过.xml文件没有?