@Michael, yes, Geoffrey merged it. I couldn&#39;t finish the test I was preparing because I need to finish some stuff first :(. The fact that &quot;mvn test -Dtest=Whatever&quot; is not working is also making my life miserable :)<div>

<br></div><div>Best Regards,</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 class="gmail_quote">On Thu, Nov 17, 2011 at 2:43 PM, sgo <span dir="ltr">&lt;<a href="mailto:simon.goumaz@elca.ch">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;">

Confirmed. There is no issue loading the package from the filesystem.<br>
We do need to keep the kbase in sync without restarting our app, so for now<br>
we&#39;ll just avoid loading directly from Guvnor.<br>
<br>
Thanks a lot both for your help.<br>
<div class="im"><br>
<br>
Esteban wrote:<br>
&gt;<br>
&gt; I think you are fighting with this known bug:<br>
&gt; <a href="https://issues.jboss.org/browse/GUVNOR-1699" target="_blank">https://issues.jboss.org/browse/GUVNOR-1699</a><br>
&gt;<br>
&gt; ResourceChangeScanner is marking guvnor&#39;s resources as removed. I<br>
&gt; committed<br>
&gt; a patch some days ago.<br>
&gt; If you are not interested in keep the kbase in sync with the changes made<br>
&gt; in Guvnor, a valid workaround could be not to use the kagent and get the<br>
&gt; pkg directly from Guvnor&#39;s URL<br>
&gt;<br>
&gt; Best Regards,<br>
&gt;<br>
&gt; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>
&gt;<br>
&gt; Esteban Aliverti<br>
&gt; - Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a><br>
&gt; - Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
&gt;<br>
&gt;<br>
</div><div><div class="h5">&gt; On Wed, Nov 16, 2011 at 3:43 PM, sgo &amp;lt;simon.goumaz@&amp;gt; wrote:<br>
&gt;<br>
&gt;&gt; Update: if I don&#39;t start the resource change scanner, the session created<br>
&gt;&gt; with Spring is fine too. So, when starting the scanner, the difference<br>
&gt;&gt; between the Spring case (package loaded but no rules) and the Java code<br>
&gt;&gt; case<br>
&gt;&gt; (no package at all) may be due to code sequence, as in the code I&#39;m using<br>
&gt;&gt; the scanner is started in my service class constructor, after creating<br>
&gt;&gt; the<br>
&gt;&gt; session in Java code but before Spring beans are injected. Depending on<br>
&gt;&gt; your<br>
&gt;&gt; replies I may then try testing with different sequences.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; sgo wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; @Michael:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Yes this is the right track... I created an alternate session without<br>
&gt;&gt; &gt; Spring by simply loading the package from the URL with a<br>
&gt;&gt; KnowledgeBuilder,<br>
&gt;&gt; &gt; it worked (the rules were there).<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Then I went on and created another session with a KnowledgeAgent<br>
&gt;&gt; loading<br>
&gt;&gt; &gt; my XML ChangeSet (still without Spring), and I observed the following:<br>
&gt;&gt; &gt; 1. When the session is created, all is fine (package and rules loaded<br>
&gt;&gt; &gt; properly in session)<br>
&gt;&gt; &gt; 2. When I start the ResourceChangeScanner<br>
&gt;&gt; &gt; (ResourceFactory.getResourceChangeScannerService().start()), however,<br>
&gt;&gt; the<br>
&gt;&gt; &gt; loaded package disappears from the session.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; So there are now two things I need to understand:<br>
&gt;&gt; &gt; 1. Why does starting the scanner clear the packages loaded in the<br>
&gt;&gt; session?<br>
&gt;&gt; &gt; 1. What is the issue when using Spring, as with Spring I still have my<br>
&gt;&gt; &gt; package loaded in the session but no rules?<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; View this message in context:<br>
&gt;&gt; <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>


&gt;&gt; Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; rules-users mailing list<br>
</div></div>&gt;&gt; rules-users@.jboss<br>
<div class="im">&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
</div>&gt; rules-users@.jboss<br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/No-rules-loaded-when-reading-package-from-Guvnor-tp3510245p3515794.html" target="_blank">http://drools.46999.n3.nabble.com/No-rules-loaded-when-reading-package-from-Guvnor-tp3510245p3515794.html</a><br>


</font></span><div class="HOEnZb"><div class="h5">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">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>