Take that back.<br><br>I see ge0ffrey merged....<br><br><div class="gmail_quote">On 16 November 2011 17:51, Michael Anstis <span dir="ltr">&lt;<a href="mailto:michael.anstis@gmail.com">michael.anstis@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">The patch has not been applied yet.<br><br>@esteban, did you modify to (a) include the other two changes, (b) a test-case?<br>
<br>Cheers,<br><br>Mike<div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">2011/11/16 Esteban Aliverti <span dir="ltr">&lt;<a href="mailto:esteban.aliverti@gmail.com" target="_blank">esteban.aliverti@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think you are fighting with this known bug: <a href="https://issues.jboss.org/browse/GUVNOR-1699" target="_blank">https://issues.jboss.org/browse/GUVNOR-1699</a><br clear="all">

<br>ResourceChangeScanner is marking guvnor&#39;s resources as removed. I committed a patch some days ago.<div>

If you are not interested in keep the kbase in sync with the changes made in Guvnor, a valid workaround could be not to use the kagent and get the pkg directly from Guvnor&#39;s URL</div><div><br></div><div>Best Regards,</div>



<div><div><div><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>




<br><br></div><div><div><div class="gmail_quote">On Wed, Nov 16, 2011 at 3:43 PM, sgo <span dir="ltr">&lt;<a href="mailto:simon.goumaz@elca.ch" target="_blank">simon.goumaz@elca.ch</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



Update: if I don&#39;t start the resource change scanner, the session created<br>
with Spring is fine too. So, when starting the scanner, the difference<br>
between the Spring case (package loaded but no rules) and the Java code case<br>
(no package at all) may be due to code sequence, as in the code I&#39;m using<br>
the scanner is started in my service class constructor, after creating the<br>
session in Java code but before Spring beans are injected. Depending on your<br>
replies I may then try testing with different sequences.<br>
<div><br>
<br>
sgo wrote:<br>
&gt;<br>
&gt; @Michael:<br>
&gt;<br>
&gt; Yes this is the right track... I created an alternate session without<br>
&gt; Spring by simply loading the package from the URL with a KnowledgeBuilder,<br>
&gt; it worked (the rules were there).<br>
&gt;<br>
&gt; Then I went on and created another session with a KnowledgeAgent loading<br>
&gt; my XML ChangeSet (still without Spring), and I observed the following:<br>
&gt; 1. When the session is created, all is fine (package and rules loaded<br>
&gt; properly in session)<br>
&gt; 2. When I start the ResourceChangeScanner<br>
&gt; (ResourceFactory.getResourceChangeScannerService().start()), however, the<br>
&gt; loaded package disappears from the session.<br>
&gt;<br>
&gt; So there are now two things I need to understand:<br>
&gt; 1. Why does starting the scanner clear the packages loaded in the session?<br>
&gt; 1. What is the issue when using Spring, as with Spring I still have my<br>
&gt; package loaded in the session but no rules?<br>
&gt;<br>
<br>
<br>
</div><span><font color="#888888">--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/No-rules-loaded-when-reading-package-from-Guvnor-tp3510245p3512855.html" target="_blank">http://drools.46999.n3.nabble.com/No-rules-loaded-when-reading-package-from-Guvnor-tp3510245p3512855.html</a><br>




</font></span><div><div>Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br></div></div></div></div>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a 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>
</div></div></blockquote></div><br>