cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <>
Subject Re: Taglib from resource://
Date Mon, 29 Jan 2001 15:28:26 GMT
"Piroumian, Konstantin" wrote:
>     Hi!
> Can anybody tell me is it possible to place a taglib (an xsl file) into a
> jar file and set the path to it in like this:
>      =
> resource://com/protek/abs/apps/web/abs-page.xsl
> Tried to do it and get a NullPointerException at the compilation stage (I
> think, that it is because ClassLoader could not find the resource).
> Path to the JAR file added to the CLASSPATH and other classes from it are
> available and used successfully.
> When I change the path to a file:///... everything's OK.
> I need to use resource or a relative path to deploy my application to other
> servers without problems.

A note of caution:  Not all servlet engines are the same.  For instance
IBM WebSphere does not allow you to pull resources from jars loaded by
their ineptly named "PowerClassLoader".  They can only be pulled from
jars in the System ClassLoader.

View raw message