axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2-4605) JAX-WS throws JAXBException for complextypes
Date Sun, 24 Jan 2010 00:37:17 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-4605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andreas Veithen resolved AXIS2-4605.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6

Looks like a ClassLoader reference got lost in Rich's change. That also explains why there
are no test failures: it only occurs when deploying the service with JAXWSDeployer. Fixed
in r902515.

> JAX-WS throws JAXBException for complextypes
> --------------------------------------------
>
>                 Key: AXIS2-4605
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4605
>             Project: Axis2
>          Issue Type: Bug
>          Components: jaxws
>            Reporter: Isuru Eranga Suriarachchi
>            Assignee: Andreas Veithen
>            Priority: Blocker
>             Fix For: 1.6
>
>         Attachments: SampleJaxwsService.jar
>
>
> Any JAXWS operation which returns or receives a Complex type (not Lists or Arrays, simple
objects) throws the following exception in latest trunk.
> Caused by: javax.xml.bind.JAXBException: XXXXXXX is not known to this context
> 	at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:587)
> 	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.getBeanInfo(UnmarshallerImpl.java:531)
> 	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:337)
> My service is as follows (I'll attach the jar to this JIRA)
> @WebService(serviceName = "SampleService",
>         targetNamespace = "http://sample.jaxws.apache.org"
> )
> public class JaxwsSample {
>     @WebMethod(
>             action = "urn:echo1"
>     )
>     public String echo1(InWrapper in) {
>         return in.getIn();
>     }
>     @WebMethod(
>             action = "urn:echo2"
>     )
>     public OutWrapper echo2(String in) {
>         OutWrapper out = new OutWrapper();
>         out.setOut(in);
>         return out;
>     }
> }
> OutWrapper and InWrapper are two simple beans which has a string inside.
> I think this issue has occured after fixing http://issues.apache.org/jira/browse/AXIS2-3341.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message