It won't detect changes on the classpath. Needs to be file or http.

On 03/11/2010 21:49, Jason Davidson wrote:

Any tips on this?  I'm seeing this same behavior using Drools 5.1.1:

Spring Beans:

  <!-- Drools : -->

  <drools:resource-change-scanner id="scanner" interval="10" />

  <drools:kbase id="ruleKBase">


  <drools:kagent id="kagent1" kbase="ruleKBase">


     <drools:resource type="CHANGE_SET" source="classpath:drools-changeset.xml"/>




<change-set xmlns=''


    xs:schemaLocation='' > 


      <resource source=""

           type='PKG' basicAuthentication="enabled" username="admin" password="admin" />



At startup I see that the KnowledgeAgent registers a listener but never detects changes:

[2010:11:307 15:11:506:info] ResourceChangeScanner reconfigured with interval=60

[2010:11:307 15:11:506:info] ResourceChangeScanner created with default interval=60

[2010:11:307 15:11:506:info] ResourceChangeScanner reconfigured with interval=10

[2010:11:307 15:11:528:info] ResourceChangeNotification created

[2010:11:307 15:11:528:debug] ResourceChangeNotification monitor added

[2010:11:307 15:11:529:debug] KnowledgeAgent building resource map

[2010:11:307 15:11:529:info] KnowledegAgent has started listening for ChangeSet notifications

[2010:11:307 15:11:529:info] KnowledgeAgent created, with configuration:

monitorChangeSetEvents=true scanResources=true scanDirectories=true newInstance=true

[2010:11:307 15:11:530:info] KnowledgeAgent applying ChangeSet

[2010:11:307 15:11:531:debug] KnowledgeAgent processing sub ChangeSet=[ClassPathResource path='drools-changeset.xml']

[2010:11:307 15:11:919:debug] KnowledgeAgent notifier subscribing to resource=[UrlResource path='']

[2010:11:307 15:11:920:debug] ResourceChangeNotification subscribing listener=org.drools.agent.impl.KnowledgeAgentImpl@d2a7c1e to resource=[UrlResource path='']

[2010:11:307 15:11:920:debug] ResourceChangeScanner subcribing to resource=[UrlResource path='']

[2010:11:307 15:11:920:debug] KnowledgeAgent rebuilding KnowledgeBase using ChangeSet



2010/9/23 Clandes Tino <>
I've also faced the same problem.
Hope somebody could give a hint.
thanks & best,

--- On Mon, 20/9/10, Graham Thomson <> wrote:

From: Graham Thomson <>
Subject: [rules-users] Starting resource change scanner and notifier in drools-server.
Date: Monday, 20 September, 2010, 15:24


I would like to ask for help with setting up drools-server with Guvnor. I am using version 5.1.1 of both.

I am trying to set up an instance of drools-server in Tomcat that periodically loads new updates of packages published in Guvnor (both drools-server and Guvnor run in the same instance of Tomcat).

My change set definition is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<change-set xmlns=''
    <resource source='http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/<one of my packages>/LATEST'
      type='PKG' basicAuthentication="enabled" username="<username>" password="" />
    <resource source="http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/<another of my packages>/LATEST"
      type="PKG" basicAuthentication="enabled" username="<username>" password="" />

My knowledge-services.xml configuration is as follows (based on the unit test examples highlighted in

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=""

  <drools:resource-change-scanner id="s1" interval="5" />

  <drools:execution-node id="node1" />

  <drools:ksession id="ksession1" type="stateless" kbase="kbase1" node="node1"/>

  <drools:kbase id="kbase1" node="node1" />

  <drools:kagent id="kagent1" kbase="kbase1">
      <drools:resource type="CHANGE_SET" source="classpath:changeset.xml" />

On loading drools-server, the resources listed in the change set are loaded and available.

The problem is that when a new package built and published in Guvnor, drools-server does not detect this and update itself. The effect is the same as if a KnowledgeAgent were used locally and


were not called. This leads me to the assumption that drools-server does not start these services by default.

My question is then can/how do I configure drools-server to start these services such that it will update new changes from Guvnor automatically?

Thanks a lot for any help you can offer,



-----Inline Attachment Follows-----

rules-users mailing list

rules-users mailing list

_______________________________________________ rules-users mailing list