users@glassfish.java.net

Re: OSGi: Static resources not found after some days

From: <forums_at_java.net>
Date: Tue, 8 Jan 2013 03:01:51 -0600 (CST)

ServletContext.getResource() method is never supposed to return you resources
located directly under WEB-INF directory. That method is supposed to return
the mapped resource for the given request path, so I am not surprised when it
returns null for WEB-INF/web.xml. There is a ServletContext.getClassLoader()
method which returns a classloader for the webapp which can return you
resources from the classpath of the web app. Sahoo

--
[Message sent by forum member 'ss141213']
View Post: http://forums.java.net/node/893652