[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Deployment classpath issue in EAR

jaikiran do-not-reply at jboss.com
Thu Oct 2 10:59:58 EDT 2008


"johndubchak" wrote : 
  | 
  | And then method 2:
  | 
  | InputStream is = getClass().getClassLoader().getResourceAsStream("/config.xml");
  | 
  | The InputStream is null.  Also, I am using JBoss AS 4.2.3.
  | 
  | 

Remove the forward slash from the code. Try:

InputStream is = getClass().getClassLoader().getResourceAsStream("config.xml");




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

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



More information about the jboss-user mailing list