I'm not sure, but you may need to configure the "basicAuthentication" mode and/or the username and password in the UrlResource, depending on how you set up guvnor.
On 05/14/2013 09:52 PM, abhinay_agarwal wrote: > No help. > > It throws me the same exception > > SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". > SLF4J: Defaulting to no-operation (NOP) logger implementation > SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further > details. > java.lang.RuntimeException: KnowledgeAgent exception while trying to > deserialize KnowledgeDefinitionsPackage > at > org.drools.agent.impl.KnowledgeAgentImpl.createPackageFromResource(KnowledgeAgentImpl.java:796) > at > org.drools.agent.impl.KnowledgeAgentImpl.addResourcesToKnowledgeBase(KnowledgeAgentImpl.java:1103) > at > org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgentImpl.java:844) > at > org.drools.agent.impl.KnowledgeAgentImpl.buildKnowledgeBase(KnowledgeAgentImpl.java:684) > at > org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:207) > at > org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:186) > at > com.infosys.fps.drools.adapter.DroolsAdapter.readKnowledgeBase(DroolsAdapter.java:61) > at > com.infosys.fps.drools.adapter.DroolsAdapter.main(DroolsAdapter.java:17) > Caused by: java.io.IOException: Server returned HTTP response code: 401 for > URL: > http://bbsrprd02:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/Goal%20Creation%20Charges/LATEST > at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown > Source) > at org.drools.io.impl.UrlResource.grabStream(UrlResource.java:210) > at org.drools.io.impl.UrlResource.getInputStream(UrlResource.java:146) > at > org.drools.agent.impl.KnowledgeAgentImpl.createPackageFromResource(KnowledgeAgentImpl.java:759) > ... 7 more > > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Problem-migrating-from-newClassPathResource-to-newUrlResource-tp4023490p4023818.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-users > _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
