axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Isuru Eranga Suriarachchi (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-3590) Support for XmlJavaTypeAdapter (tracking)
Date Wed, 19 Jan 2011 10:14:54 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-3590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12983640#action_12983640
] 

Isuru Eranga Suriarachchi commented on AXIS2-3590:
--------------------------------------------------

When I tried to invoke the attached service, I got the following exception..

[ERROR] javax.xml.bind.JAXBException: demo.hw.server.User is not known to this context
org.apache.axis2.AxisFault: javax.xml.bind.JAXBException: demo.hw.server.User is not known
to this context
	at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
	at org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:242)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
	at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
	at org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:274)
	at org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:281)
	at org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:187)
	at org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)
Caused by: javax.xml.ws.WebServiceException: javax.xml.bind.JAXBException: demo.hw.server.User
is not known to this context
	at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:175)
	at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:70)
	at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:128)
	at org.apache.axis2.jaxws.marshaller.impl.alt.DocLitWrappedMinimalMethodMarshaller.demarshalRequest(DocLitWrappedMinimalMethodMarshaller.java:272)
	at org.apache.axis2.jaxws.server.dispatcher.JavaBeanDispatcher.createRequestParameters(JavaBeanDispatcher.java:279)
	at org.apache.axis2.jaxws.server.dispatcher.JavaBeanDispatcher.invoke(JavaBeanDispatcher.java:82)
	at org.apache.axis2.jaxws.server.EndpointController.invoke(EndpointController.java:111)
	at org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:161)
	... 9 more
Caused by: javax.xml.bind.JAXBException: demo.hw.server.User is not known to this context
	at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:625)
	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.getBeanInfo(UnmarshallerImpl.java:535)
	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:339)
	at org.apache.axis2.datasource.jaxb.JAXBDSContext$2.run(JAXBDSContext.java:688)
	at org.apache.axis2.java.security.AccessController.doPrivileged(AccessController.java:76)
	at org.apache.axis2.datasource.jaxb.JAXBDSContext.unmarshalByType(JAXBDSContext.java:592)
	at org.apache.axis2.datasource.jaxb.JAXBDSContext.unmarshal(JAXBDSContext.java:351)
	at org.apache.axis2.jaxws.message.databinding.impl.JAXBBlockImpl._getBOFromReader(JAXBBlockImpl.java:96)
	at org.apache.axis2.jaxws.message.impl.BlockImpl._getBOFromOM(BlockImpl.java:476)
	at org.apache.axis2.jaxws.message.databinding.impl.JAXBBlockImpl._getBOFromOM(JAXBBlockImpl.java:136)
	at org.apache.axis2.jaxws.message.impl.BlockImpl.getBusinessObject(BlockImpl.java:148)
	at org.apache.axis2.jaxws.message.impl.XMLSpineImpl._getBlockFromOMElement(XMLSpineImpl.java:616)
	at org.apache.axis2.jaxws.message.impl.XMLSpineImpl.getBodyBlock(XMLSpineImpl.java:320)
	at org.apache.axis2.jaxws.message.impl.XMLPartBase.getBodyBlock(XMLPartBase.java:509)
	at org.apache.axis2.jaxws.message.impl.MessageImpl.getBodyBlock(MessageImpl.java:499)
	at org.apache.axis2.jaxws.marshaller.impl.alt.DocLitWrappedMinimalMethodMarshaller.getPDElementsForDocLitWrappedMinimal(DocLitWrappedMinimalMethodMarshaller.java:866)
	at org.apache.axis2.jaxws.marshaller.impl.alt.DocLitWrappedMinimalMethodMarshaller.demarshalRequest(DocLitWrappedMinimalMethodMarshaller.java:245)
	... 13 more

Thanks,
~Isuru

> Support for XmlJavaTypeAdapter (tracking)
> -----------------------------------------
>
>                 Key: AXIS2-3590
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3590
>             Project: Axis2
>          Issue Type: Bug
>          Components: jaxws
>            Reporter: Davanum Srinivas
>         Attachments: java_first_jaxws.zip
>
>
> Hi,
> I was porting a cxf sample when i realized that @XmlJavaTypeAdapter are not picked up
and used.
> http://svn.apache.org/repos/asf/incubator/cxf/trunk/distribution/src/main/release/samples/java_first_jaxws/
> Please see enclosed zip for a m2 project that can create standalone war that can be dropped
into say tomcat.
> thanks,
> dims

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


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message