Hello,
I use JBoss 3.0.3, I have a jar called ids.jar under server/default/lib. This jar contains a file scheduleServer.properties. This jar also contains a class called SchedulerPropertyManager that access the porperties file.
The method that access the properties file is :
public Properties loadResource(Properties prop, String resourceName) throws IOException {
InputStream is = ClassLoader.getSystemResourceAsStream(resourceName);
Properties result = null;
if (is != null) {
prop.load(is);
result = prop;
}
else {
throw new java.io.FileNotFoundException("Could not load resource " + resourceName);
}
return result;
}
I have a webApp called TestWar.war that contains a servlet that calls the previous method with resourceName being "scheduleServer.properties".
When I call it I always get a fileNotFoundException.
The same jar and the same war configuration under weblogic6.1 works great.
Do I miss something ?
Thanks
I found a temporary solution which is to put the property file in the JBOSS_HOME/bin directory but I want to keep this file in the JAR.
Any help would be greatly appreciated.