问题描述:
Tomcat 服务器启动报异常提示数据库驱动不能被注册,当应用被停止时。为了防止内存泄漏,已强制注销JDBC驱动程序。折腾了2小时最后LZ定位问题是出于开发环境与服务器环境JDK版本不一致导致的。
异常信息:
严重: One or more listeners failed to start. Full details will be found in the appropriate container log file
二月 23, 2021 3:14:08 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/usst_app] startup failed due to previous errors
二月 23, 2021 3:14:08 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
严重: The web application [/usst_app] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
二月 23, 2021 3:14:08 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
严重: The web application [/usst_app] registered the JDBC driver [oracle.jdbc.OracleDriver] but failed to unregister it when the