问题描述
- linux系统tomcat重启报错
-
以下是启动是的错误信息:
INFO: Starting Coyote HTTP/1.1 on http-8080
Jan 21, 2015 4:26:24 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jan 21, 2015 4:26:24 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/26 config=null
Jan 21, 2015 4:26:24 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 16024 ms
Jan 21, 2015 4:26:28 PM org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already. Could not load org.springframework.core.NestedExceptionUtils. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1566)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
at org.springframework.core.NestedRuntimeException.getMessage(NestedRuntimeException.java:67)
at ch.qos.logback.classic.spi.ThrowableInformation.extractStringRep(ThrowableInformation.java:50)
at ch.qos.logback.classic.spi.ThrowableInformation.(ThrowableInformation.java:24)
at ch.qos.logback.classic.spi.LoggingEvent.(LoggingEvent.java:111)
at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:485)
at ch.qos.logback.classic.Logger.filterAndLog(Logger.java:479)
at ch.qos.logback.classic.Logger.info(Logger.java:585)
at com.xsc.lottery.task.ticket.TicketTreatmentWork$3.run(TicketTreatmentWork.java:410)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)不知道该怎么解决,请各位指点啊。。。。
解决方案
贴出来的错误信息不全,现在问题解决了,贴出来供大家参考:
补上的报错信息
严重: The web application [/CHJ_G4] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak.
有一堆的这样的严重错误
最后Google加百度,也没能找到具体的原因,根据查到的资料将tomcat server.xml里两个监听器注释掉,现在项目可以正常运行。
只是其中道理还是一头雾水
下面是我注释掉的内容
解决方案二:
org.springframework.core.NestedExceptionUtils没法加载,你的spring有没有部署对
解决方案三:
加载出错了,包有没有安装好
解决方案四:
贴出来的错误信息不全,现在问题解决了,贴出来供大家参考:
补上的报错信息
严重: The web application [/CHJ_G4] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak.
有一堆的这样的严重错误
最后Google加百度,也没能找到具体的原因,根据查到的资料将tomcat server.xml里两个监听器注释掉,现在项目可以正常运行。
只是其中道理还是一头雾水
下面是我注释掉的内容
解决方案五:
贴出来的错误信息不全,现在问题解决了,贴出来供大家参考:
补上的报错信息
严重: The web application [/CHJ_G4] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak.
有一堆的这样的严重错误
最后Google加百度,也没能找到具体的原因,根据查到的资料将tomcat server.xml里两个监听器注释掉,现在项目可以正常运行。
只是其中道理还是一头雾水
下面是我注释掉的内容