tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Wood <daw...@us.ibm.com>
Subject java shutdown hook and classpath
Date Thu, 07 Jan 2010 13:16:12 GMT
Hi and Happy New Year! 

I have a library that uses JDBC and is being used within a my web app. The 
library and JDBC driver jars are in the web app's WEB-INF/lib directory. 
The library installs a Java shutdown hook, which ultimately uses the JDBC 
driver to do some clean ups in the database.   I'm getting a class not 
found error when trying to load the JDBC driver (in this case derby) in 
the hook.  I suspect this is because the shutdown hook has been called 
with a class loader that does not have access to WEB-INF/lib. 

Any thoughts or solutions?  Thanks.

David Wood 
Policy Technologies Group
IBM TJ Watson Research Center
dawood@us.ibm.com
914-784-5123 (office), 914-396-6515 (mobile)

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message