tomcat 启动报错:The web application [] registered the JDBC driver [com.mysql.jdbc.Driver] but failed

服务器环境:tomcat 7.0.57+jdk1.7.0_71

问题情况描述:首先本地启动项目是正常启动,然后打war ,上传到服务器,启动项目就报下面的错误:

七月 18, 2018 3:40:33 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [] 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.
七月 18, 2018 3:40:33 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [MySQL Statement Cancellation Timer] but has failed to stop it. This is very likely to create a memory leak.
七月 18, 2018 3:40:33 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [DefaultQuartzScheduler_Worker-1] but has failed to stop it. This is very likely to create a memory leak.
七月 18, 2018 3:40:33 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [DefaultQuartzScheduler_Worker-2] but has failed to stop it. This is very likely to create a memory leak.
七月 18, 2018 3:40:33 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [DefaultQuartzScheduler_Worker-3] but has failed to stop it. This is very likely to create a memory leak.
七月 18, 2018 3:40:33 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [DefaultQuartzScheduler_Worker-4] but has failed to stop it. This is very likely to create a memory leak.
七月 18, 2018 3:40:33 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [DefaultQuartzScheduler_Worker-5] but has failed to stop it. This is very likely to create a memory leak.
七月 18, 2018 3:40:33 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [DefaultQuartzScheduler_Worker-6] but has failed to stop it. This is very likely to create a memory leak.

解决方案:开始尝试很多种方式,降低mysql驱动,还有tomcat版本,都没效果

最终:开发环境的jdk版本必须与服务器上的jdk版本一致,编译的时候才能识别,高版本的编译下的class文件,在低版本下有些方法无法识别。

你可能感兴趣的:(java,Linux)