The problem you are having is because since 5.1, you need to authenticate to get change-sets or resources from guvnor. 
You can put authentication data in the change-set doing something like this:

<change-set xmlns='http://drools.org/drools-5.0/change-set'
           xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
           xs:schemaLocation='http://drools.org/drools-5.0/change-set
drools-change-set-5.0.xsd' >
   <add>
       <resource
source='http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST'
type='PKG' basicAuthentication="enabled" username="admin" password="admin"
/>
   </add>
</change-set>

Unfortunately, basicAuthentication, username and admin properties are not supported yet by drools-spring. A workaround could be to setup your kagent without any resource and then add it programmatically.
Please file a jira issue regarding this and let me know.

Best,     


XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


On Thu, Aug 26, 2010 at 2:16 AM, KiranP <phadatarekiran@gmail.com> wrote:

Thanks Mark,

     the test cases cleared most of my doubts but just this one......
i have a bean config like this :

<drools:kagent kbase="knowledgeBase" id="kagent" new-instance="false">
       <drools:resources>
               <drools:resource type="CHANGE_SET" source="http://localhost:8080/drools-

guvnor/org.drools.guvnor.Guvnor/package/org.mkcl.insync/LATEST/ChangeSet.xml"
/>
       </drools:resources>
</drools:kagent>

<drools:kbase id="knowledgeBase"></drools:kbase>


and now this gives me Exception as :
Server returned HTTP response code: 401 for URL:
http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/org.mkcl.insync/LATEST/ChangeSet.xml


i figured out that i cannot access the pkg without
authentication..........even if i directly try to use it through browser

I am using guvnor-standalone downloaded from drools download page....without
any changes

are there any beans i m missing which provide authentication
information?????

-----
Keep Working >>
KiranP
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-v5-1-0-KnowledgeAgent-using-Spring-Beans-tp1328921p1345991.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________