[jbossws-issues] [JBoss JIRA] (JBWS-3320) JBoss Native WS - problem with Abstract class as output Parameter in WebService
Alessio Soldano (Updated) (JIRA)
jira-events at lists.jboss.org
Mon Jan 2 09:40:10 EST 2012
[ https://issues.jboss.org/browse/JBWS-3320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alessio Soldano updated JBWS-3320:
----------------------------------
Fix Version/s: jbossws-native-4.0.1
> JBoss Native WS - problem with Abstract class as output Parameter in WebService
> -------------------------------------------------------------------------------
>
> Key: JBWS-3320
> URL: https://issues.jboss.org/browse/JBWS-3320
> Project: JBoss Web Services
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: jbossws-native
> Environment: - jboss-5.1.0.GA
> - eclipseHelios
> -windowsXp- SP3
> Reporter: prakash pethe
> Fix For: jbossws-native-4.0.1
>
>
> I've a problem to use abstract class in a Web Service like WebMethod output parameter.
> I'm using JBOSS-5.1.0.GA and java runtime Version 6. It always return emtpry tag for abstract tag.
> I have completed below step as well
> When running under Java 6 you need to manually copy the following libraries from the JBOSS_HOME/client directory to the JBOSS_HOME/lib/endorsed directory, so that the JAX-WS 2.0 apis supported by JBossWS are used:
>
> jbossws-native-saaj.jar
> jbossws-native-jaxrpc.jar
> jbossws-native-jaxws.jar
> jbossws-native-jaxws-ext.jar
> for below section of WSDL:
> <xsd:complexType name="Personne" abstract="true" />
> <xsd:complexType name="PersonnePhysique">
> <xsd:complexContent>
> <xsd:extension base="Personne">
> Getting below error stack:
> javax.xml.ws.WebServiceException: javax.xml.bind.UnmarshalException: Unable to create an instance of com.sfr.sigc.rechercherpersonneetroles.Personne
> - with linked exception:
> [java.lang.InstantiationException]
> at org.jboss.ws.core.jaxws.JAXBDeserializer.handleUnmarshallException(JAXBDeserializer.java:110)
> at org.jboss.ws.core.jaxws.JAXBDeserializer.deserialize(JAXBDeserializer.java:78)
> at org.jboss.ws.core.binding.DeserializerSupport.deserialize(DeserializerSupport.java:58)
> at org.jboss.ws.core.soap.XMLContent.unmarshallObjectContents(XMLContent.java:179)
> at org.jboss.ws.core.soap.XMLContent.transitionTo(XMLContent.java:96)
> at org.jboss.ws.core.soap.SOAPContentElement.transitionTo(SOAPContentElement.java:140)
> at org.jboss.ws.core.soap.SOAPBodyElementDoc.transitionTo(SOAPBodyElementDoc.java:85)
> at org.jboss.ws.core.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:172)
> at org.jboss.ws.core.EndpointInvocation.transformPayloadValue(EndpointInvocation.java:261)
> at org.jboss.ws.core.EndpointInvocation.getReturnValue(EndpointInvocation.java:195)
> at org.jboss.ws.core.CommonClient.syncOutputParams(CommonClient.java:511)
> at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:397)
> at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:290)
> at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:170)
> at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
> at $Proxy309.rechercherPersonneEtRoles(Unknown Source)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbossws-issues
mailing list