context.xml中重复的属性具有相同的名称和目标命名空间使用
摘要:context.xml中重复的属性具有相同的名称和目标命名空间使用
我已经开放,我滚到与Eclipse和有一个叫做ibatisServicesApplicationContext.xml文件的项目。我已经清理了几个日食报道的错误。
现在我看到有关#AnonType_array
,#AnonType_list
,#AnonType_set
,#AnonType_map
和#AnonType_props
是重复的命名空间属性5个错误。
一个特定的错误是:ct-props-correct.4: Error for type '#AnonType_array'. Duplicate attribute uses with the same name and target namespace are specified. Name of duplicate attribute use is 'merge'.
做一些google搜索和阅读,像这样的错误混合版本时已经表明了。参考:http://forum.spring.io/forum/spring-projects/springsource-tool-suite/68894-errors-when-validating-spring-beans-2-5-xsd-from-sts和https://www.genuitec.com/forums/topic/spring-beans-3-0-xsd-validation-errors/
看看引用,它看起来像引用是合法的。有关配置有什么问题的任何想法?
详情:
以下是我的文件的顶部:什么固定的东西对我来说
<?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:util="http://www.springframework.org/schema/util"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:sec="http://cxf.apache.org/configuration/security"
xmlns:http="http://cxf.apache.org/transports/http/configuration"
xmlns:cxf="http://cxf.apache.org/core"
xmlns:drools="http://drools.org/schema/drools-spring"
xmlns:ehcache="http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://drools.org/schema/drools-spring
drools-spring-1.2.0.xsd
http://cxf.apache.org/transports/http/configuration
http://cxf.apache.org/schemas/configuration/http-conf.xsd
http://cxf.apache.org/core
http://cxf.apache.org/schemas/core.xsd
http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring
ehcache-spring-1.1.xsd
http://cxf.apache.org/configuration/security
http://cxf.apache.org/schemas/configuration/security.xsd">
发布的详细信息,万一别人运行到同一问题。
我解决的其中一个问题是drools-spring-1.2.0.xsd
没有被托管,所以我找到了它的存档版本并将其添加到项目中以供本地参考。该文件的内部是对http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
的引用,这是发生冲突的地方。
看着drools,所有通过版本1.7.0的xsds都引用2.0.xsd,所以将3.0引用改为2.0,项目不再抱怨。