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

JavaWeb Tomcat重新部署报错.

JavaWeb Tomcat重新部署报错.

森林海 2019-02-25 03:56:32
初学JavaWeb, 每次启动Tomcat有这样一个警告 : 20-Nov-2016 22:11:12.615 ?? [RMI TCP Connection(2)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 另外只要通过JDBC连接之后(我的版本是最新版:mysql-connector-java-5.1.40), 重新部署项目, 就有如下报错 : 20-Nov-2016 22:19:15.987 ?? [RMI TCP Connection(5)-127.0.0.1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] 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. 20-Nov-2016 22:19:15.988 ?? [RMI TCP Connection(5)-127.0.0.1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Abandoned connection cleanup thread] 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.ref.ReferenceQueue.remove(ReferenceQueue.java:143) com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:43) 网上搜索好多教程看都看不太懂, 而且也不说原因, 总之雨里雾里.
查看完整描述

3 回答

?
莫回无

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

都是警告不是报错。。。

查看完整回答
反对 回复 2019-03-01
?
桃花长相依

TA贡献1860条经验 获得超8个赞

看看是不是jar包重复了

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

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号