I have referred few questions in stackoverflow on integrating drools app with guvnor and still not clear on this. I have standalone drools application, the rules in DRL file uses custom java classes that are part of my application. For Guvnor integration, I have uploaded the DRL file under appropriate package and uploaded required class files as an individual model JAR. I use knowledgeAgent in standalone application and changeset xml pointing to package URL which guvnor exposes as suggested in this post and below exception is thrown
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) Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost.com/guvnor-5.5.0.Final-tomcat-6.0/org.drools.guvnor.Guvnor/package/com/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) ... 8 more
Can someone help me with step by step activities involved in integrating Drools application with Guvnor?
Thanks in advance!