]
Alessio Soldano updated JBWS-2254:
----------------------------------
Fix Version/s: community contributions
Forum Reference:
SchemaValidation exception when referencing independent schema in
wsdl
----------------------------------------------------------------------
Key: JBWS-2254
URL:
https://issues.jboss.org/browse/JBWS-2254
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: jbossws-native
Affects Versions: jbossws-native-3.0.1
Environment: JBoss Server: JBoss_4_2_2_GA with jbossws-3.0.1-native-2.0.4.GA and
JBoss Messaging 1.4.0.SP3 replacing JBossMQ.
OS/JVM: Sun JVM build 1.5.0_15-b04, Windows XP Service Pack 2
Reporter: Bob Bucy
Fix For: community contributions
Attachments: SchemaValidationTest.zip
The following exception takes place on the server when executing webservice with
"@SchemaValidation" annotation. Exception does not occur when
"@SchemaValidation" is disabled (e.g. able to execute service successfully,
client able to run wsconsume, able to access ?WSDL, etc.). A sample application is
attached which demonstrates the issue. The webservice being executed (e.g. WSTest.wsdl)
does reference another schema (e.g. WSTest.xsd) that defines the input and output
arguments to the webservice. Both the WSTest.wsdl and WSTest.xsd schemas are located in
the WEB-INF\wsdl directory.
2008-07-10 13:36:26,224 WARN
[org.jboss.ws.extensions.validation.StrictlyValidErrorHandler]
org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document
'WSTest.xsd', because 1) could not find the document; 2) the document could not be
read; 3) the root element of the document is not <xsd:schema>.
2008-07-10 13:36:26,224 ERROR
[org.jboss.ws.extensions.validation.StrictlyValidErrorHandler]
org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'wsdoc:WSReq'
to a(n) 'element declaration' component.
2008-07-10 13:36:26,224 DEBUG [org.jboss.ws.core.jaxws.handler.MessageContextJAXWS] Begin
response processing
2008-07-10 13:36:26,224 DEBUG [org.jboss.ws.core.soap.MessageContextAssociation]
popMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS@de4588 (Thread
http-127.0.0.1-8080-2)
2008-07-10 13:36:26,224 DEBUG [org.jboss.ws.core.soap.MessageContextAssociation]
pushMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS@15d7792
(Thread http-127.0.0.1-8080-2)
2008-07-10 13:36:26,240 ERROR [org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] SOAP request
exception
org.jboss.ws.WSException: org.xml.sax.SAXException: src-resolve: Cannot resolve the name
'wsdoc:WSReq' to a(n) 'element declaration' component.
at org.jboss.ws.WSException.rethrow(WSException.java:68)
at
org.jboss.ws.core.soap.SOAPBodyElementDoc.validatePayload(SOAPBodyElementDoc.java:130)
at org.jboss.ws.core.soap.SOAPBodyElementDoc.transitionTo(SOAPBodyElementDoc.java:82)
at
org.jboss.ws.core.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:173)
at
org.jboss.ws.core.EndpointInvocation.transformPayloadValue(EndpointInvocation.java:263)
at
org.jboss.ws.core.EndpointInvocation.getRequestParamValue(EndpointInvocation.java:115)
at org.jboss.ws.core.EndpointInvocation.getRequestPayload(EndpointInvocation.java:135)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: