<div>Hi All,</div>
<div>I have a snaphot URL as : <a href="http://localhost:8080/drools-jbrms/org.drools.brms.JBRMS/package/org.acme.insurance.base/InsuranceDemo">http://localhost:8080/drools-jbrms/org.drools.brms.JBRMS/package/org.acme.insurance.base/InsuranceDemo</a>.</div>
<div>I configured above URL in one propertied file and accessing in one class i written flollowing code in the class that iam going to execute.</div>
<div> </div>
<div>private static RuleBase loadRuleBaseFromRuleAgent() {<br> RuleAgent agent = RuleAgent.newRuleAgent( "/brmsdeployedrules.properties" );<br> RuleBase rulebase = agent.getRuleBase();<br> return rulebase;<br>
}<br clear="all"><strong><u><font color="#ff0000">But iam getting following error :</font></u></strong></div>
<div> </div>
<div>RuleAgent(insuranceconfig) INFO (Mon Mar 03 18:52:13 PST 2008): Configuring with newInstance=true, secondsToRefresh=30<br>RuleAgent(insuranceconfig) INFO (Mon Mar 03 18:52:13 PST 2008): Configuring package provider : URLScanner monitoring URLs: <a href="http://localhost:8080/drools-jbrms/org.drools.brms.JBRMS/package/org.acme.insurance.base/InsuranceDemo">http://localhost:8080/drools-jbrms/org.drools.brms.JBRMS/package/org.acme.insurance.base/InsuranceDemo</a><br>
RuleAgent(insuranceconfig) EXCEPTION (Mon Mar 03 18:52:18 PST 2008): org.drools.rule.PackageCompilationData. Stack trace should follow.<br>java.lang.ClassNotFoundException: org.drools.rule.PackageCompilationData<br> at java.net.URLClassLoader$1.run(Unknown Source)<br>
at java.security.AccessController.doPrivileged(Native Method)<br> at java.net.URLClassLoader.findClass(Unknown Source)<br> at java.lang.ClassLoader.loadClass(Unknown Source)<br> at java.lang.ClassLoader.loadClass(Unknown Source)<br>
at org.apache.maven.surefire.booter.IsolatedClassLoader.loadClass(IsolatedClassLoader.java:100)<br> at java.lang.ClassLoader.loadClassInternal(Unknown Source)<br> at java.lang.Class.forName0(Native Method)<br> at java.lang.Class.forName(Unknown Source)<br>
at java.io.ObjectInputStream.resolveClass(Unknown Source)<br> at org.drools.common.DroolsObjectInputStream.resolveClass(DroolsObjectInputStream.java:83)<br> at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)<br>
at java.io.ObjectInputStream.readClassDesc(Unknown Source)<br> at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)<br> at java.io.ObjectInputStream.readObject0(Unknown Source)<br> at java.io.ObjectInputStream.readObject(Unknown Source)<br>
at org.drools.rule.Package.readExternal(Package.java:177)<br> at java.io.ObjectInputStream.readExternalData(Unknown Source)<br> at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)<br> at java.io.ObjectInputStream.readObject0(Unknown Source)<br>
at java.io.ObjectInputStream.readObject(Unknown Source)<br> at org.drools.agent.HttpClientImpl.fetchPackage(HttpClientImpl.java:54)<br> at org.drools.agent.URLScanner.readPackage(URLScanner.java:137)<br> at org.drools.agent.URLScanner.getChangeSet(URLScanner.java:109)<br>
at org.drools.agent.URLScanner.loadPackageChanges(URLScanner.java:88)<br> at org.drools.agent.RuleAgent.checkForChanges(RuleAgent.java:330)<br> at org.drools.agent.RuleAgent.refreshRuleBase(RuleAgent.java:298)<br> at org.drools.agent.RuleAgent.configure(RuleAgent.java:284)<br>
at org.drools.agent.RuleAgent.init(RuleAgent.java:208)<br> at org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:176)<br> at org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:148)<br> at org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:216)<br>
at org.acme.insurance.web.InsuranceSessionHelper.loadRuleBaseFromRuleAgent(InsuranceSessionHelper.java:26)<br> at org.acme.insurance.web.InsuranceSessionHelper.getSession(InsuranceSessionHelper.java:17)<br> at org.acme.insurance.test.SupplementalInfoTest.setUp(SupplementalInfoTest.java:23)<br>
at junit.framework.TestCase.runBare(TestCase.java:125)<br> at junit.framework.TestResult$1.protect(TestResult.java:106)<br> at junit.framework.TestResult.runProtected(TestResult.java:124)<br> at junit.framework.TestResult.run(TestResult.java:109)<br>
at junit.framework.TestCase.run(TestCase.java:118)<br> at junit.framework.TestSuite.runTest(TestSuite.java:208)<br> at junit.framework.TestSuite.run(TestSuite.java:203)<br> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<br> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<br> at java.lang.reflect.Method.invoke(Unknown Source)<br> at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)<br>
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135)<br> at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)<br>
at org.apache.maven.surefire.Surefire.run(Surefire.java:129)<br> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<br> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<br>
at java.lang.reflect.Method.invoke(Unknown Source)<br> at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)<br> at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)<br>
RuleAgent(insuranceconfig) WARNING (Mon Mar 03 18:52:18 PST 2008): Was unable to load a class when loading a package. Perhaps it is missing from this application.</div>
<div> </div>
<div>Please help me out to resolve the above issue...<br>-- <br>Regards,<br>SB.Raghavendra. </div>