[jboss-user] [Beginners Corner] - Re: ClassLoader.getSystemResource() failing in a jar inside

2008-04-14 Thread neil1967
The first call you suggested worked. Just so I understand the difference between what the code I'd been handed was trying to do and what you suggested, did this work because the way java handles getSystemResource is such that it doesn't know which class loader to use and it has to use the one f

[jboss-user] [Beginners Corner] - Re: ClassLoader.getSystemResource() failing in a jar inside

2008-04-10 Thread PeterJ
Try: Thread.currrentThread().getContextClassLoader().getResource("META-INF/wsdl/filename.wsdl"); If that doesn't work, move the wsdl file to wsdl/filename.wsdl and try: Thread.currrentThread().getContextClassLoader().getResource("wsdl/filename.wsdl"); (Not sure if getResource will look within M