geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simen Storsveen <>
Subject Trying to return List<MyBean> from web service method
Date Tue, 13 Nov 2007 00:27:49 GMT


I believe I'm supposed to be able to return a java.util.List<MyBean> from a
web service method using JAX-WS 2.0 annotations, e.g.:

  public class MyService
    public List<MyBean> getBeans() { ... }

The generated WSDL looks ok to me, as does the client Java code generated
from this WSDL.
However, when I try to call the service I get the following exception:

  javax.xml.bind.JAXBException: java.util.List is not known to this context

(I am running v2.0.2 w/Tomcat. And yes, MyBean has a default constructor :-)

Can anyone help me with this?

View this message in context:
Sent from the Apache Geronimo - Users mailing list archive at

View raw message