I have a java agent that uses the jakarta digester component. I have the digester jars on the Notes classpath using the JavaUserClasses property in the notes.ini. I get a NullPointerException at runtime from the digester class when it attempts to load my class. I have narrowed the problem down to the ObjectCreateRule.begin method, this line:Class clazz = digester.getClassLoader().loadClass(realClassName);
I have also found that from this same method, this.getClass().getClassLoader() returns null.
The same line in my agent does not return null. I thought this might be related to the security policy so I added the following to my java.security file:
grant {
permission java.security.AllPermission;
};
This did not solve my problem. Any ideas? I need to be able to access the classloader from the classes in the jarfiles.