Drools Import project, using Kie API, step reference: http://blog.csdn.net/wo541075754/article/details/74651552
According to the above blog Kmodule.xml the following content
<?xml version= "1.0" encoding= "UTF-8"?> <kmodule xmlns=
"Http://www.drools.org/xsd/kmodule" >
<kbase name= "Kbase1" packages= "Rules.test" >
<ksession name= "session"/>
</kbase>
</kmodule>
The main kmodule.xml file must be placed in the Resources/meta-inf directory, no manual in this directory is created in the project, or the file cannot be found.
Still error: File:/users/jikuan.zjk/documents/workspace/paas/paas-app-adha/target/classes/meta-inf/kmodule.xml; Linenumber:2; columnnumber:106; Cvc-elt.1: Unable to find the element ' Kmodule ' declaration
XML is found, except that the kmodule element is not found
It can be solved by modifying the following
<?xml version= "1.0" encoding= "UTF-8"?> <kmodule xmlns=
"Http://jboss.org/kie/6.0.0/kmodule" >
<kbase name= "Kbase1" packages= "Rules.test" >
<ksession name= "session"/>
</kbase>