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 Thu, 31 Jul 2008 17:47:07 GMT
Hi,

What if you add the targetnamespace to the webresult annotation, such as

@WebResult(name="thingArray", targetNamespace =
"http://jws.samples.geronimo.apache.org")

Also how did you generate your wsdl?  It would help if you could
supply your sample.

Thanks

Lin

On Thu, Jul 31, 2008 at 1:18 PM, ericp56 <eric.phetteplace@twcable.com> wrote:
>
> Hello,
>
> I'm using JAX-WS with POJO.  I've run into an issue.  I'm figuring it may be
> easily recognizable by others, so here it is:
>
> In my interface, I've added the following:
>
>    @WebResult(name="thingArray")
>    public Thing[] GetThings();
>
> Thing is a class in the same namespace.
>
> Upon execution, the following exception happens:
>
> Caused by: javax.xml.bind.JAXBException: [Lcom.my.ws.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)
>
> Any suggestions?
>
> Thanks,
>
> Eric
> --
> View this message in context: http://www.nabble.com/Simple-JAX-WS-tp18759351s134p18759351.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>

Mime
View raw message