[jbossws-issues] [JBoss JIRA] Commented: (JBWS-2254) SchemaValidation exception when referencing independent schema in wsdl

Maycon Oliveira (JIRA) jira-events at lists.jboss.org
Mon Apr 13 10:11:22 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBWS-2254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12461790#action_12461790 ] 

Maycon Oliveira commented on JBWS-2254:
---------------------------------------

I have the same problem now in another enviroment...  JDK 1.6.10 and jboss 4.2.3.  I need to inform the atribute schemaLocation of the @SchemaValidation annotation to make this work. There is a way to jboss sucessfuly extract the schema location from the wsdl schema import?

> SchemaValidation exception when referencing independent schema in wsdl
> ----------------------------------------------------------------------
>
>                 Key: JBWS-2254
>                 URL: https://jira.jboss.org/jira/browse/JBWS-2254
>             Project: JBoss Web Services
>          Issue Type: Quality Risk
>      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
>         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 at 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 at 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 contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbossws-issues mailing list