This content has been marked as final.
Show 2 replies
-
1. Re: ClassLoader.getSystemResource() failing in a jar inside
peterj Apr 10, 2008 6:02 PM (in response to neil1967)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 META-INF.) -
2. Re: ClassLoader.getSystemResource() failing in a jar inside
neil1967 Apr 14, 2008 10:30 AM (in response to 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 for the current context? Thanks for your help.