geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lin Sun" <linsun....@gmail.com>
Subject Re: Simple JAX-WS
Date Fri, 01 Aug 2008 03:30:27 GMT
Hi,

 I just tried to use xjc (com.sun.tools.xjc.Driver) to create the
corresponding jaxb files -

Echo.java
EchoResponse.java
GetMoreThings.java
GetMoreThingsResponse.java
GetThings.java
GetThingsResponse.java
ObjectFactory.java
package-info.java
Thing.java

After that, I am able to deploy the project as a war and invoke the
web service from a jsp client.

Lin

On Thu, Jul 31, 2008 at 6:04 PM, Lin Sun <linsun.unc@gmail.com> wrote:
> Hi,
>
> Thanks.  I am able to reproduce this prob.  And this appears to be
> same issue related to complextype in our bug system -
> https://issues.apache.org/jira/browse/GERONIMO-3793
>
> Lin
>
> On Thu, Jul 31, 2008 at 2:44 PM, ericp56 <eric.phetteplace@twcable.com> wrote:
>>
>> And the error stack:
>>
>> 14:43:22,729 ERROR [Axis2WebServiceContainer] Exception occurred while
>> trying to invoke service method doService()
>> org.apache.axis2.AxisFault: javax.xml.bind.MarshalException
>>  - with linked exception:
>> [javax.xml.bind.JAXBException: [Lorg.rnd.Thing; is not known to this
>> context]
>>        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
>>        at
>> org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:166)
>>        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
>>        at
>> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
>>        at
>> org.apache.geronimo.axis2.pojo.POJOWebServiceContainer.processPOSTRequest(POJOWebServiceContainer.java:120)
>>        at
>> org.apache.geronimo.axis2.Axis2WebServiceContainer.doService2(Axis2WebServiceContainer.java:265)
>>        at
>> org.apache.geronimo.axis2.Axis2WebServiceContainer.doService(Axis2WebServiceContainer.java:204)
>>        at
>> org.apache.geronimo.axis2.Axis2WebServiceContainer.invoke(Axis2WebServiceContainer.java:167)
>>        at
>> org.apache.geronimo.webservices.WebServiceContainerInvoker.service(WebServiceContainerInvoker.java:84)
>>        at
>> org.apache.geronimo.webservices.POJOWebServiceServlet.service(POJOWebServiceServlet.java:79)
>>        at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>        at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>        at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>        at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>>        at
>> org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
>>        at
>> org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:406)
>>        at
>> org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
>>        at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>        at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>        at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>        at
>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
>>        at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
>>        at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>>        at
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
>>        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>        at java.lang.Thread.run(Thread.java:595)
>> Caused by: javax.xml.ws.WebServiceException: javax.xml.bind.MarshalException
>>  - with linked exception:
>> [javax.xml.bind.JAXBException: [Lorg.rnd.Thing; is not known to this
>> context]
>>        at
>> org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:174)
>>        at
>> org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:69)
>>        at
>> org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:127)
>>        at
>> org.apache.axis2.jaxws.message.databinding.impl.JAXBBlockImpl$2.run(JAXBBlockImpl.java:405)
>>        at
>> org.apache.axis2.java.security.AccessController.doPrivileged(AccessController.java:76)
>>        at
>> org.apache.axis2.jaxws.message.databinding.impl.JAXBBlockImpl.marshalByType(JAXBBlockImpl.java:321)
>>        at
>> org.apache.axis2.jaxws.message.databinding.impl.JAXBBlockImpl._outputFromBO(JAXBBlockImpl.java:209)
>>        at
>> org.apache.axis2.jaxws.message.impl.BlockImpl.outputTo(BlockImpl.java:327)
>>        at
>> org.apache.axis2.jaxws.message.impl.BlockImpl.serialize(BlockImpl.java:252)
>>        at
>> org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerializeAndConsume(OMSourcedElementImpl.java:599)
>>        at
>> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:785)
>>        at
>> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:814)
>>        at
>> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:785)
>>        at
>> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:814)
>>        at
>> org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(SOAPEnvelopeImpl.java:237)
>>        at
>> org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:225)
>>        at
>> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:814)
>>        at
>> org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:421)
>>        at
>> org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:68)
>>        at
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:294)
>>        at
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:211)
>>        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
>>        at
>> org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:151)
>>        ... 24 more
>> Caused by: javax.xml.bind.MarshalException
>>  - with linked exception:
>> [javax.xml.bind.JAXBException: [Lorg.rnd.Thing; is not known to this
>> context]
>>        at
>> com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:295)
>>        at
>> com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:148)
>>        at
>> org.apache.axis2.jaxws.message.databinding.impl.JAXBBlockImpl$2.run(JAXBBlockImpl.java:402)
>>        ... 43 more
>> Caused by: javax.xml.bind.JAXBException: [Lorg.rnd.Thing; is not known to
>> this context
>>        at
>> com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:223)
>>        at
>> com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:238)
>>        at
>> com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:85)
>>        at
>> com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:127)
>>        at
>> com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeBody(ElementBeanInfoImpl.java:244)
>>        at
>> com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:251)
>>        at
>> com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:33)
>>        at
>> com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:461)
>>        at
>> com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:292)
>>        ... 45 more
>> Caused by: javax.xml.bind.JAXBException: [Lorg.rnd.Thing; is not known to
>> this context
>>        at
>> com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:538)
>>        at
>> com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:82)
>>        ... 51 more
>>
>> --
>> View this message in context: http://www.nabble.com/Simple-JAX-WS-tp18759351s134p18760940.html
>> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>>
>>
>

Mime
View raw message