Yeah!!!!!  It works, Michael.   Thanks



2010/12/18 Michael Anstis <michael.anstis@gmail.com>
AFAIK you'd need to run 5.1 against BRMS 5.1, as the code to handle sending authentication details wasn't introduced until 5.1...

2010/12/18 Benson Fung <benson.fung@redhat.com>

Yes, I tried to put the URL on the browser, and I am prompted to download the PKG file without any problem.  So that is the thing I am wondering.

I am using Drools 5.0.2 version.


Thanks


2010/12/18 Michael Anstis <michael.anstis@gmail.com>

Have you tried accessing the URL from a browser to confirm you are prompted for a username and password and that the credentials you show can be confirmed as valid?

What version of Drools are you running client side too?

2010/12/18 Benson Fung <benson.redhat@gmail.com>
Hi

I am using the BRMS 5.1 with the following change-set.xml at the client side.

<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 http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd' >
    <add>
         <resource source='http://192.168.11.8:8080/jboss-brms/org.drools.guvnor.Guvnor/package/axaDemoPackage/LATEST' type='PKG' basicAuthentication="enabled" username="admin" password="admin"/>
    </add>
</change-set>


Howerver, I still get the following exceptions.  Please help

Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL: http://192.168.11.8:8080/jboss-brms/org.drools.guvnor.Guvnor/package/axaDemoPackage/LATEST
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
    at org.drools.io.impl.UrlResource.getInputStream(UrlResource.java:76)
    at org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgentImpl.java:407)
    ... 3 more


Thanks

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




--
Benson Fung
Solution Architect, Global Services, Greater China
| Redhat Hong Kong Limited || 45/F., The Lee Gardens, 33 Hysan Avenue, Causeway Bay, Hong Kong || Office : 852-31802332 || Cell : 852-98369898 || benson.fung@redhat.com || http://www.hk.redhat.com||

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




--
Benson Fung
Solution Architect, Global Services, Greater China
| Redhat Hong Kong Limited || 45/F., The Lee Gardens, 33 Hysan Avenue, Causeway Bay, Hong Kong || Office : 852-31802332 || Cell : 852-98369898 || benson.fung@redhat.com || http://www.hk.redhat.com||