Hi,
This error would be basic one but it's very frustrating to me to debug this, few days
ago it use to work.
I deployed guvnor 5.1.1 war into web logic 10.3, created package with 4 rules, build and
deploy, got package url.
Started using package url in properties file and passing file to RuleAgent api, suddenly
it started giving HTTP response code: 401 for URL.
Any thoughts on this issue would be greatly appreciated.
Below is the content of properties file and Client code.
{url=http://10.117.39.51:7001/Guvnor5.1.1/org.drools.guvnor.Guvnor/package/com.tmobile.pos.rules/LATEST
, name=myrules, username=weblogic, poll=30, newInstance=true,
localCacheDir=C:\Installed\workspaces\drools\POC\bin,
workspacepath=C://bea/user_projects/domains/posdomain, password=weblogic123,
enableBasicAuthentication=true}
Error:
RuleAgent(myrules) INFO (Fri Nov 26 15:19:00 IST 2010): Configuring with newInstance=true,
secondsToRefresh=30
RuleAgent(myrules) INFO (Fri Nov 26 15:19:00 IST 2010): Configuring package provider :
URLScanner monitoring URLs:
http://10.117.39.51:7001/Guvnor5.1.1/org.drools.guvnor.Guvnor/package/com...
with local cache dir of C:\Installed\workspaces\drools\POC\bin
RuleAgent(myrules) EXCEPTION (Fri Nov 26 15:19:01 IST 2010): Server returned HTTP response
code: 401 for URL:
http://10.117.39.51:7001/Guvnor5.1.1/org.drools.guvnor.Guvnor/package/com....
Stack trace should follow.
java.io.IOException: Server returned HTTP response code: 401 for URL:
http://10.117.39.51:7001/Guvnor5.1.1/org.drools.guvnor.Guvnor/package/com...
Client Code: (getting error at 3rd line)
File file = new File("C:\\guvnor.properties");
properties.load(new FileInputStream(file));
RuleAgent agent = RuleAgent.newRuleAgent(properties);
RuleBase ruleBase = agent.getRuleBase();
WorkingMemory workingMemory = ruleBase.newStatefulSession();
Thanks
Kumar