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.
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>_______________________________________________HiI 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