[ mx4j-Bugs-986600 ] using system classloader to access resources
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.java.mx4j.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #986600, was opened at 2004-07-07 13:51 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=450647&aid=986600&group_id=47745 Category: HTTP Adaptor Group: Release 2.0.1 Status: Open Resolution: None Priority: 5 Submitted By: stuart barlow (sgbarlow) Assigned to: Nobody/Anonymous (nobody) Summary: using system classloader to access resources Initial Comment: I am attempting to use MX4J in JBoss and the HTTPAdaptor cannot find its xsl files. The jboss console displays the following error... 16:04:43,372 INFO [STDOUT] Exception during http request 16:04:43,372 INFO [STDOUT] mx4j.tools.adaptor.http.HttpException: Path /favicon.ico not found 16:04:43,372 INFO [STDOUT] at mx4j.tools.adaptor.http.DefaultProcessor.notFoundElement(DefaultP rocessor.java:91) 16:04:43,372 INFO [STDOUT] at mx4j.tools.adaptor.http.HttpAdaptor.findUnknownElement(HttpAdapto r.java:804) 16:04:43,372 INFO [STDOUT] at mx4j.tools.adaptor.http.HttpAdaptor$HttpClient.run(HttpAdaptor.ja va:975) And you only get xml displayed in the browser. Instead of using the system classloader it should instead call the following in the constructor of class XSLTProcessor... targetClassLoader = this.getClass().getClassLoader(); This will then use the classloader specific to the application that loaded the MX4J classes. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=450647&aid=986600&group_id=47745 ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com