wood burning stoves 2.0*
The moose likes Web Services and the fly likes jboss drools Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "jboss drools" Watch "jboss drools" New topic

jboss drools

shekhar puttur

Joined: Mar 30, 2010
Posts: 8
Hi All
Hi All,
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:
at java.util.Properties$LineReader.readLine(Properties.java:418)
at java.util.Properties.load0(Properties.java:337)
at java.util.Properties.load(Properties.java:325)
at org.drools.agent.RuleAgent.loadFromProperties(RuleAgent.java:299)
at org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:256)
My question is, in which location should i keep the "application.properties" file , so that RuleAgent can access it.

Could you please tell me the solution.

Thanks & Regards
I agree. Here's the link: http://aspose.com/file-tools
subject: jboss drools
Similar Threads
Drools: How to persistent rule engine so that it can be resumed later?
Web.xml problems
help me with specify properties file please
Drools runtime environment
Stackoverflow without recursion