Drools:cvc-elt.1: Unable to find the element ' Kmodule ' declaration

Source: Internet
Author: User

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>  

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.