<div>Hi Fernando,</div>
<div>&nbsp;</div>
<div>Removing the compiled package will help, but the problem that myself and the other users have encountered also occurs with the RuleAgent url due to the incorrect version of mvel (see the first part of&nbsp;my earlier post in this thread). I suspect you will also need to update the mvel jar in the lib directory in 
<span style="FONT-FAMILY: Helvetica"><a href="http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-examples/drools-examples-brms/lib">http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-examples/drools-examples-brms/lib
</a> from mvel14-1.2pre5.jar to mvel14-1.2rc1.jar.</span></div>
<div><span style="FONT-FAMILY: Helvetica"></span>&nbsp;</div>
<div><span style="FONT-FAMILY: Helvetica">My main concern is that this&nbsp;problem is in the official 4.0 GA download option &quot;Drools 4.0.0 Examples&quot;, and consequently a lot of new users may have problems getting the BRMS examples to work. As the examples are often the first thing new users try, then it would be good to fix this and make the fix available on the Drools download page, as well updating the trunk.
</span></div>
<div><span style="FONT-FAMILY: Helvetica"></span>&nbsp;</div>
<div><span style="FONT-FAMILY: Helvetica">Regards</span></div>
<div><span style="FONT-FAMILY: Helvetica">Shahad</span></div>
<div><br><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 7/30/07, <b class="gmail_sendername">Fernando Meyer</b> &lt;<a href="mailto:fmcamargo@gmail.com">fmcamargo@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div style="WORD-WRAP: break-word">Hi Shahad,&nbsp; 
<div><br>&nbsp;</div>
<div><span style="WHITE-SPACE: pre"></span>You are right, the binary in resources directory is deprecated, But as you can see I&#39;m using the RuleAgent url to access deployed stuff (<span style="FONT-FAMILY: Helvetica">
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-examples/drools-examples-brms/src/main/brmsdeployedrules.properties" target="_blank">http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-examples/drools-examples-brms/src/main/brmsdeployedrules.properties
</a> )<span style="FONT-FAMILY: Monaco">, I think for compatibility issues will be better remove the compiled package in resources dir.&nbsp;</span></span></div>
<div><br>&nbsp;</div>
<div>Thanks for your feedback&nbsp;</div>
<div><br>&nbsp;</div>
<div><span class="q">
<div><span style="WORD-SPACING: 0px; FONT: 12px Monaco; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate">
<div>Fernando Meyer <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://fmeyer.org/" target="_blank">http://fmeyer.org</a></div>
<div><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:fmcamargo@gmail.com" target="_blank">fmcamargo@gmail.com</a></div>
<div>
<div>PGP: 0xD804DDFB</div>
<div><br>&nbsp;</div></div><br></span></div><br></span>
<div>
<div><span class="e" id="q_114180626b0392a8_3">
<div>On Jul 30, 2007, at 1:26 PM, Shahad Ahmed wrote:</div><br></span></div>
<blockquote type="cite">
<div><span class="e" id="q_114180626b0392a8_5">
<p>I had the same problem but managed to fix it. </p>
<p>I think the problem is that the repository in the BRMS insurance example was built with an old version of the MVEL library (mvel14-1.2pre5.jar) which means that some the MVEL objects defined in the example repository (in file repository_export.xml) have an incorrect serialVersionUID values when they are accessed by the BRMS web-app, which uses a (newer?) version of MVEL 
mvel14-1.2rc1.jar.</p>
<p>Here&#39;s how I got the example working:</p>
<p>1. I assume you&#39;ve &nbsp;already loaded the example repository from repository_export.xml as described in Fernando&#39;s instructions for the BRMS example in the drools 4.0GA manual (section 9, which incidentally doesn&#39;t have a table of contents entry, so you have to scroll down to near the end of the manual).&nbsp; Click the Packages option on the left-hand side of the BRMS page.&nbsp; Select the 
org.acme.insurance package in the Explore tab. Click on &quot;build, validate and deploy&quot; for this package. Then click the &quot;Build Package&quot; button. This will build a new version of the example, but using the new MVEL library. If the build worked, another button will appear below the &quot;Build Package&quot; button called &quot;create Snapshot for Deployment&quot;. Created a new snapshot and call it what you like. 
</p>
<p>2. Click the Deployment option on the left-hand-side of the BRMS window.&nbsp; Click on the Snapshot tab and then select the org.acme.insurance package. The new snapshot you created should be listed. Click the Open button beside it and copy the displayed Package URI into the 
brmsdeployedrules.properties file to replace the existing key called url – this is identical to the instructions in the manual. Save the file.</p>
<p>3. In the example eclipse project, remove the mvel14-1.2pre5.jar from the project&#39;s java build path libraries. Add in the following jars from the drools 4.0 GA binary distribution:</p>
<p>mvel14-1.2rc1.jar<br>drools-core-4.0.0.jar<br>drools-compiler-4.0.0.jar</p>
<p>Now run MainClass in the examples eclipse project. Hopefully, you will see the expected output.</p>
<p>Note that the exported binary version of the insurance example found in resources/org.acme.insurance.pkg suffers from the same issue. To get that working as well you will need to create a new version of the file by selecting &quot;download binary package&quot; in step 1, after clicking &quot;Build Package&quot;. 
</p>
<div>Also note that you get the same problem if you use the &quot;BRMS Drools 4.0.0 BRMS Standalone&quot; version that comes with Tomcat 5.5 on the download page. To fix that, find the folder drools-jbrms-1.0-standalone\shared\lib
 and then replace mvel14-1.0-SNAPSHOT.jar with the version of MVEL in the 4.0 GA binary dist - mvel14-1.2rc1.jar.</div>
