Re: [JBoss-user] Re: resource-loading in .war

2002-11-11 Thread James Cleary
Good question. Not sure.ClassLoaders must be different? Try printing them out: getClass().getClassLoader() vs Thread... - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 08, 2002 11:17 PM Subject: [JBoss-user] Re: resource-loading in .war Case

[JBoss-user] Re: resource-loading in .war

2002-11-08 Thread Storhaug, Henning
Thanks James, I tried your recipe but no progress. I've put the war inside an ear with no luck. I'm using Tapestry (web-framework), and it cannot locate the application specification in web-inf/classes. I'm trying to look it up manually (rationale - strange bug in tapestry?), but still the same.

[JBoss-user] Re: resource-loading in .war

2002-11-08 Thread Storhaug, Henning
Seems like you're right after all James, I just had to remove the leading / in the resource path. :) 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 =

[JBoss-user] Re: resource-loading in .war

2002-11-08 Thread Storhaug, Henning
Case closed - the problem is in the tapestry library version 2.2. I browsed the wrong version. :p But why does getClass().getResource() fail? Is Thread.currentThread.getContextClassLoader() always the way to go? - Henning Seems like you're right after all James, I just had to remove the