So I have 2 jar files referenced to my GWT Project, both reads properties file this way:
String PROPS_FILE = "Props.properties"
Properties propFile = new Properties();
propFile.load(new FileInputStream(PROPS_FILE));
BOTH jar files are coded in java and exported as JAR libraries.
The properties file are located at the war folder in dev mode.
It works properly at dev mode but when I try it when It's deployed it encounters the error
java.io.FileNotFoundException: Props.properties (No such file or directory).
Is there anyway to make this work without modifying the JARs? Thanks.
The folder structure is like this:
WAR
-WEB-INF
-Props.properties
-Props2.properties
After compiling the project to .war file and deploying using glassfish, the folder structure is like this:
(PATH ETC...)/applications/SAMPLEGWTAPP/
- -WEB-INF
- -Props.properties
- -Props2.properties