I'm trying to load an XSL file into a POJO that's packaged in a JAR deployed 
within an EAR, but nothing I try seems to work.  It worked when deployed in a 
WAR in the EAR.

I've tried:


  | String xslFile = "file.xsl"; // xslFile IS in the same dir/package as the 
class
  | InputStream is = 
Thread.currentThread().getContextClassLoader().getResourceAsStream(xslFile);
  | 


  | String xslFile = "file.xsl"; // xslFile IS in the same dir/package as the 
class
  | InputStream is = 
this.getClass().getClassLoader().getResourceAsStream(xslFile);
  | 

But "is" is always null!

Thanks,
Pat


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

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


_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to