Hmm.... I'm not sure why that doesn't work. We have a system tests for this and that seems to pass fine: https://svn.apache.org/repos/asf/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxb/ https://svn.apache.org/repos/asf/incubator/cxf/trunk/systests/src/test/resources/extrajaxbclass.xml
That said, you might want to try the latest SNAPSHOTS: http://people.apache.org/repo/m2-snapshot-repository/org/apache/cxf/apache-cxf/2.1-incubator-SNAPSHOT/ I've spent quite a bit of time the last couple days trying to get the JAXB databinding to detect a more complete list of classes before creating the context. It should do a much better job of of finding the MyObj object and may add it automatically. We also now support the jaxb.index files. Thus, if another class in the package as MyObj IS detected, you can add the jaxb.index file (just one line with "MyObj", no package name) to the package and it will load them. Dan On Friday 27 July 2007 08:52, Julio Arias wrote: > Hi - > > I have a @WebMethod with a signature like this LIst<MyObj> getSomthing > () I'm using Doc/Lit Soap Binding, and MyObj is not been added to my > WSDL, I found issue CXF-340 that says how to add extra classes to > your JAXB context and i did someting like this (see code below) But > it doesn't seem to work either, I debug the endpoint initialization > an the properties are null. > > <jaxws:endpoint id="documentService" address="/DocumentService" > implementor="#documentServiceImpl"> > <jaxws:inInterceptors> > <ref bean="saajInInterceptor"/> > <ref bean="WSS4jInInterceptor"/> > </jaxws:inInterceptors> > <jaxws:properties> > <entry key="jaxb.additionalContextClasses"> > <bean > class="com.rbx.lor.ws.utils.ClassArrayFactoryBean"> > <property name="classNames"> > <list> > > <value>com.rbx.lor.ws.soap.model.UserVO</value> > </list> > </property> > </bean> > </entry> > </jaxws:properties> > </jaxws:endpoint> > > > > > Julio Arias > Java Developer > Roundbox Global : enterprise : technology : genius > --------------------------------------------------------------------- > Avenida 11 y Calle 7-9, Barrio Amón, San Jose, Costa Rica > tel: 404.567.5000 ext. 2001 | cell: 11.506.849.5981 > email: [EMAIL PROTECTED] | www.rbxglobal.com > --------------------------------------------------------------------- -- J. Daniel Kulp Principal Engineer IONA P: 781-902-8727 C: 508-380-7194 [EMAIL PROTECTED] http://www.dankulp.com/blog
