[ http://issues.apache.org/jira/browse/DIGESTER-109?page=comments#action_12444330 ] Anna Komaristaia commented on DIGESTER-109: -------------------------------------------
Hi Simon, I don't have the commons libraries in my $JAVA_HOME/jre : > ls -la total 57200 drwxr-xr-x 9 gabriel gabriel 4096 Oct 21 16:28 ./ drwxr-xr-x 3 gabriel gabriel 4096 Oct 21 16:27 ../ drwxr-xr-x 2 gabriel gabriel 4096 Oct 21 16:28 .systemPrefs/ drwxr-xr-x 3 gabriel gabriel 4096 Oct 21 16:27 bin/ -r--r--r-- 1 gabriel gabriel 969 Oct 21 16:27 CHANGES -r--r--r-- 1 gabriel gabriel 2487 Oct 21 16:27 COPYRIGHT drwxr-xr-x 2 gabriel gabriel 4096 Oct 21 16:27 javaws/ -rwxrwxr-x 1 gabriel gabriel 20367233 Oct 21 16:28 jre-1_5_0_01-solaris-sparc.sh* -rwxrwxr-x 1 gabriel gabriel 8732624 Oct 21 16:28 jre-1_5_0_01-solaris-sparcv9.sh* drwxr-xr-x 8 gabriel gabriel 4096 Oct 21 16:27 jre1.5.0_01/ drwxr-xr-x 16 gabriel gabriel 4096 Oct 21 16:28 lib/ -r--r--r-- 1 gabriel gabriel 10817 Oct 21 16:27 LICENSE drwxr-xr-x 6 gabriel gabriel 4096 Oct 21 16:28 man/ drwxr-xr-x 4 gabriel gabriel 4096 Oct 21 16:28 plugin/ -r--r--r-- 1 gabriel gabriel 11644 Oct 21 16:27 README -rw-rw-r-- 1 gabriel gabriel 164 Oct 21 16:28 System.out -r--r--r-- 1 gabriel gabriel 68419 Oct 21 16:27 THIRDPARTYLICENSEREADME.txt -r--r--r-- 1 gabriel gabriel 969 Oct 21 16:27 Welcome.html > > find . -name "*.jar" ./jre1.5.0_01/lib/ext/sunjce_provider.jar ./jre1.5.0_01/lib/ext/sunpkcs11.jar ./jre1.5.0_01/lib/ext/dnsns.jar ./jre1.5.0_01/lib/ext/localedata.jar ./jre1.5.0_01/lib/jce.jar ./jre1.5.0_01/lib/security/US_export_policy.jar ./jre1.5.0_01/lib/security/local_policy.jar ./jre1.5.0_01/lib/charsets.jar ./jre1.5.0_01/lib/javaws.jar ./jre1.5.0_01/lib/deploy.jar ./jre1.5.0_01/lib/plugin.jar ./jre1.5.0_01/lib/im/indicim.jar ./jre1.5.0_01/lib/im/thaiim.jar ./jre1.5.0_01/lib/jsse.jar ./jre1.5.0_01/lib/rt.jar ./lib/ext/dnsns.jar ./lib/ext/localedata.jar ./lib/ext/sunjce_provider.jar ./lib/ext/sunpkcs11.jar ./lib/jce.jar ./lib/security/US_export_policy.jar ./lib/security/local_policy.jar ./lib/charsets.jar ./lib/javaws.jar ./lib/deploy.jar ./lib/plugin.jar ./lib/im/indicim.jar ./lib/im/thaiim.jar ./lib/jsse.jar ./lib/rt.jar Yes, I had the commons jars in my "-Xbootclasspath". I removed from, but it didn't solve my problem. Thanks, //Anna > FromXmlRuleSet and SetNextRule classloader issue > --------------------------------------------------- > > Key: DIGESTER-109 > URL: http://issues.apache.org/jira/browse/DIGESTER-109 > Project: Commons Digester > Issue Type: Bug > Reporter: Anna Komaristaia > > When I start the application in Unix, there are 2 classes cause the problem: > 1) The NullPointerException in "FromXmlRuleSet " class in the method > "addRuleInstances(Digester, String)"; > 2) The NullPointerException in "SetNextRule" class in the method "end()"; > Temporary solution > --------------------------- > I recompiled the commons-digester jar with the next changes and it's working > fine in PC and Unix: > Changes in the "FromXmlRuleSet " class > > 1) public static final String DIGESTER_DTD_PATH = "digester-rules.dtd"; > 2) in the method "addRuleInstances" > the line > URL dtdURL = > getClass().getClassLoader().getResource(DIGESTER_DTD_PATH); > > changed by > > URL dtdURL = this.getClass().getResource(DIGESTER_DTD_PATH); > Changes In the "SetNextRule" class > the line > paramTypes[0] = digester.getClassLoader().loadClass( > paramType); > changed by > if( digester.getClassLoader() == null ) > paramTypes[0] = Class.forName(paramType); > else > paramTypes[0] = digester.getClassLoader().loadClass( > paramType); > Thanks, > //Anna -- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]