http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2255 *** shadow/2255 Wed Jun 20 13:40:54 2001 --- shadow/2255.tmp.6472 Wed Jun 20 13:40:54 2001 *************** *** 0 **** --- 1,38 ---- + +============================================================================+ + | [Patch] Load required file using the Context Class Loader (needed for Coco | + +----------------------------------------------------------------------------+ + | Bug #: 2255 Product: Fop | + | Status: NEW Version: all | + | Resolution: Platform: All | + | Severity: Critical OS/Version: Other | + | Priority: Other Component: general | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: http://marc.theaimsgroup.com/?l=fop-dev&m=99305908122945&w=2 | + +============================================================================+ + | DESCRIPTION | + Hi fop-team, + + Some files like config.xml (in Options.java) and *.hyp (in Hyphenator.java) are + loaded using + getResourceAsStream on the class itself. This will not work under some class- + loaders for example + ServletExec3.1. We have faced this problem in many of the projects for example + Xalan. The + suggested fix (see attached patch) is to try using the Thread Context + ClassLoader and if that + fails then use the class'es getResourceAsStream as a fallback mechanism. I have + tested this patch + in a few environments with no problems. + + The patch is against the latest CVS. Please accept this patch. This will enable + Cocoon2 to work + without problems. This will not break anything that works now. + + Thanks, + dims + + PS: See the URL for patch. \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]