Re: Jar in war to access own property files - possible?

2003-07-11 Thread Andy Scott
Actually, now its working using the this.getClass().getResourceAsStream option! Strange Thanks to everyone for their help, Andy --- Andy Scott <[EMAIL PROTECTED]> wrote: > Thanks for that, > > I've tried: > this.getClass().getResourceAsStream("/" + name); &

Re: Jar in war to access own property files - possible?

2003-07-11 Thread Andy Scott
--- Tim Funk <[EMAIL PROTECTED]> wrote: > You should be able to do this (I think) > > Are you doing: > Thread.getContextClassLoader().getResourceAsStream(...) > > -Tim > > Andy Scott wrote: > > Hi, > > I have a utility jar file that has classes using >

Jar in war to access own property files - possible?

2003-07-10 Thread Andy Scott
Hi, I have a utility jar file that has classes using property files within the jar. This jar is then put into a war as part of a seperate web application. When the webapp is run I get failures which seem to be due to the fact that the classes in the jar cannot access the property files, also in the