Hi Ken,

anyhow the WEB-INF is a protected Target therefore you are not allowed
to browse, and yes
there is a flag you need to set in Tomcat to disable it :)

But you still can get the resources you want.
So I strongly suggest if you need browsing "keep your fingers" of
WEB-INF, META-INF, OSGI-INF or OSGI-OPT :)

regards, Achim

> Hi Achim
>
> | OK, now I got you, you are not permitted to read the WEB-INF 
> | directory, that's blocked by the ResouceServlet, so moving 
> | these files in another directory does work.
> | I wonder why this worked for you with tomcat since WEB-INF 
> | should always be protected. This way someone else would be 
> | able to read your web.xml including possible credentials. So 
> | if you move these files to another directory it should work.
>
> With both Tomcat and Pax Web I can happily read files under WEB-INF. (This 
> also
> works on three other department installations of Tomcat on different 
> platforms.)
> Maybe there is an optional security setting for this which is turned off by
> default.
>
> But getResourceAsStream() doesn't work with directories, whether under WEB-INF
> or not. I needed to read a directory, so I had to implement a work-around.
>
> Thanks, Ken
>
>
>


_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to