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.cat.message.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

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

  1. 严重: The web application [/] registered the JDBC driver [xxx.xxx.xxx] but failed to unregister ...

    问题描述: Tomcat 服务器启动报异常提示数据库驱动不能被注册,当应用被停止时.为了防止内存泄漏,已强制注销JDBC驱动程序.折腾了2小时最后LZ定位问题是出于开发环境与服务器环境JDK版本不一致 ...

  2. Tomcat——启动错误[A web application must be configured as privileged to be able to load it]解决方案

    解决方案 方法一: 修改/conf/context.xml 将: <Context> 修改为 <Context privileged="true"> 重启 ...

  3. tomcat 启动报错 registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister

    在帮朋友改bug时出现下面错误: org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web applic ...

  4. WebappClassLoaderBase | The web application [ROOT] appears to have started a thread named [HikariPo

    原文链接 linux(RHEL8)中使用root启动java程序(使用springboot 框架)时可以正常的访问,而当使用非root用户启动springboot 的java 程序时,遇到以下错误: ...

  5. tomcat启动停在Initializing Spring root WebApplicationContext

    tomcat启动停在Initializing Spring root WebApplicationContext 解决方法:检查数据库连接IP是否能连通 posted on 2015-11-23 14 ...

  6. Struts2环境下Tomcat启动异常:Exception starting filter struts2,报了一个java.lang.ClassNotFoundException

    Struts2环境下Tomcat启动异常:Exception starting filter struts2,报了一个java.lang.ClassNotFoundException 参考文章: (1 ...

  7. JDK 11,Tomcat卡在Deploying web application directory

    表现: Tomcat启动以后卡在INFO: Deploying web application directory 环境: 我是在linux上面出现了这个问题,使用的是64位jdk 11.0.2和To ...

  8. tomcat启动停止在 Initializing Spring root WebApplicationContext,就不运行了

    启动项目的时候,项目一直运行到 Initializing Spring root WebApplicationContext,就停止不运行了,也不报错,开始真的很苦恼,后来把log日志的模式改为 de ...

  9. tomcat启动异常:子容器启动失败(a child container failed during start)

    在学习过程中,出现这个问题,上网查了一下,总结以下几种解决方案,并找出自己的问题. 1.没有清理之前maven项目的历史. 解决方法:执行clean命令,然后重新启动项目. 操作:添加maven he ...

最新文章

  1. swift:使用协议protocol设置颜色,UIImage的切圆角ImageWithCornerRadius
  2. 每个网站SEO优化人员都要熟知的三大图片优化技巧
  3. PHP调用tushare,python调用tushare获取沪股通、深股通成份股数据
  4. VTK:BackgroundImage背景图用法实战
  5. ubuntu 15.10下cmake 的安装
  6. reading notes -- Amazon.com Recommendations: Item-to-Item Collaborative Filtering
  7. html 怎么几秒后自动隐藏,js设定DIV显示时间并动态显示时间倒计时多少秒,倒计时完了之后该层自动隐藏。...
  8. SQL Server 数据操作
  9. windows端口被占用及广告弹窗处理
  10. CTF知识总结--MISC
  11. 快速取消PPT中所有动画效果
  12. 微信公众号管理平台使用教程
  13. android:layout_weight=1,Android中的Layout_weight(权重)详解
  14. 全年腾飞计划笔记(腾飞笔记)
  15. (软件)商标名称可用查询 申请
  16. 计算机子网掩码作用,什么是子网掩码 子网掩码的作用是什么?
  17. 轴承特征频率计算公式
  18. 新媒体推广之今日头条
  19. MTK65XX平台充电调试总结 (转载)
  20. V4L2采集yuv视频花屏:Linux视频采集与编码(一)

热门文章

  1. Hive--优化参数
  2. PriorityBlockingQueue源码
  3. python调用什么函数实现对文件内容的读取_Python 文件读取函数 read(), readline(), readlines()...
  4. 利用python进行数据分析第二版pdf百度云_参考《利用Python进行数据分析(第二版)》高清中文PDF+高清英文PDF+源代码...
  5. LinuxC-运算符
  6. virtualbox+vagrant学习-2(command cli)-27-vagrant connect命令
  7. 入门设计模式之建造者模式
  8. 面试题: 数据库 真实面试题已看1 操作语句 存储过程 挺好 sql语句练习 有用
  9. 如何使用subversion管理iOS源代码
  10. 浅析php中的stdClass