码迷,mamicode.com
首页 > 移动开发 > 详细

在电脑上找到这个路径:D:\jakarta-tomcat-6\conf\Catalina,将localhost目录直接删除掉,再一运行,就没事了! 因为配置文件中配置了启动程序,而webapps文件夹下却没有此应用程序,所以出现了上述错误。

时间:2014-05-09 16:09:21      阅读:776      评论:0      收藏:0      [点我收藏+]

标签:des   blog   class   java   tar   ext   

java.lang.IllegalArgumentException: Document base D:\appservers\apache-tomcat-6.0.20\webapps\megaeyes_enterprise_manager does not exist or is not a readable directory  

2010-05-20 15:28:31|  分类: tomcat|举报|字号 订阅

 
 

2010-5-20 15:22:44 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\MyEclipse 6.5\bin;D:\appservers\apache-tomcat-6.0.20\bin
2010-5-20 15:22:44 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8081
2010-5-20 15:22:44 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 788 ms
2010-5-20 15:22:44 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2010-5-20 15:22:44 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.20
2010-5-20 15:22:46 org.apache.catalina.core.StandardContext resourcesStart
严重: Error starting static Resources
java.lang.IllegalArgumentException: Document base D:\appservers\apache-tomcat-6.0.20\webapps\megaeyes_enterprise_manager 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:4048)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4217)
 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
 at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
 at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
 at org.apache.catalina.core.StandardService.start(StandardService.java:516)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
 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:288)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2010-5-20 15:22:46 org.apache.catalina.core.StandardContext start
严重: Error in resourceStart()
2010-5-20 15:22:46 org.apache.catalina.core.StandardContext start
严重: Error getConfigured
2010-5-20 15:22:46 org.apache.catalina.core.StandardContext start
严重: Context [/megaeyes_enterprise_manager] startup failed due to previous errors
2010-5-20 15:22:46 org.apache.catalina.core.StandardContext stop
信息: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/megaeyes_enterprise_manager] has not been started
2010-5-20 15:22:46 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2010-5-20 15:22:46 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
2010-5-20 15:22:50 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-default.xml]
2010-5-20 15:22:51 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Unable to locate configuration files of the name struts-plugin.xml, skipping
2010-5-20 15:22:51 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-plugin.xml]
2010-5-20 15:22:51 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts.xml]
2010-5-20 15:22:52 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8081
2010-5-20 15:22:52 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2010-5-20 15:22:52 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/47  config=null
2010-5-20 15:22:52 org.apache.catalina.startup.Catalina start
信息: Server startup in 7575 ms

 

========================================================

1.该项目的War文件从***\apache-tomcat-6.0.16\webapps 移出;

2.该项目的某些配置从 ***apache-tomcat-6.0.16\work\Catalina\localhost 移除;

3.该项目的配置文件,目录: ***\apache-tomcat-6.0.16\conf\Catalina\localhost移除。

前2步,我想很多人都知道,做了1,2,是不够的,必须把第三步也做了才行

在电脑上找到这个路径:D:\jakarta-tomcat-6\conf\Catalina,将localhost目录直接删除掉,再一运行,就没事了! 因为配置文件中配置了启动程序,而webapps文件夹下却没有此应用程序,所以出现了上述错误。,布布扣,bubuko.com

在电脑上找到这个路径:D:\jakarta-tomcat-6\conf\Catalina,将localhost目录直接删除掉,再一运行,就没事了! 因为配置文件中配置了启动程序,而webapps文件夹下却没有此应用程序,所以出现了上述错误。

标签:des   blog   class   java   tar   ext   

原文地址:http://www.cnblogs.com/tfy1332/p/3718162.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!