tomcat启动报错,JDBC注册失败:This is very likely to create a memory leak

3 篇文章 0 订阅
近来在做一个web项目,本来运行好好的,突然间在tomcat启动不起来,一直报以下错误(大概意思是JDBC注册失败):

七月 16, 2017 12:54:25 下午 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
七月 16, 2017 12:54:25 下午 org.apache.catalina.core.StandardContext start
严重: Context [/IBS] startup failed due to previous errors
七月 16, 2017 12:54:25 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/IBS] registered the JDBC driver [oracle.jdbc.driver.OracleDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
七月 16, 2017 12:54:26 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/IBS] registered the JDBC driver [com.microsoft.jdbc.sqlserver.SQLServerDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
七月 16, 2017 12:54:26 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/IBS] appears to have started a thread named [HouseKeeper] but has failed to stop it. This is very likely to create a memory leak.
七月 16, 2017 12:54:26 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/IBS] appears to have started a thread named [Timer-2] but has failed to stop it. This is very likely to create a memory leak.
七月 16, 2017 12:54:26 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/IBS] appears to have started a thread named [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0] but has failed to stop it. This is very likely to create a memory leak.
七月 16, 2017 12:54:26 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/IBS] appears to have started a thread named [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] but has failed to stop it. This is very likely to create a memory leak.
七月 16, 2017 12:54:26 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/IBS] appears to have started a thread named [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] but has failed to stop it. This is very likely to create a memory leak.
七月 16, 2017 12:54:26 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/IBS] appears to have started a thread named [QuartzScheduler_Worker-1] but has failed to stop it. This is very likely to create a memory leak.
七月 16, 2017 12:54:26 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/IBS] appears to have started a thread named [QuartzScheduler_Worker-2] but has failed to stop it. This is very likely to create a memory leak.
七月 16, 2017 12:54:26 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/IBS] appears to have started a thread named [QuartzScheduler_Worker-3] but has failed to stop it. This is very likely to create a memory leak.
七月 16, 2017 12:54:26 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/IBS] appears to have started a thread named [QuartzScheduler_Worker-4] but has failed to stop it. This is very likely to create a memory leak.
七月 16, 2017 12:54:26 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/IBS] appears to have started a thread named [QuartzScheduler_Worker-5] but has failed to stop it. This is very likely to create a memory leak.
七月 16, 2017 12:54:26 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/IBS] appears to have started a thread named [Prototyper] but has failed to stop it. This is very likely to create a memory leak.
七月 16, 2017 12:54:26 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/IBS] appears to have started a thread named [QuartzScheduler_QuartzSchedulerThread] but has failed to stop it. This is very likely to create a memory leak.
七月 16, 2017 12:54:27 下午 org.apache.catalina.startup.HostConfig deployDirectory


经过一下午的研究,终于找到解决方法:把项目中build path中的ojdbc包(oracle数据库驱动包)先移除,重新跑一下项目,此时肯定报错。没事,再停止项目运行,重新再导入刚才的ojdbc包,再运行项目,则没问题了。至于是什么原因,网上有人说是因为myeclipse没有正常关闭的原因。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值