启动Tomcat6.x时manager does not exist or is not a readable directory

严重: Error in resourceStart()
2011-9-19 11:36:28 org.apache.catalina.core.StandardContextstart
严重: Error getConfigured
2011-9-19 11:36:28 org.apache.catalina.core.StandardContextstart
严重: Context [/host-manager] startup failed due to previouserrors
2011-9-19 11:36:28 org.apache.catalina.core.StandardContextstop
信息: Containerorg.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager]has not been started
2011-9-19 11:36:28 org.apache.catalina.startup.HostConfigdeployDescriptor
信息: Deploying configuration descriptor manager.xml
2011-9-19 11:36:28 org.apache.catalina.core.StandardContextresourcesStart
严重: Error starting static Resources
java.lang.IllegalArgumentException: Document baseC:\tomcat6\webapps\manager does not exist or is not a readabledirectory
 atorg.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:142)
 atorg.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4319)
 atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4488)
 atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
 atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
 atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
 atorg.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
 atorg.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
 atorg.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
 atorg.apache.catalina.startup.HostConfig.start(HostConfig.java:1315)
 atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
 atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
 atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)
 atorg.apache.catalina.core.StandardHost.start(StandardHost.java:840)
 atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
 atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
 atorg.apache.catalina.core.StandardService.start(StandardService.java:525)
 atorg.apache.catalina.core.StandardServer.start(StandardServer.java:754)
 atorg.apache.catalina.startup.Catalina.start(Catalina.java:595)
 atsun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 atjava.lang.reflect.Method.invoke(Method.java:597)
 atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
 atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

 

这是因为在conf\Catalina\localhost里面有两个xml文件host-manager.xml、manager.xml,删掉他们在启动Tomcat就没问题了。
或Catalina里面其它的文件夹中也可能存在host-manager.xml,manager.xml这样的文件,把它们都删除了就可以了.


再就是我们自己建立的项目删掉以后也会出现这种问题

我们就把conf\Catalina\localhost相应配置文件删掉、把conf下的server.xml及context.xml中的相关配置删掉

你可能感兴趣的:(java,spring,Hibernate,struts2)