tomcat运行过程中不定期出错

步尘 发布于 2016/03/30 22:53
阅读 708
收藏 0

tomcat中部署web项目,运行过程中不定期出现错误404无法访问,请各位大神指点一二,不尽感激!!!

错误日志:

三月 28, 2016 3:23:31 下午 org.apache.naming.resources.FileDirContext list
警告: Could not get dir listing for /home/www/apache-tomcat-7.0.63/webapps/xxx/WEB-INF/lib
三月 28, 2016 3:23:31 下午 org.apache.catalina.loader.WebappClassLoader modified
信息:     Additional JARs have been added
三月 28, 2016 3:23:31 下午 org.apache.catalina.core.StandardContext reload
信息: Reloading Context with name [] has started
三月 28, 2016 3:23:31 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [] registered the JDBC 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.
三月 28, 2016 3:23:31 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Ice.Timer] but has failed to stop it. This is very likely to create a memory leak.
三月 28, 2016 3:23:31 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Ice.EndpointHostResolverThread] but has failed to stop it. This is very likely to create a memory leak.
三月 28, 2016 3:23:31 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Ice.ThreadPool.Client-0] but has failed to stop it. This is very likely to create a memory leak.
三月 28, 2016 3:23:31 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Ice.Timer] but has failed to stop it. This is very likely to create a memory leak.
三月 28, 2016 3:23:31 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Ice.EndpointHostResolverThread] but has failed to stop it. This is very likely to create a memory leak.
三月 28, 2016 3:23:31 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Ice.ThreadPool.Client-0] but has failed to stop it. This is very likely to create a memory leak.
三月 28, 2016 3:23:31 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Ice.Timer] but has failed to stop it. This is very likely to create a memory leak.
三月 28, 2016 3:23:31 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Ice.EndpointHostResolverThread] but has failed to stop it. This is very likely to create a memory leak.
三月 28, 2016 3:23:31 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Ice.ThreadPool.Client-0] but has failed to stop it. This is very likely to create a memory leak.
三月 28, 2016 3:23:31 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Ice.Timer] but has failed to stop it. This is very likely to create a memory leak.
三月 28, 2016 3:23:31 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Ice.EndpointHostResolverThread] but has failed to stop it. This is very likely to create a memory leak.
三月 28, 2016 3:23:31 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Ice.ThreadPool.Client-0] but has failed to stop it. This is very likely to create a memory leak.
三月 28, 2016 3:23:31 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Ice.Timer] but has failed to stop it. This is very likely to create a memory leak.


三月 28, 2016 3:23:31 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Ice.EndpointHostResolverThread] but has failed to stop it. This is very likely to create a memory leak.
三月 28, 2016 3:23:31 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Ice.ThreadPool.Client-0] but has failed to stop it. This is very likely to create a memory leak.
三月 28, 2016 3:23:31 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Ice.Timer] but has failed to stop it. This is very likely to create a memory leak.
Assertion failure:
at IceUtilInternal.Assert.FinalizerAssert(Assert.java:26)
at IceInternal.ThreadPool.finalize(ThreadPool.java:213)
at java.lang.System$2.invokeFinalize(Unknown Source)
at java.lang.ref.Finalizer.runFinalizer(Unknown Source)
at java.lang.ref.Finalizer.access$100(Unknown Source)
at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)
三月 28, 2016 3:23:31 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Ice.EndpointHostResolverThread] but has failed to stop it. This is very likely to create a memory leak.
Assertion failure:
at IceUtilInternal.Assert.FinalizerAssert(Assert.java:26)
at IceInternal.ThreadPoolWorkQueue.finalize(ThreadPoolWorkQueue.java:43)
at java.lang.System$2.invokeFinalize(Unknown Source)
at java.lang.ref.Finalizer.runFinalizer(Unknown Source)
at java.lang.ref.Finalizer.access$100(Unknown Source)
at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)
三月 28, 2016 3:23:31 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Ice.ThreadPool.Client-0] but has failed to stop it. This is very likely to create a memory leak.

