在电脑上找到这个路径:D:\jakarta-tomcat-6\conf\Catalina,将localhost目录直接删除掉,再一运行,就没事了! 因为配置文件中配置了启动程序,而webapps文件夹下却没有此应用程序,所以出现了上述错误。
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,是不够的,必须把第三步也做了才行
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。