Digester fails to load descriptor classes when using different class loaders
----------------------------------------------------------------------------
Key: GRFT-108
URL: http://issues.apache.org/jira/browse/GRFT-108
Project: Graffito
Issue Type: Improvement
Affects Versions: 1.0-a1-dev
Environment: Graffito SVN checkout Rev. 448648
Reporter: Felix Meschberger
With issue GRFT-100 a patch has been applied to the ReflectionUtils class to
support custom class loaders for mapped classes. There is a similar issue
regarding the loading of class descriptors using Digester: If the Digester is
loaded by a different class loader than the jcr mapping library, the digester
cannot load the descriptor classes.
The Digester class provides a setClassLoader() method which allows for setting
a custom class loader. As the classes to be loaded are part of the jcr mapping
library, the class loader of the DigesterDescriptorReader class, which uses the
Digester to load class descriptions, should be set on the digester.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira