Saturday, February 5, 2011

XML-24500 can not build schema

Problem:

When compiling a SOA Suite 11g project via ant, the following error is returned:
scac-validate:
     [echo] Running scac-validate in /home/oracle/scripts/deploy/svn/HelloWorld/composite.xml
     [echo] oracle.home = /l01/apps/oracle/middleware/Oracle_SOA1/bin/..
    [input] skipping input as property compositeDir has already been set.
    [input] skipping input as property compositeName has already been set.
    [input] skipping input as property revision has already been set.

scac:
     [scac] Validating composite "/home/oracle/scripts/deploy/svn/HelloWorld/composite.xml"
     [scac] INFO: SchemaManager.isIncrementalBuildSupported XMLSchema incremental build enabled.
     [scac]
     [scac] XML-24500: (Error) Can not build schema ' ' located at 'urn:oracle:bpel:top-xsd:noNamespaceXSD:TEMP_TOP.__OAUX_GENXSD_.TOP.XSD'
     [scac] error: location {/ns:composite/ns:import[@location='http://app-soa11g-dev:8001/soa-infra/services/default/HelloWorld2/hello2.wsdl']}(9,32): Load of wsdl "http://app-soa11g-dev:8001/soa-infra/services/default/HelloWorld2/hello2.wsdl with Message part element undefined in wsdl [http://app-soa11g-dev:8001/soa-infra/services/default/HelloWorld2/hello2.wsdl] part name = QueryIPNWebContractListResponseEBM       type = {http://ns.ipnweb.com/IPNWebObjectLibrary/Core/EBO/IPNWebContract/V1}QueryIPNWebContractListResponseEBM" failed
     [echo]
     [echo] ERROR IN TRYCATCH BLOCK:
     [echo] /home/oracle/scripts/deploy/build.soa.xml:114: The following error occurred while executing this line:
     [echo] /home/oracle/scripts/deploy/build.soa.xml:129: The following error occurred while executing this line:
     [echo] /u01/app/oracle/middleware/Oracle_SOA1/bin/ant-sca-package.xml:46: The following error occurred while executing this line:
     [echo] /u01/app/oracle/middleware/Oracle_SOA1/bin/ant-sca-compile.xml:269: Java returned: 1 Check log file : /tmp/out.err for errors
     [echo]
Solution:

There is a schema (i.e., XSD) conflict between this project and another one being referenced.

1. Open up local .xsd files in the project, and ensure that they are identical to the invoked reference service.
*Annotations count as differences.

References:


Ahmed Aboulnaga

No comments: