用弹簧配置流口水。 XSD错误 [英] Configure drools with spring. xsd errors
问题描述
我正在尝试使用Drools创建spring roo应用程序。但是我在applicationContext.xml中遇到了错误。
I'm trying to create spring roo application with Drools. But I faced with errors in applicationContext.xml.
错误:
多个在此行找到注释:
-无法为模式命名空间'http://drools.org/schema/
drools-spring'$ b $的元素'drools:execution-node'定位Spring NamespaceHandler b-cvc-complex-type.2.4.c:匹配的通配符很严格,但是找不到元素'drools:execution-node'的声明。
Multiple annotations found at this line: - Unable to locate Spring NamespaceHandler for element 'drools:execution-node' of schema namespace 'http://drools.org/schema/ drools-spring' - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'drools:execution-node'.
这是一段applicationContext.xml:
this is a piece of applicationContext.xml:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:jee="http://www.springframework.org/schema/jee"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:drools="http://drools.org/schema/drools-spring"
xsi:schemaLocation="http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.1.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.1.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd
http://drools.org/schema/drools-spring http://drools.org/schema/drools-spring.xsd">
在连接流口水时,我查看了以下来源:
http://www.packtpub.com/article/drools-integration-modules-spring-framework- apache-camel
http://blog.mersoft.com/2011/09/07/getting-started-with-drools-5-2
http://docs.jboss.org/drools/release/5.4.0.Final/ droolsjbpm-integration-docs / html_single / index.html#d0e666
while connecting drools i review this sources: http://www.packtpub.com/article/drools-integration-modules-spring-framework-apache-camel http://blog.mersoft.com/2011/09/07/getting-started-with-drools-5-2 http://docs.jboss.org/drools/release/5.4.0.Final/droolsjbpm-integration-docs/html_single/index.html#d0e666
也许他们会帮助某人。
听到是流口水的豆子
<drools:execution-node id="node1" />
<drools:resources>
<drools:resource type="XSD" source="classpath:model.xsd"/>
<drools:resource type="DRL" source="classpath:test.drl"/>
</drools:resources>
请帮助我配置名称空间。并给我更多有关Drools spring集成和xml名称空间的链接。
Please help me to configure name spaces. and give me more links about Drools spring integration and xml name spaces.
推荐答案
出现错误的原因是因为 http://drools.org/schema/drools-spring.xsd 不起作用。如果您找到可以正确使用它的URI,则应该消除错误。我找到的示例URI是 http://grepcode.com/file_/repository.jboss.org/nexus/content/repositories/releases /org.drools/drools-spring/5.6.0.Final/org/drools/container/spring/drools-spring.xsd/?v=source
The reason you are getting the error is because http://drools.org/schema/drools-spring.xsd doesn't serve. If you find a URI that serves it properly, your error should go away. An example URI I've found is http://grepcode.com/file_/repository.jboss.org/nexus/content/repositories/releases/org.drools/drools-spring/5.6.0.Final/org/drools/container/spring/drools-spring.xsd/?v=source
我正在尝试通过以下堆栈溢出问题找到更可靠的参考: drools-spring.xsd在git hub上的位置
I'm trying to find a more reliable reference through in the following stack overflow question: Location of drools-spring.xsd on git hub
这篇关于用弹簧配置流口水。 XSD错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!