Spring-Drools集成:引用的文件(kie-spring.xsd)包含错误 [英] Spring-Drools Integration: Referenced file (kie-spring.xsd) contains errors
问题描述
我正在尝试在Spring中使用流口水. 春季版本4.01 Drools/Kie版本6.0.1
I'm trying to use drools with Spring. Spring version 4.01 Drools/Kie version 6.0.1
我的kie-context.xml出现以下错误(在Eclipse中):
My kie-context.xml has the following error (in Eclipse):
引用的文件包含错误( http://drools.org/schema/kie-spring. xsd ).有关更多信息,请在问题视图"中右键单击该消息,然后选择显示详细信息..."
Referenced file contains errors (http://drools.org/schema/kie-spring.xsd). For more information, right click on the message in the Problems View and select "Show Details..."
kie-context.xml :(导入到applicationContext.xml中)
kie-context.xml: (imported in applicationContext.xml)
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:kie="http://drools.org/schema/kie-spring"
xsi:schemaLocation="
http://drools.org/schema/kie-spring http://drools.org/schema/kie-spring.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<kie:kmodule id="ng-rule-server">
<kie:kbase name="kbase1" packages="org.drools.server">
<kie:ksession name="ksession1" type="stateless" />
</kie:kbase>
</kie:kmodule>
<bean id="kiePostProcessor" class="org.kie.spring.KModuleBeanFactoryPostProcessor" />
</beans>
相关的pom.xml:
Relevant pom.xml:
<dependency>
<groupId>org.kie</groupId>
<artifactId>kie-api</artifactId>
<version>${kie.version}</version>
</dependency>
<dependency>
<groupId>org.kie</groupId>
<artifactId>kie-internal</artifactId>
<version>${kie.version}</version>
</dependency>
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-core</artifactId>
<version>${drools.version}</version>
</dependency>
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-compiler</artifactId>
<version>${drools.version}</version>
</dependency>
<dependency>
<groupId>org.kie</groupId>
<artifactId>kie-spring</artifactId>
<version>${kie.version}</version>
</dependency>
<kie.version>6.0.1.Final</kie.version>
<drools.version>6.0.1.Final</drools.version>
详细信息:
有人可以看到我的设置有什么问题吗?
Can anybody see what's wrong with my set up?
推荐答案
还可以使用classpath
:URL处理程序
The right location can also be referred to by using the classpath
: URL handler
xmlns:kie="http://drools.org/schema/kie-spring"
xsi:schemaLocation="http://drools.org/schema/kie-spring classpath:org/kie/spring/kie-spring-6.0.0.xsd"
这篇关于Spring-Drools集成:引用的文件(kie-spring.xsd)包含错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!