三月 28, 2016 3:23:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Ice.ThreadPool.Client-0] but has failed to stop it. This is very likely to create a memory leak.
三月 28, 2016 3:23:39 下午 org.apache.catalina.startup.ContextConfig getWebXmlSource
严重: Error processed default web.xml named conf/web.xml at /home/www/apache-tomcat-7.0.63/conf/web.xml
java.io.FileNotFoundException: /home/www/apache-tomcat-7.0.63/conf/web.xml (打开的文件过多)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at org.apache.catalina.startup.ContextConfig.getWebXmlSource(ContextConfig.java:1791)
at org.apache.catalina.startup.ContextConfig.getGlobalWebXmlSource(ContextConfig.java:1698)
at org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment(ContextConfig.java:1422)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1257)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:889)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5419)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:4034)
at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:425)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1344)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1545)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1555)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1555)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1523)
at java.lang.Thread.run(Unknown Source)


三月 28, 2016 3:23:39 下午 org.apache.catalina.startup.ContextConfig parseWebXml
严重: Parse error in application web.xml file at file:/home/www/apache-tomcat-7.0.63/conf/web.xml
java.io.FileNotFoundException: /home/www/apache-tomcat-7.0.63/conf/web.xml (打开的文件过多)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1555)
at org.apache.catalina.startup.ContextConfig.parseWebXml(ContextConfig.java:1843)
at org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment(ContextConfig.java:1498)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1257)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:889)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5419)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:4034)
at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:425)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1344)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1545)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1555)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1555)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1523)
at java.lang.Thread.run(Unknown Source)


三月 28, 2016 3:23:39 下午 org.apache.naming.resources.FileDirContext list
警告: Could not get dir listing for /home/www/apache-tomcat-7.0.63/webapps/xxx/WEB-INF/lib
三月 28, 2016 3:23:39 下午 org.apache.catalina.startup.ContextConfig configureStart
严重: Marking this application unavailable due to previous error(s)
三月 28, 2016 3:23:39 下午 org.apache.naming.resources.FileDirContext list
警告: Could not get dir listing for /home/www/apache-tomcat-7.0.63/webapps/xxx/WEB-INF
三月 28, 2016 3:23:39 下午 org.apache.naming.resources.FileDirContext list
警告: Could not get dir listing for /home/www/apache-tomcat-7.0.63/webapps/xxx/WEB-INF/lib
三月 28, 2016 3:23:39 下午 org.apache.catalina.core.StandardContext startInternal
严重: One or more components marked the context as not correctly configured
三月 28, 2016 3:23:39 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [] startup failed due to previous errors
三月 28, 2016 3:23:39 下午 org.apache.catalina.core.StandardContext reload
信息: Reloading Context with name [] is completed

加载中
1
中场三分
中场三分

根据错误信息,我建议尝试一下:


  • 把JDBC驱动包放到tomcat所在的lib目录下
  • 修改系统允许打开的文件最大数


0
阿信sxq
阿信sxq
你的代码里面在做什么,感觉是在编辑tomcat的配置啊
0
求是科技
求是科技
严重: Parse error in application web.xml file at file:/home/www/apache-tomcat-7.0.63/conf/web.xml

java.io.FileNotFoundException: /home/www/apache-tomcat-7.0.63/conf/web.xml (打开的文件过多)

仔细检查下你的web.xml文件,你是不是改过什么东西。


0
步尘

引用来自“求是科技”的评论

严重: Parse error in application web.xml file at file:/home/www/apache-tomcat-7.0.63/conf/web.xml

java.io.FileNotFoundException: /home/www/apache-tomcat-7.0.63/conf/web.xml (打开的文件过多)

仔细检查下你的web.xml文件,你是不是改过什么东西。


<welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
<welcome-file>xxx.html</welcome-file>
    </welcome-file-list>
原来没有<welcome-file>xxx.html</welcome-file>,我后来加上去的,这个会有影响吗?
0
求是科技
求是科技

<welcome-file>index.htm</welcome-file> 这行去掉试下,感觉是这行重了

求是科技
求是科技
这个应该没有吧。我是不懂index.html与index.htm的区别,可能有些容器直接将后者解析成前者,这样就重复了
步尘
Could not get dir listing for /home/www/apache-tomcat-7.0.63/webapps/xxx/WEB-INF/lib 和这个告警也有关系吗?
0
步尘
知道原因了,是因为同事把老的war包备份在webapps里,没删除,导致这种后果,谢谢各位提供的思路!!!
返回顶部
顶部