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.