我在stackoverflow中提到了几个关于将drools app与guvnor集成的问题,但仍然不清楚。我有独立的drools应用程序,DRL文件中的规则使用属于我的应用程序的自定义java类。对于Guvnor集成,我已将DRL文件上载到适当的包中,并将所需的类文件作为单独的模型JAR上载。我在独立应用程序中使用knowledgeAgent,并且指向包含URL的变更集xml,如this帖子中所建议的那样暴露出来的异常被抛出
java.lang.RuntimeException:尝试反序列化KnowledgeDefinitionsPackage时的KnowledgeAgent异常
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) 引起:java.io.IOException:服务器返回HTTP响应代码:500为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个
有人可以帮我解决将Drools应用程序与Guvnor集成的一步一步的活动吗?
提前致谢!