2016-04-22 53 views
0

在运行PricingRuleDTExample这个错误发生的从drools-examples声明(或任何实例)有关Drools6找不到元素“KMODULE”

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

问题是因为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">