cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <>
Subject [Patch] Load required file using the Context Class Loader (needed for Cocoon2)
Date Wed, 20 Jun 2001 17:08:40 GMT
Hi fop-team,

Some files like config.xml (in and *.hyp (in 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
in a few environments with no problems. 

The patch is against the latest CVS. Please accept this patch. This will enable Cocoon2 to
without problems. This will not break anything that works now.


Davanum Srinivas, JNI-FAQ Manager

Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
View raw message