To prevent a memory leak, the JDBC Driver has been forcibly unregistered

后端 未结 14 1484
执念已碎
执念已碎 2020-11-22 02:15

I am getting this message when I run my web application. It runs fine but I get this message during shutdown.

SEVERE: A web application registered the

14条回答
  •  臣服心动
    2020-11-22 03:09

    I found the same issue with Tomcat version 6.026.

    I used the Mysql JDBC.jar in WebAPP Library as well as in TOMCAT Lib.

    To fix the above by removing the Jar from the TOMCAT lib folder.

    So what I understand is that TOMCAT is handling the JDBC memory leak properly. But if the MYSQL Jdbc jar is duplicated in WebApp and Tomcat Lib, Tomcat will only be able to handle the jar present in the Tomcat Lib folder.

提交回复
热议问题