JavaWeb Tomcat重新部署报错.

发布于 2022-09-04 04:29:05 字数 1452 浏览 6 评论 0

初学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)

网上搜索好多教程看都看不太懂, 而且也不说原因, 总之雨里雾里.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

三生池水覆流年 2022-09-11 04:29:05

确认一下localhost.xxx.log文件信息吧,里面应该会有其它错误信息。

独行侠 2022-09-11 04:29:05

都是警告不是报错。。。

oО清风挽发oО 2022-09-11 04:29:05

看看是不是jar包重复了

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文