> 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
>
zip:D:/bea/wlserver6.1/config/mydomain/applications/.wlnotdelete/wl_comp5101
> 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
directly.

>
> 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.

Regards,
   Konstantin Piroumian

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to