2016-04-22 7 views
0

Dieser Fehler ist aufgetreten, während PricingRuleDTExample (oder ein Beispiel) von drools-examples auf Drools6kann nicht die Erklärung des Elements 'kmodule' gefunden

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'. 

Antwort

0

Das Problem läuft, weil kmodule.xml Namespace-Deklaration ist:

<kmodule xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xmlns="http://www.drools.org/xsd/kmodule"> 

das ist pre-drools6 erklärung. Die Lösung bestand darin, sie in

<kmodule xmlns="http://jboss.org/kie/6.0.0/kmodule"> 
zu ändern