axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rich Scheuerle (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2-3736) java.util.List is not known to this context
Date Sat, 24 Oct 2009 12:50:59 GMT

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

Rich Scheuerle resolved AXIS2-3736.
-----------------------------------

    Resolution: Fixed

Should be resolved by AXIS2-3341

> java.util.List is not known to this context
> -------------------------------------------
>
>                 Key: AXIS2-3736
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3736
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>            Reporter: Davanum Srinivas
>            Assignee: Rich Scheuerle
>         Attachments: apples.zip
>
>
> ========== SEI ============
> @WebService
> @XmlSeeAlso({ Apple.class, Fuji.class })
> public interface AppleFinder {
>     List<Apple> getApple(String appType);
> }
> ========== Impl ============
> @WebService(endpointInterface = "org.apache.cxf.systest.type_substitution.AppleFinder",

>             serviceName = "AppleFinder")
> public class AppleFinderImpl implements AppleFinder {
>     public List<Apple> getApple(String appleType) {
>             List<Apple> apples = new ArrayList<Apple>();
>             apples.add(new Fuji("Red", "mild", "Fuji-1"));
>             apples.add(new Fuji("Yellow", "sweet", "Fuji-2"));
>             return apples;
>     }
> }
> ============= Stack Trace =============
> [javax.xml.bind.JAXBException: java.util.List is not known to this context]
>         at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:331)
>         at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:175)
>         at org.apache.axis2.datasource.jaxb.JAXBDSContext$3.run(JAXBDSContext.java:664)
>         at org.apache.axis2.java.security.AccessController.doPrivileged(AccessController.java:76)
>         at org.apache.axis2.datasource.jaxb.JAXBDSContext.marshalByType(JAXBDSContext.java:566)
>         at org.apache.axis2.datasource.jaxb.JAXBDSContext.marshal(JAXBDSContext.java:294)
>         at org.apache.axis2.jaxws.message.databinding.impl.JAXBBlockImpl._outputFromBO(JAXBBlockImpl.java:175)
>         at org.apache.axis2.jaxws.message.impl.BlockImpl.outputTo(BlockImpl.java:342)
>         at org.apache.axis2.jaxws.message.impl.BlockImpl.serialize(BlockImpl.java:266)
>         at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerializeAndConsume(OMSourcedElementImpl.java:664)
>         at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:918)
>         at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:947)
>         at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:918)
>         at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:947)
>         at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(SOAPEnvelopeImpl.java:240)
>         at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:228)
>         at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:947)
>         at org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:471)
>         at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:68)
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:330)
>         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:213)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
>         at org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:210)
>         ... 9 more
> Caused by: javax.xml.bind.JAXBException: java.util.List is not known to this context
>         at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:242)
>         at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:257)
>         at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:143)
>         at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:185)
>         at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeBody(ElementBeanInfoImpl.java:305)
>         at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:312)
>         at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:71)
>         at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:490)
>         at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:328)
>         ... 31 more
> Caused by: javax.xml.bind.JAXBException: java.util.List 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.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:140)
>         ... 37 more

-- 
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