can you capture the exception for reference?  Looks like I got similar exceptions before.



On Wed, Jan 12, 2011 at 12:31 AM, bob.breitling <bob.breitling@rrd.com> wrote:

If I have a KnowledgeAgent and I create a URL Resource and set its
basicAuthenication, username and password attributes then I call the agents
applyChangeSet method I get a HTTPD 401 response from the Guvnor.  It does
not happen to my resourse which has a valid username and password, but it
happens to the resource in the changeSet xml tag.

It would seem to me that the resources that are built from the resource I
passed would inherit the basicAuthenication, username and password
attributes that I set and know work, but they don't and I get this error.

If I debug the code and filling in those values on the resource passed to
the createPackageFromResource method before the resource stream is read the
code works.

I am using the NilAuthenicator in the Guvnor components.xml and that seems
to be working.  I get access to the Guvnor without being asked for
credentials.

I tried to configure my jboss (4.2.0) in login-config.xml to allow access to
everything as guest.  But no luck.

Any suggestions?

Bob
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/KnowledgeAgent-and-applyChangeSet-tp2235189p2235189.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
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||