You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2012/09/11 21:48:12 UTC
[Bug 53853] New: Can tomcat-jdbc consider
Thread#getContextClassLoader() for interceptors & JDBC drivers please?
https://issues.apache.org/bugzilla/show_bug.cgi?id=53853
Priority: P2
Bug ID: 53853
Assignee: dev@tomcat.apache.org
Summary: Can tomcat-jdbc consider
Thread#getContextClassLoader() for interceptors & JDBC
drivers please?
Severity: normal
Classification: Unclassified
OS: Linux
Reporter: ZhongY@US.IBM.com
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 53853] Can tomcat-jdbc consider Thread#getContextClassLoader()
for interceptors & JDBC drivers please?
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53853
--- Comment #4 from Konstantin Kolinko <kn...@gmail.com> ---
(In reply to Filip Hanik from comment #2)
> Fixed in r1616584
With minor follow-ups in r1617115 and r1617165.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 53853] Can tomcat-jdbc consider Thread#getContextClassLoader()
for interceptors & JDBC drivers please?
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53853
Filip Hanik <fh...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |david.blevins@gmail.com
--- Comment #3 from Filip Hanik <fh...@apache.org> ---
*** Bug 55444 has been marked as a duplicate of this bug. ***
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 53853] Can tomcat-jdbc consider Thread#getContextClassLoader()
for interceptors & JDBC drivers please?
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53853
--- Comment #1 from rinswind <ri...@gmail.com> ---
Created attachment 29449
--> https://issues.apache.org/bugzilla/attachment.cgi?id=29449&action=edit
Fixes PooledConnection to attempt to load the driver class form the TCCL as
well.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 53853] Can tomcat-jdbc consider Thread#getContextClassLoader()
for interceptors & JDBC drivers please?
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53853
Filip Hanik <fh...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Filip Hanik <fh...@apache.org> ---
Fixed in r1616584
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 53853] Can tomcat-jdbc consider Thread#getContextClassLoader()
for interceptors & JDBC drivers please?
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53853
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|Catalina |jdbc-pool
Version|7.0.20 |unspecified
Product|Tomcat 7 |Tomcat Modules
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org