Hello All.
I have the following wsdl (a part of):
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:info="http://www.comped.it/te/data/dbUserInfo"
xmlns:ps="http://www.comped.it/te/principalsService"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:psd="http://www.comped.it/te/principalsService"
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
targetNamespace="http://www.comped.it/te/principalsService">
<wsdl:documentation>principalsService</wsdl:documentation>
<wsdl:types>
<xsd:schema attributeFormDefault="unqualified"
elementFormDefault="qualified"
targetNamespace="http://www.comped.it/te/data/dbUserInfo">
<xsd:complexType name="groupInfoType">
<xsd:sequence>
<xsd:element minOccurs="0" ref="info:userInfo"/>
</xsd:sequence>
<xsd:attribute name="idOfRecord" type="xsd:long"
use="required"/>
<xsd:attribute name="organizationName" type="xsd:string"/>
<xsd:attribute name="fiscalCode" type="xsd:string"
use="required"/>
<xsd:attribute name="organizationType" type="xsd:string"/>
<xsd:attribute name="userInfoId" type="xsd:long"/>
</xsd:complexType>
<xsd:element name="groupInfo" type="info:groupInfoType"/>
<xsd:simpleType name="sexType">
<xsd:restriction base="xsd:string">
<xsd:length value="1"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="userInfoType">
<xsd:attribute name="firstName" type="xsd:string"/>
<xsd:attribute name="lastName" type="xsd:string"/>
<xsd:attribute name="firstNameFull" type="xsd:string"/>
<xsd:attribute name="lastNameFull" type="xsd:string"/>
<xsd:attribute name="birthDate" type="xsd:date"/>
<xsd:attribute name="birthPlace" type="xsd:string"/>
<xsd:attribute name="birthProvince" type="xsd:string"/>
<xsd:attribute name="birthCountry" type="xsd:string"/>
<xsd:attribute name="sex" type="info:sexType"/>
<xsd:attribute name="uniqueId" type="xsd:long" use="required"/>
<xsd:attribute name="fiscalCode" type="xsd:string"
use="required"/>
<xsd:attribute name="recordRegistrationDate"
type="xsd:dateTime"/>
</xsd:complexType>
<xsd:element name="userInfo" type="info:userInfoType"/>
</xsd:schema>
<xsd:schema attributeFormDefault="unqualified"
elementFormDefault="qualified"
targetNamespace="http://www.comped.it/te/principalsService">
<xsd:import namespace="http://www.comped.it/te/data/dbUserInfo"/>
<xsd:complexType name="groupType">
<xsd:sequence>
<xsd:element minOccurs="0" ref="info:groupInfo"/>
<xsd:element maxOccurs="unbounded" minOccurs="0"
ref="psd:group"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
<xsd:attribute name="type" type="xsd:string"/>
<xsd:attribute name="groupId" type="xsd:long" use="required"/>
<xsd:attribute name="parentId" type="xsd:long"/>
<xsd:attribute name="groupInfoId" type="xsd:long"/>
</xsd:complexType>
<xsd:element name="group" type="psd:groupType"/>
<xsd:complexType name="userType">
<xsd:sequence>
<xsd:element minOccurs="0" ref="info:userInfo"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
<xsd:attribute name="authMethod" type="xsd:int"/>
<xsd:attribute name="password" type="xsd:string"/>
<xsd:attribute name="userId" type="xsd:long" use="required"/>
<xsd:attribute name="userInfoId" type="xsd:long"/>
</xsd:complexType>
<xsd:element name="user" type="psd:userType"/>
When BPEL process, which references this wsdl (as a partner) is
deployed, it is successfully compiled, but two errors are shown in the
error log:
12:48:54,828 ERROR SchemaModelImpl$SchemaErrorHandler.handleError(108) :
Schema error
::::2:653:691:src-import.3.1: The namespace attribute,
'http://www.comped.it/te/data/dbUserInfo', of an <import> element
information item must be identical to the targetNamespace attribute,
'http://www.comped.it/te/principalsService', of the imported document.
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at
org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaError(Unknown
Source)
at
org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(Unknown
Source)
at
org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(Unknown
Source)
at
org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadInputList(Unknown
Source)
at
org.apache.ode.utils.xsd.SchemaModelImpl.newModel(SchemaModelImpl.java:95)
at
org.apache.ode.bpel.compiler.WSDLRegistry.getSchemaModel(WSDLRegistry.java:103)
at
org.apache.ode.bpel.compiler.BpelCompiler.resolveXsdType(BpelCompiler.java:412)
at
org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:1352)
at
org.apache.ode.bpel.compiler.BpelCompiler.access$1000(BpelCompiler.java:127)
at
org.apache.ode.bpel.compiler.BpelCompiler$8.run(BpelCompiler.java:1109)
at
org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:1065)
at
org.apache.ode.bpel.compiler.BpelCompiler.compileScope(BpelCompiler.java:1105)
at
org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:703)
at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:260)
at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:330)
at
org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:162)
at
org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:126)
at
org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:165)
12:48:54,843 ERROR SchemaModelImpl$SchemaErrorHandler.handleError(109) :
null:2
12:48:54,843 ERROR SchemaModelImpl$SchemaErrorHandler.handleError(110) :
src-import.3.1: The namespace attribute,
'http://www.comped.it/te/data/dbUserInfo', of an <import> element
information item must be identical to the targetNamespace attribute,
'http://www.comped.it/te/principalsService', of the imported document.
12:48:54,843 ERROR SchemaModelImpl$SchemaErrorHandler.handleError(111) :
::::2:653:691:src-import.3.1: The namespace attribute,
'http://www.comped.it/te/data/dbUserInfo', of an <import> element
information item must be identical to the targetNamespace attribute,
'http://www.comped.it/te/principalsService', of the imported document.
12:48:54,843 ERROR SchemaModelImpl$SchemaErrorHandler.handleError(108) :
Schema error
:file:/M:/Lib/__Data/te/processes/std_qds_requestservice-79/partners/principalsService.wsdl:file:/M:/Lib/__Data/te/processes/std_qds_requestservice-79/partners/principalsService.wsdl::6:65:902:src-resolve:
Cannot resolve the name 'info:groupInfo' to a(n) 'element declaration'
component.
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at
org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaError(Unknown
Source)
at
org.apache.xerces.impl.xs.traversers.XSDHandler.getGlobalDecl(Unknown
Source)
at
org.apache.xerces.impl.xs.traversers.XSDElementTraverser.traverseLocal(Unknown
Source)
at
org.apache.xerces.impl.xs.traversers.XSDHandler.traverseLocalElements(Unknown
Source)
at
org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadInputList(Unknown
Source)
at
org.apache.ode.utils.xsd.SchemaModelImpl.newModel(SchemaModelImpl.java:95)
at
org.apache.ode.bpel.compiler.WSDLRegistry.getSchemaModel(WSDLRegistry.java:103)
at
org.apache.ode.bpel.compiler.BpelCompiler.resolveXsdType(BpelCompiler.java:412)
at
org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:1352)
at
org.apache.ode.bpel.compiler.BpelCompiler.access$1000(BpelCompiler.java:127)
at
org.apache.ode.bpel.compiler.BpelCompiler$8.run(BpelCompiler.java:1109)
at
org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:1065)
at
org.apache.ode.bpel.compiler.BpelCompiler.compileScope(BpelCompiler.java:1105)
at
org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:703)
at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:260)
at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:330)
at
org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:162)
at
org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:126)
at
org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:165)
at
org.apache.ode.axis2.service.DeploymentWebService$DeploymentMessageReceiver.invokeBusinessLogic(DeploymentWebService.java:144)
12:48:54,843 ERROR SchemaModelImpl$SchemaErrorHandler.handleError(109) :
file:/M:/Lib/__Data/te/processes/std_qds_requestservice-79/partners/principalsService.wsdl:6
12:48:54,843 ERROR SchemaModelImpl$SchemaErrorHandler.handleError(110) :
src-resolve: Cannot resolve the name 'info:groupInfo' to a(n) 'element
declaration' component.
12:48:54,843 ERROR SchemaModelImpl$SchemaErrorHandler.handleError(111) :
:file:/M:/Lib/__Data/te/processes/std_qds_requestservice-79/partners/principalsService.wsdl:file:/M:/Lib/__Data/te/processes/std_qds_requestservice-79/partners/principalsService.wsdl::6:65:902:src-resolve:
Cannot resolve the name 'info:groupInfo' to a(n) 'element declaration'
component.
You can see, that compiler cannot locate schema from <xsd:import
namespace="http://www.comped.it/te/data/dbUserInfo"/>, and cannot locate
first type from this schema:
info:groupInfo. Curiously, but second referenced type info:userInfo is
located without any error. But as I said, process deployed successfully,
so is there a way to get rid of these error logs while deploying this
process, because that logs are not errors, and the only mix up process
deployers, who read deployment logs.
Regards,
Alexey Ousov