Community

how to load property file outside of the webapplication in Jboss server?

reply from Rose Kad in Beginner's Corner - View the full discussion

continue...

 

 

it is throwing null pointer exception...

 

but when i do the following it is working

 

System.out.println(ClassLoader.getSystemClassLoader().getResource("log4j-debug.properties").getPath());

 

where log4j-debug.properties is inside the run.jar

 

Similary  I tried with ResourceBundle. It is working for the props inside the run.jar file only.

 

At present I am placing the properties file inside the /server/conf/ folder and changed the property-server.xml and getting the properties using System.getProperty("");

 

But my question is why the property file inside the run.jar is available but not the property file from the custom lib.

 

Any help is greatly appreciated.

 

Regards,

Rose.

 

 

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community