Kris,
Thanks for the post, but I have tried something like that:
<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:1337/drools-guvnor/org.drools.guvnor.Guvnor/package/TEST/v0.1'
type='PKG' basicAuthentication="enabled"
username="admin" password="admin"
/>
</add>
</change-set>
And unfortunately this didn't work! D=
Sudden thought - I am running the old Drools jar files - 5.0.1. Would
these need to be updated to work with Guvnor 5.1?
Stephen
Quoting Kris Verlaenen <kris.verlaenen(a)cs.kuleuven.be>:
Stephen,
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>Kris
----- Original Message -----
From: "Stephen Mcgruer" <s0840449(a)sms.ed.ac.uk>
To: <rules-users(a)lists.jboss.org>
Sent: Wednesday, July 28, 2010 1:09 PM
Subject: [rules-users] 401 error when attempting to get PKG for changeset.
> I have the following changeset:
>
> <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:1337/drools-guvnor/org.drools.guvnor.Guvnor/package/TEST/v0.1'
> type='PKG' />
> </add>
> </change-set>
>
> I just updated to the RC of Guvnor, and my PKG address now demands a
> username and
> password when I try and access it. Anything works, which is fine, but
> how do I edit the
> changeset so that it gives the details? At the moment when I run my
> Java WAR it just
> moans that it gets a 401 from that URL...
>
> Thanks!
>
> --
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
Disclaimer:
http://www.kuleuven.be/cwis/email_disclaimer.htm
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.