为了账号安全,请及时绑定邮箱和手机立即绑定

Tomcat中web项目的启动异常

Tomcat中web项目的启动异常

慕桂英546537 2019-02-20 14:40:32
今天突然发现tomcat能正常运行,但其下的的web项目却运行不了了。重复关闭启动tomcat都不行,看了日志之后发现它报了这么一个错误: 09-Nov-2016 13:25:26.985 警告 [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [streetLight] 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. 09-Nov-2016 13:25:26.986 警告 [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [streetLight] appears to have started a thread named [MySQL Statement Cancellation Timer] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.lang.Object.wait(Native Method) java.lang.Object.wait(Object.java:503) java.util.TimerThread.mainLoop(Timer.java:526) java.util.TimerThread.run(Timer.java:505) 09-Nov-2016 13:25:26.992 信息 [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-8080"] 09-Nov-2016 13:25:26.995 信息 [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["ajp-nio-8009"] 09-Nov-2016 13:25:26.997 信息 [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-8080"] 09-Nov-2016 13:25:26.999 信息 [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["ajp-nio-8009"] 项目下午就需要展示了,突然来了这么一下,让我不知所措。希望各位能伸予援助之手啊。谢谢。~
查看完整描述

2 回答

?
jeck猫

TA贡献1909条经验 获得超7个赞

Tomcat的lib目录下放个jdbc的驱动包试试

查看完整回答
反对 回复 2019-03-01
  • 2 回答
  • 0 关注
  • 1013 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信