<div><br>Hope this helps.</div>
<p>Shahad</p><br><br>
<div><span class="gmail_quote">On 7/20/07, <b class="gmail_sendername">davidnm</b> &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:davidnm@gmail.com" target="_blank">davidnm@gmail.com</a>&gt; wrote:
</span> 
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>I did it and i got the same, i forgot to say i´m running it on Tomcat 5.5<br>could it be the problem?<br>
<br>Thanks.<br><br><br><br>Fernando Meyer Camargo wrote:<br>&gt;<br>&gt; use double \ in your config. file<br>&gt;<br>&gt; ex. D:\\workspace2\\drools-example-brms\\cache<br>&gt;<br>&gt;<br>&gt;<br>&gt; Fernando Meyer <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://fmeyer.org/" target="_blank">
http://fmeyer.org</a><br>&gt; <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:fmcamargo@gmail.com" target="_blank">fmcamargo@gmail.com</a><br>&gt; PGP: 0xD804DDFB<br>&gt;<br>&gt;<br>&gt;<br>&gt; On Jul 19, 2007, at 9:31 AM, David Nogueras wrote:
<br>&gt;<br>&gt;&gt; Hi, I´m trying to run the brms sample and i get the next output: <br>&gt;&gt;<br>&gt;&gt; RuleAgent(insuranceconfig) INFO (Thu Jul 19 14:27:44 CEST 2007):<br>&gt;&gt; Configuring with newInstance=true, secondsToRefresh=30
<br>&gt;&gt; RuleAgent(insuranceconfig) INFO (Thu Jul 19 14:27:44 CEST 2007): <br>&gt;&gt; Configuring package provider : URLScanner monitoring URLs:&nbsp;&nbsp;http://<br>&gt;&gt; localhost:8080/drools-jbrms/org.drools.brms.JBRMS/package/
<br>&gt;&gt; org.acme.insurance/David2 with local cache dir of D:\workspace2 <br>&gt;&gt; \drools-example-brms\cache<br>&gt;&gt; RuleAgent(insuranceconfig) WARNING (Thu Jul 19 14:27:44 CEST 2007):<br>&gt;&gt; Falling back to local cache.
<br>&gt;&gt; java.lang.NullPointerException<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at org.drools.agent.FileScanner.readPackage(FileScanner.java:101)<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at org.drools.agent.FileScanner.getChangeSet (FileScanner.java:79)<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at 
org.drools.agent.FileScanner.loadPackageChanges<br>&gt;&gt; ( FileScanner.java:57)<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at org.drools.agent.URLScanner.loadPackageChanges<br>&gt;&gt; (URLScanner.java:93)<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at org.drools.agent.RuleAgent.checkForChanges
 (RuleAgent.java:291)<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at org.drools.agent.RuleAgent.refreshRuleBase(RuleAgent.java:259)<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at org.drools.agent.RuleAgent.configure(RuleAgent.java:228)<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at org.drools.agent.RuleAgent.init
(RuleAgent.java:160)<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:169)<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at org.acme.insurance.launcher.InsuranceBusiness.loadRuleBase<br>&gt;&gt; (InsuranceBusiness.java:26)<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at org.acme.insurance.launcher.InsuranceBusiness.executeExample <br>&gt;&gt; (InsuranceBusiness.java:14)<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; at org.acme.insurance.launcher.MainClass.main(MainClass.java:13)<br>&gt;&gt;<br>&gt;&gt; could someone help me?
<br>&gt;&gt; _______________________________________________ <br>&gt;&gt; rules-users mailing list<br>&gt;&gt; <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org" target="_blank">
rules-users@lists.jboss.org</a><br>&gt;&gt; <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>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; rules-users mailing list<br>&gt; <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org" target="_blank">
rules-users@lists.jboss.org</a><br>&gt; <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>&gt;<br>&gt;<br><br>--<br>View this message in context: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.nabble.com/drools-example-brms-tf4110522.html#a11702935" target="_blank">http://www.nabble.com/drools-example-brms-tf4110522.html#a11702935 
</a><br>Sent from the drools - user mailing list archive at <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://nabble.com/" target="_blank">Nabble.com</a>.<br><br><br>_______________________________________________
<br>rules-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org" target="_blank">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></blockquote></div><br></span></div>
<div style="MARGIN: 0px">_______________________________________________</div><span class="q">
<div style="MARGIN: 0px">rules-users mailing list</div>
<div style="MARGIN: 0px"><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a></div>
<div style="MARGIN: 0px"><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></div>
</span></blockquote></div><br>&nbsp;</div></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>