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

PeterJ do-not-reply at jboss.com
Thu Apr 10 18:02:32 EDT 2008


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.)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143322#4143322

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143322



More information about the jboss-user mailing list