[ https://issues.apache.org/jira/browse/DIGESTER-140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simone Tripodi closed DIGESTER-140. ----------------------------------- included in Apache Commons Digester 3.0 release > Change the getClass().getClassLoader() to > Thread.currentThread().getContextClassLoader() > ---------------------------------------------------------------------------------------- > > Key: DIGESTER-140 > URL: https://issues.apache.org/jira/browse/DIGESTER-140 > Project: Commons Digester > Issue Type: Bug > Affects Versions: 2.0 > Environment: Apache Tomcat 5.5.9 , > Reporter: ashwin kumar > Assignee: Simone Tripodi > Labels: ClassLoader, Problem > Fix For: 3.0 > > Original Estimate: 2m > Remaining Estimate: 2m > > When i use Digester from Java Agent Few pieces of code which uses > getClass().getClassLoader() returns me null. As Digester is loaded by system > classlaoder it happens so > Fix : using following code > "Thread.currentThread().getContextClassLoader()" shal fix that > Locations to Fix : > ClassName :org.apache.commons.digester.SetNextRule > Method : end() > Line Number: 204 > ClassName :org.apache.commons.digester.xmlrules.FromXmlRuleSet > Method : addRuleInstances() > Line Number: 164 -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira