tomcat 启动异常 The web application [ROOT] registered the JDBC driver [xxx] but failed to unregister it 您所在的位置:网站首页 idea没有web tomcat 启动异常 The web application [ROOT] registered the JDBC driver [xxx] but failed to unregister it

tomcat 启动异常 The web application [ROOT] registered the JDBC driver [xxx] but failed to unregister it

#tomcat 启动异常 The web application [ROOT] registered the JDBC driver [xxx] but failed to unregister it| 来源: 网络整理| 查看: 265

tomcat启动的时候出现如下异常:

22-Feb-2021 20:25:30.697 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file 22-Feb-2021 20:25:30.697 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors 22-Feb-2021 20:25:31.814 警告 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] registered the JDBC driver [com.microsoft.sqlserver.jdbc.SQLServerDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 22-Feb-2021 20:25:31.815 警告 [RMI TCP Connection(3)-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. 22-Feb-2021 20:25:31.816 警告 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [cat-MessageTreeContextHolderCleaner] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.lang.Thread.sleep(Native Method) java.lang.Thread.sleep(Thread.java:340) java.util.concurrent.TimeUnit.sleep(TimeUnit.java:386) com.dianping.cassage.MessageTreeContextHolder$CleanupTask.run(MessageTreeContextHolder.java:133) java.lang.Thread.run(Thread.java:748) com.dianping.cat.utils.Threads$RunnableThread.run(Threads.java:286) 22-Feb-2021 20:25:31.817 警告 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [cat-1] but has failed to stop it. This is very likely to cre

在这里插入图片描述 一开始我的重点都放在To prevent a memory leak, This is very likely to create a memory leak,因为是启动的时候报错,所以怀疑是jvm内存大小不够,在启动的时候添加参数: -Xms,-Xmx,但是启动的时候仍旧报错。

我使用的IDE是Idea,其本身也是运行在jvm上的,我又尝试修改了其 vmoptions 配置文件(在IDEA安装目录的bin目录下的idea64.exe.vmoptions),修改如下所示的参数: 在这里插入图片描述 也可以在idea的操作界面上进行设置,如下图所示: 在这里插入图片描述 但是最终都没有效果。

我又详细看了下报错的信息,最开始报错的是关于数据库的部分,可能是数据库连接等方面出了问题,尝试处理了下,确实启动就不再报错了。

这类启动时疑似上述内存泄漏的报错,大多是对应的服务启动失败。我这里就是数据库服务启动失败了,由于使用了没有授权的db



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有