resource loading problem

"Storhaug, Henning" <[email protected]>
Newsgroups gmane.comp.java.tapestry.devel
Message-ID <[email protected]>
> I'm having problems loading resources from WEB-INF/classes 
> using JBoss 3.0.4 w/integrated Jetty. I have placed my application file as
follows:
> "WEB-INF/classes/intraweb/Intraweb.application".

I've done some research, and found something strange:
If I bundled my war inside an ear, I was able to load the resource using the
following lines of code:

        ClassLoader cl = Thread.currentThread().getContextClassLoader();
        java.net.URL resource =
cl.getResource("intraweb/Intraweb.application");

Effectively the same code is used in DefaultResourceResolver.getResource(),
but the ApplicationServlet is _not_ able to load the resource. 

Do you have any suggestions what may cause this behaviour?





-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.