tomcat 6.0.24 Exception: Could not load com.mysql.jdbc.SQLError

前端 未结 8 730
甜味超标
甜味超标 2021-02-04 18:20

My tomcat 5 server running on centos frequently (several times / day) produces the following error:

Apr 7, 2011 11:02:30 PM org.apache.catalina.loader.WebappClas         


        
8条回答
  •  清酒与你
    2021-02-04 19:18

    The error is not that the class can't be found. It's not being allowed to load because the web application has been stopped. I suspect this might be happening after the web application is restarted, where it's down for a short period of time. Then some finalize() method in the code is probably trying to do some cleanup too late. Whether or not that's in your code or the MySQL driver I can't say. You definitely should only have one version of a jar in a directory at a time. You might want to upgrade it to the latest (5.1.15 right now) in case something has been fixed that might be affecting you.

提交回复
热议问题