Duplicated definition for: 'identifiedType'

前端 未结 6 1841
日久生厌
日久生厌 2021-01-01 21:03

I have a web application where i am using spring 3.0 and oracle\'s XMLTYPE related jar\'s com.oracle.xdb which in turn depends on com.oracle.xml.xmlparserv2 , iam sure most

6条回答
  •  盖世英雄少女心
    2021-01-01 21:16

    I have identified that the problem is due to the inhability of xmlparserv2 to appropriately parse the xsi:schemaLocation attribute.

    I have checked that this works:

    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"
    

    While this produces the eror:

    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
            http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd"
    

    The workaround is to remove the use of specific namespaces (such as tx, util..) and replace them by the equivalent definitions using common beans. For example, you can replace with

提交回复
热议问题