cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piroumian, Konstantin" <>
Subject Re: ServletConfig.getRealPath
Date Tue, 29 Jan 2002 08:00:30 GMT
> After spending quite some time trying to get rid of getRealPath (or work
> around it), I came across these problems.
> 1) In war format, under Weblogic 6.1, library jars under WEB-INF/lib arent
> accessible directly the file system. The URI to a war file is similar to
> 8.war!/

Why do you need to access jars in /lib directly? Any servlet container has
to provide access to jars in WEB-INF/lib and there is no need to access them

> That doesnt help much because only Weblogic knows how to interpret its
> implementation of the zip: URI.

It doesn't violate the specification. To get direct access to webapp
resources you should use getResource() and getResourceAsStream() which will
hide all the implementation details, such as the access protocol or so.

> 2) Creation of Sitemap fails because all the libraries are in the war file
> and inaccessible (atleast via File API).

Does Cocoon use a special classloader? If yes - then the problem is in it.

   Konstantin Piroumian

> I am out of ideas w.r.t Cocooon working in a war file. Please advice.
> Nitin
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, email:

To unsubscribe, e-mail:
For additional commands, email:

View raw message