日期:2014-05-19  浏览次数:20697 次

启动TOMCAT6.0时的错误
信息: Parsing configuration file [struts.xml]
2012-5-5 9:26:41 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2012-5-5 9:26:41 org.apache.catalina.core.StandardContext start
严重: Context [/bankManage] startup failed due to previous errors
2012-5-5 9:26:41 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: A web application registered the JBDC driver [com.mysql.jdbc.Driver] but failed
 to unregister it when the web application was stopped. To prevent a memory leak, the
 JDBC Driver has been forcibly unregistered.
2012-5-5 9:26:41 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: A web application created a ThreadLocal with key of type [null] (value [com.ope
nsymphony.xwork2.inject.ContainerImpl$10@4178d0]) and a value of type [java.lang.Obje
ct[]] (value [[Ljava.lang.Object;@62be97]) but failed to remove it when the web appli
cation was stopped. To prevent a memory leak, the ThreadLocal has been forcibly remov
ed.
2012-5-5 9:26:41 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: A web application created a ThreadLocal with key of type [null] (value [com.ope
nsymphony.xwork2.inject.ContainerImpl$10@cee41f]) and a value of type [java.lang.Obje
ct[]] (value [[Ljava.lang.Object;@e2b9e5]) but failed to remove it when the web appli
cation was stopped. To prevent a memory leak, the ThreadLocal has been forcibly remov
ed.
2012-5-5 9:26:42 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2012-5-5 9:26:43 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2012-5-5 9:26:43 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/138 config=null
2012-5-5 9:26:43 org.apache.catalina.startup.Catalina start
信息: Server startup in 44275 ms

在用STRUTS2的时候报的上面这个错,以前也碰上过,有人说是TOMCAT6.0兼容BUG,要换在5.0的,但是我懒得换,后面莫明奇妙也就好了,不报错了,现在又一直报,不知道是什么原故,求知情者~~~~

------解决方案--------------------
我之前,也出现过这样的,感觉是在操作时如remove,去除部署时等,不正确,造成有痕迹存在。楼主换个崭新的tomcat6试试
------解决方案--------------------
第一种解决办法:
 
使用低于6版本的tomcat
 
第二种解决办法:
 
在tomcat的server.xml文件中把
 <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>
 
这个监听给关了
 
如果还解决不了,重启一下机器试试
------解决方案--------------------
你看一下tomact运行的日志文件,找不到的话就把日志全删了,再运行一下,在日志文件错误会写的比较清楚