Jason Dillon wrote: >> StreamHandlerFactory registered (but the URL class only tries to load >> resource handlers using Class.forName() and the system-classloader so >> that might not work with custom classloaders). > > > We need to figure out why Class.forName() called from inside URL did not > find the class then.
I found this out the hard way (in another context). java.net.URL is loaded by the bootstrap classloader. Class.forName() will therefore only look at the classloader for java.net.URL (which is the bootstrap classloader) and the system classloader. When the resource handler is only available to a custom classloader the handler will not be found. A solution (and I filed a report with Sun), is to include the thread context-classloader when looking for a resource handler inside the URL class. For now, there is no neat solution.. regards, Marcel Ammerlaan _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
