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