<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hi Shahad, <div><br class="webkit-block-placeholder"></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>You are right, the binary in resources directory is deprecated, But as you can see I'm using the RuleAgent url to access deployed stuff (<span class="Apple-style-span" style="font-family: Helvetica; "><a href="http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-examples/drools-examples-brms/src/main/brmsdeployedrules.properties">http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-examples/drools-examples-brms/src/main/brmsdeployedrules.properties</a> )<span class="Apple-style-span" style="font-family: Monaco; ">, I think for compatibility issues will be better remove the compiled package in resources dir. </span></span></div><div><br class="webkit-block-placeholder"></div><div>Thanks for your feedback </div><div><br class="webkit-block-placeholder"></div><div><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div>Fernando Meyer <a href="http://fmeyer.org">http://fmeyer.org</a></div><div><a href="mailto:fmcamargo@gmail.com">fmcamargo@gmail.com</a></div><div><div>PGP: 0xD804DDFB</div><div><br></div></div><br class="Apple-interchange-newline"></span> </div><br><div><div>On Jul 30, 2007, at 1:26 PM, Shahad Ahmed wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><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's how I got the example working:</p><p>1. I assume you've already loaded the example repository from repository_export.xml as described in Fernando's instructions for the BRMS example in the drools 4.0GA manual (section 9, which incidentally doesn't have a table of contents entry, so you have to scroll down to near the end of the manual). Click the Packages option on the left-hand side of the BRMS page. Select the org.acme.insurance package in the Explore tab. Click on "build, validate and deploy" for this package. Then click the "Build Package" 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 "Build Package" button called "create Snapshot for Deployment". 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. 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'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 "download binary package" in step 1, after clicking "Build Package". </p> <div>Also note that you get the same problem if you use the "BRMS Drools 4.0.0 BRMS Standalone" 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> <<a href="mailto:davidnm@gmail.com">davidnm@gmail.com</a>> 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>><br>> use double \ in your config. file<br>><br>> ex. D:\\workspace2\\drools-example-brms\\cache<br>><br>><br>><br>> Fernando Meyer <a href="http://fmeyer.org"> http://fmeyer.org</a><br>> <a href="mailto:fmcamargo@gmail.com">fmcamargo@gmail.com</a><br>> PGP: 0xD804DDFB<br>><br>><br>><br>> On Jul 19, 2007, at 9:31 AM, David Nogueras wrote:<br>><br>>> Hi, I´m trying to run the brms sample and i get the next output: <br>>><br>>> RuleAgent(insuranceconfig) INFO (Thu Jul 19 14:27:44 CEST 2007):<br>>> Configuring with newInstance=true, secondsToRefresh=30<br>>> RuleAgent(insuranceconfig) INFO (Thu Jul 19 14:27:44 CEST 2007): <br>>> Configuring package provider : URLScanner monitoring URLs: http://<br>>> localhost:8080/drools-jbrms/org.drools.brms.JBRMS/package/<br>>> org.acme.insurance/David2 with local cache dir of D:\workspace2 <br>>> \drools-example-brms\cache<br>>> RuleAgent(insuranceconfig) WARNING (Thu Jul 19 14:27:44 CEST 2007):<br>>> Falling back to local cache.<br>>> java.lang.NullPointerException<br>>> at org.drools.agent.FileScanner.readPackage(FileScanner.java:101)<br>>> at org.drools.agent.FileScanner.getChangeSet (FileScanner.java:79)<br>>> at org.drools.agent.FileScanner.loadPackageChanges<br>>> ( FileScanner.java:57)<br>>> at org.drools.agent.URLScanner.loadPackageChanges<br>>> (URLScanner.java:93)<br>>> at org.drools.agent.RuleAgent.checkForChanges (RuleAgent.java:291)<br>>> at org.drools.agent.RuleAgent.refreshRuleBase(RuleAgent.java:259)<br>>> at org.drools.agent.RuleAgent.configure(RuleAgent.java:228)<br>>> at org.drools.agent.RuleAgent.init(RuleAgent.java:160)<br>>> at org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:169)<br>>> at org.acme.insurance.launcher.InsuranceBusiness.loadRuleBase<br>>> (InsuranceBusiness.java:26)<br>>> at org.acme.insurance.launcher.InsuranceBusiness.executeExample <br>>> (InsuranceBusiness.java:14)<br>>> at org.acme.insurance.launcher.MainClass.main(MainClass.java:13)<br>>><br>>> could someone help me?<br>>> _______________________________________________ <br>>> rules-users mailing list<br>>> <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>>> <a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users </a><br>><br>><br>> _______________________________________________<br>> rules-users mailing list<br>> <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>> <a href="https://lists.jboss.org/mailman/listinfo/rules-users"> https://lists.jboss.org/mailman/listinfo/rules-users</a><br>><br>><br><br>--<br>View this message in context: <a href="http://www.nabble.com/drools-example-brms-tf4110522.html#a11702935">http://www.nabble.com/drools-example-brms-tf4110522.html#a11702935 </a><br>Sent from the drools - user mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br><br><br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org"> rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div><br><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">rules-users mailing list</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a></div> </blockquote></div><br></div></body></html>