https://issues.apache.org/bugzilla/show_bug.cgi?id=53853
Priority: P2
Bug ID: 53853
Assignee: [email protected]
Summary: Can tomcat-jdbc consider
Thread#getContextClassLoader() for interceptors & JDBC
drivers please?
Severity: normal
Classification: Unclassified
OS: Linux
Reporter: [email protected]
Hardware: PC
Status: NEW
Version: 7.0.20
Component: Catalina
Product: Tomcat 7
TOMCAT/lib/tomcat-jdbc.jar currently wouldn't load JDBC driver(s) or customized
interceptors out of TOMCAT/webapps/WEB_APP/WEB-INF/lib.
E.g.
org.apache.tomcat.jdbc.pool.ConnectionPool init
SEVERE: Unable to inform interceptor of pool start.
java.lang.ClassNotFoundException: ...
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at
org.apache.tomcat.jdbc.pool.PoolProperties$InterceptorDefinition.getInterceptorClass(PoolProperties.java:861)
at
org.apache.tomcat.jdbc.pool.ConnectionPool.init(ConnectionPool.java:443)
at
org.apache.tomcat.jdbc.pool.ConnectionPool.<init>(ConnectionPool.java:130)
at
org.apache.tomcat.jdbc.pool.DataSourceProxy.pCreatePool(DataSourceProxy.java:112)
at
org.apache.tomcat.jdbc.pool.DataSourceProxy.createPool(DataSourceProxy.java:99)
at
org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:123)
Moving JDBC driver(s) into TOMCAT/lib would cause memory leak mentioned @
HTTP://issues.apache.org/bugzilla/show_bug.cgi?id=48214
not to mention exposing jar/version conflicts to other TOMCAT/webapps.
Any chance for tomcat-jdbc including
org.apache.tomcat.jdbc.pool.PoolProperties$InterceptorDefinition.getInterceptorClass
to consider Thread#getContextClassLoader() instead of current Class.forName
please? Thanks!
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]