Spring and drools consolidation encounter problems cvc-complex-type.2.4.c

Source: Internet
Author: User
Tags jboss keybase

Drools Version: 5.3

Error description

cvc-complex-type.2.4.c:the Matching wildcard is strict, but no declaration can being found for element drools:keybase

The Keybase node was not found from the error message

Schema configuration:

XML Code http://drools.org/schema/drools-spring Http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/droo Ls-container/drools-spring/src/main/resources/org/drools/container/spring/drools-spring-1.0.0.xsd ">

Such a configuration in the case of networking without problems, when the network broke out after the error prompted,

Reason:

You cannot find a schema with a namespace of "http://drools.org/schema/drools-spring" in the classpath, so you will be able to find it online but you will not be able to find it and throw an error.

Tangle:

But in the drools-spring-1.0.0.xsd where the Drools-spring.jar has been introduced also explains Drools-spring-1.0.0.xsd under the classpath, what is the cause of it?

Solve:

Finally found a trick, decompression Drools-spring.jar open Meta-inf will find a spring.schemas file open content for

Java Code http\://drools.org/schema/drools-spring-1.5.0.xsd=org/drools/container/spring/drools-spring-1.5.0.xsd Http\://drools.org/schema/drools-spring-1.4.0.xsd=org/drools/container/spring/drools-spring-1.4.0.xsd http\:// Drools.org/schema/drools-spring-1.3.0.xsd=org/drools/container/spring/drools-spring-1.3.0.xsd http\:// Drools.org/schema/drools-spring-1.2.0.xsd=org/drools/container/spring/drools-spring-1.2.0.xsd http\:// Drools.org/schema/drools-spring.xsd=org/drools/container/spring/drools-spring.xsd http\://drools.org/schema/ Drools-service-spring.xsd=org/drools/container/spring/drools-service-spring.xsd

I'll go. The XSD in the jar package also has a mapping file that will

XML Code http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-container/drools-spring/src/main/ Resources/org/drools/container/spring/drools-spring-1.0.0.xsd

To

Java Code http://drools.org/schema/drools-spring-1.5.0.xsd

Okay, now it's ready to run.

Other:

You may encounter problems that eclipse cannot only hint at, and the workaround is to copy the package XSD file and configure eclise XML catalog. (This metropolis)

Conclusion:

All of the "cvc-complex-type.2.4.c basic " is basically due to this reason, according to this method should be able to solve.

Related Article

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.