Under 3.2 it worked...
And there are no spaces in any of the paths involved...

All of this is under NT4.0, jdk 1.4.0:

I have a xxx.sar, in which an xml resource is loaded with

URL configURL = 
Thread.currentThread().getContextClassLoader().getResource("myresource.xml");
Source xmlSource = new StreamSource(configURL.openConnection().getInputStream());

where myresource.xml lies in the root dir of the xxx.sar.

This xxx.sar is packed in a yyy.ear (ear-scoped), and everything works fine under 3.2.

The same yyy.ear does not work under 4.0 (fresh HEAD as of today)
and bugs me with a IOException (file not found).

Now what is "the right way" of doing this (preferably working under 3.2 and 4.0)?
Or have I found a bug in 4.0?

(I assume you don't want to ask me to put the myresource.xml in the root of the 
yyy.ear?
This would hurt my build process in an ugly way.)

Thanks,
Michael Bartmann



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to