Thanks Paul. After putting Jar files in the application lib folder,application is executing properly........ <br><br>
<div><span class="gmail_quote">On 3/4/08, <b class="gmail_sendername">Paul Browne</b> <<a href="mailto:paulb@firstpartners.net">paulb@firstpartners.net</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div text="#000000" bgcolor="#ffffff">SB,<br><br>Came across this a while back. I *think* the quickest fix is to update any Drools Jars (that exist *within* the Web / War insurance sample) and make sure they are the same versions as that of the BRMS that you are using.<br>
<br>Paul<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.firstpartners.net/blog" target="_blank">www.firstpartners.net/blog</a><br><br>SB.Raghavendra wrote:
<blockquote type="cite">
<div><span class="e" id="q_11879271205dd7b8_1">
<div>Hi All,</div>
<div>I have a snaphot URL as : <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://localhost:8080/drools-jbrms/org.drools.brms.JBRMS/package/org.acme.insurance.base/InsuranceDemo" target="_blank">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 onclick="return top.js.OpenExtLink(window,event,this)" href="http://localhost:8080/drools-jbrms/org.drools.brms.JBRMS/package/org.acme.insurance.base/InsuranceDemo" target="_blank">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></span></div><pre><hr width="90%" size="4">
_______________________________________________
rules-users mailing list
<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre></blockquote><br> </div><br>_______________________________________________<br>rules-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br></blockquote></div><br>
<br clear="all"><br>-- <br>Regards,<br>SB.Raghavendra.