Announcement Announcement Module
Collapse
No announcement yet.
Duplicated definition for: 'identifiedType' Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Duplicated definition for: 'identifiedType'

    I downloaded Spring Batch Admin application war spring-batch-admin-sample-1.0.0.M2.war and deployed it in Websphere. It runs fine with the default jobs. I added few more job configurations and registered it through the admin UI. I have a job which should read from Oracle DB and send the messages to a JMS queue. Some of the columns in the DB are of XMLType and we need xmlparserv2.jar for reading the XML data.

    I added the xmlparserv2.jar in WEB-INF/lib and I am receiving XSDException while launching the application.

    Here is a part of the exception trace:

    http://www.springframework.org/schema/beans/spring-beans.xsd<Line 43, Column 57>: XML-24509: (Error) Duplicated definition for: 'identifiedType'
    http://www.springframework.org/schema/beans/spring-beans.xsd<Line 60, Column 28>: XML-24509: (Error) Duplicated definition for: 'beans'
    http://www.springframework.org/schema/beans/spring-beans.xsd<Line 140, Column 34>: XML-24509: (Error) Duplicated definition for: 'description'
    http://www.springframework.org/schema/beans/spring-beans.xsd<Line 152, Column 29>: XML-24509: (Error) Duplicated definition for: 'import'
    http://www.springframework.org/schema/beans/spring-beans.xsd<Line 174, Column 28>: XML-24509: (Error) Duplicated definition for: 'alias'
    http://www.springframework.org/schema/beans/spring-beans.xsd<Line 203, Column 33>: XML-24509: (Error) Duplicated definition for: 'beanElements'
    http://www.springframework.org/schema/beans/spring-beans.xsd<Line 218, Column 44>: XML-24509: (Error) Duplicated definition for: 'beanAttributes'
    http://www.springframework.org/schema/beans/spring-beans.xsd<Line 462, Column 43>: XML-24509: (Error) Duplicated definition for: 'meta'
    http://www.springframework.org/schema/beans/spring-beans.xsd<Line 470, Column 35>: XML-24509: (Error) Duplicated definition for: 'metaType'
    http://www.springframework.org/schema/beans/spring-beans.xsd<Line 487, Column 27>: XML-24509: (Error) Duplicated definition for: 'bean'
    http://www.springframework.org/schema/beans/spring-beans.xsd<Line 507, Column 38>: XML-24509: (Error) Duplicated definition for: 'constructor-arg'
    http://www.springframework.org/schema/beans/spring-beans.xsd<Line 586, Column 51>: XML-24509: (Error) Duplicated definition for: 'property'
    http://www.springframework.org/schema/beans/spring-beans.xsd<Line 597, Column 32>: XML-24509: (Error) Duplicated definition for: 'qualifier'
    http://www.springframework.org/schema/beans/spring-beans.xsd<Line 613, Column 48>: XML-24509: (Error) Duplicated definition for: 'attribute'
    http://www.springframework.org/schema/beans/spring-beans.xsd<Line 623, Column 36>: XML-24509: (Error) Duplicated definition for: 'lookup-method'
    http://www.springframework.org/schema/beans/spring-beans.xsd<Line 659, Column 38>: XML-24509: (Error) Duplicated definition for: 'replaced-method'
    http://www.springframework.org/schema/beans/spring-beans.xsd<Line 696, Column 31>: XML-24509: (Error) Duplicated definition for: 'arg-type'
    http://www.springframework.org/schema/beans/spring-beans.xsd<Line 723, Column 26>: XML-24509: (Error) Duplicated definition for: 'ref'
    http://www.springframework.org/schema/beans/spring-beans.xsd<Line 761, Column 28>: XML-24509: (Error) Duplicated definition for: 'idref'
    http://www.springframework.org/schema/beans/spring-beans.xsd<Line 795, Column 28>: XML-24509: (Error) Duplicated definition for: 'value'
    http://www.springframework.org/schema/beans/spring-beans.xsd<Line 823, Column 27>: XML-24509: (Error) Duplicated definition for: 'null'
    http://www.springframework.org/schema/beans/spring-beans.xsd<Line 837, Column 39>: XML-24509: (Error) Duplicated definition for: 'collectionElements'
    http://www.springframework.org/schema/beans/spring-beans.xsd<Line 856, Column 28>: XML-24509: (Error) Duplicated definition for: 'array'
    http://www.springframework.org/schema/beans/spring-beans.xsd<Line 879, Column 27>: XML-24509: (Error) Duplicated definition for: 'list'
    http://www.springframework.org/schema/beans/spring-beans.xsd<Line 902, Column 26>: XML-24509: (Error) Duplicated definition for: 'set'
    http://www.springframework.org/schema/beans/spring-beans.xsd<Line 923, Column 26>: XML-24509: (Error) Duplicated definition for: 'map'
    http://www.springframework.org/schema/beans/spring-beans.xsd<Line 944, Column 45>: XML-24509: (Error) Duplicated definition for: 'entry'
    http://www.springframework.org/schema/beans/spring-beans.xsd<Line 953, Column 28>: XML-24509: (Error) Duplicated definition for: 'props'

    nested exception is org.springframework.beans.factory.xml.XmlBeanDefin itionStoreException: Line 6 in XML document from URL [wsjar:file:/was/was61/WebSphere/AppServer/profiles/appsrv01/installedApps/contentTechSDGRSATest/spring-batch-admin-sample-1_0_0_M2_war.ear/spring-batch-admin-sample-1.0.0.M2.war/WEB-INF/lib/spring-batch-admin-manager-1.0.0.M2.jar!/META-INF/bootstrap/batch/env-context.xml] is invalid; nested exception is oracle.xml.parser.schema.XSDException: Duplicated definition for: 'identifiedType'
    at org.springframework.beans.factory.parsing.FailFast ProblemReporter.error(FailFastProblemReporter.java :68)
    at org.springframework.beans.factory.parsing.ReaderCo ntext.error(ReaderContext.java:85)
    at org.springframework.beans.factory.parsing.ReaderCo ntext.error(ReaderContext.java:76)
    at org.springframework.beans.factory.xml.DefaultBeanD efinitionDocumentReader.importBeanDefinitionResour ce(DefaultBeanDefinitionDocumentReader.java:193)
    at org.springframework.beans.factory.xml.DefaultBeanD efinitionDocumentReader.parseDefaultElement(Defaul tBeanDefinitionDocumentReader.java:148)
    at

  • #2
    Work around

    This issue seems to be related to SPR-2706 JIRA issue.

    I added a system property javax.xml.parsers.DocumentBuilderFactory with the value org.apache.xerces.jaxp.DocumentBuilderFactoryImpl and restarted the server and it worked.

    Comment

    Working...
    X