在Drools6上从drools-examples运行PricingRuleDTExample(或任何示例)时发生此错误
2016-04-22 12:55:57,476 [main] ERROR Unable to build index of kmodule.xml url=file:/C:/Users/xxxx/workspace/drools-examples/target/classes/META-INF/kmodule.xml
org.xml.sax.SAXParseException; systemId: file:/C:/Users/xxxx/workspace/drools-examples/target/classes/META-INF/kmodule.xml; lineNumber: 4; columnNumber: 52; cvc-elt.1: Cannot find the declaration of element 'kmodule'.
答案 0 :(得分:0)
问题是因为kmodule.xml名称空间声明是:
<kmodule xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.drools.org/xsd/kmodule">
这是pre-drools6声明。解决方法是将其更改为
<kmodule xmlns="http://jboss.org/kie/6.0.0/kmodule">