This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I am using drools API, and developed a webservice out of it.
I created rule binary package using BRMS Guvnor.
I used RuleAgent to acces the properties file.
ie RuleAgent agent = RuleAgent.newRuleAgent("/application.properties");
"application.properties" file was stored in current working directory.
I executed my application using eclipse, it was fine .
For testing purpose i deployed the application in tomcat application server.
Now it is unable to find "application.properties" file. and shows following in "catalina.out" file:
java.lang.NullPointerException at java.util.Properties$LineReader.readLine(Properties.java:418)
My question is, in which location should i keep the "application.properties" file , so that RuleAgent can access it.