Posted by joe_hart
on December 7, 2007 at 5:49 AM PST
I think that javax.xml.stream.XMLInputFactory.newInstance(String, ClassLoader) maybe behaving incorrectly.
The first argument is name of the factory to find (ex "javax.xml.stream.XMLInputFactory"). Using this factory name go though the standard lookup procedure (ie check for a system property, check for $JAVA_HOME/lib/stax.properties, check jar META-INF/services) to determine the concrete class and return an instance loaded with the given classloader.
The method assumes the first argument is the classname of the concrete XMLInputFactory subclass and tries to return an instance loaded by the given classloader.