Fix the JDBC driver clean-up. This was broken with the latest 1.4.x, 1.5.x and 1...
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 29 Jun 2009 17:20:24 +0000 (17:20 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 29 Jun 2009 17:20:24 +0000 (17:20 +0000)
commit24a1e1dcc850636559f1127e1110e9bced701308
treec795b43fc4df3bd75d72d35c10fe074a01595003
parente4b359e889d019fe067a3b8e8c5e3084b09c485f
Fix the JDBC driver clean-up. This was broken with the latest 1.4.x, 1.5.x and 1.6.x JVMs as they checked if the classloader of the caller, which for the WebappClassLoader was the common loader.
It's not pretty, so there are plenty of comments explaining what is going on.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@789389 13f79535-47bb-0310-9956-ffa450edef68
java/org/apache/catalina/loader/JdbcLeakPrevention.java [new file with mode: 0644]
java/org/apache/catalina/loader/WebappClassLoader.java