Local jNDI hack breaks when running with Jetty6-Maven
-----------------------------------------------------
Key: CAY-754
URL: https://issues.apache.org/cayenne/browse/CAY-754
Project: Cayenne
Issue Type: Bug
Components: Cayenne Core Library
Affects Versions: 1.2 [STABLE], 2.0 [STABLE], 3.0
Reporter: Andrus Adamchik
Assigned To: Andrus Adamchik
Priority: Minor
Fix For: 1.2 [STABLE], 2.0 [STABLE], 3.0
http://objectstyle.org/cayenne/lists/cayenne-user/2007/02/0125.html
Local JNDI hack (JNDIDataSourceFactory) loads Cayenne Modeler classes via reflection to read local preferences DB. In any non-trivial ClassLoader situation (Maven being among the more obscure ones), this may not work with a simple Class.forName() call. The exception details are described in the mailing list message above. The fix is easy - use thread class loader
-- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
This archive was generated by hypermail 2.0.0 : Fri Feb 16 2007 - 11:22:19 EST