Mark Hansen's pretty-good-if-tad-bit-pricey SOA book (http://www.soabook.com/) covers XmlAdapters in a fair amount of detail on p.245-256, although I'm not certain it would solve the user's problem here.
Glen Am Donnerstag, den 02.08.2007, 12:54 -0400 schrieb Daniel Kulp: > This is actually an "interesting" question that's been on my "todo" list > to investigate for ages. It relates to things like HashMaps and such. > > The JAXB Javadoc describes some stuff about XmlAdapters: > http://java.sun.com/javase/6/docs/api/javax/xml/bind/annotation/adapters/XmlAdapter.html > that supposedly could be used to map non-jaxb objects into objects that > JAXB can understand. That javadoc describes a sample thing for > HashMaps, but I haven't actually tried doing it to see how it would work > or how to integrate it into CXF. > > Dan > > > > On Tuesday 31 July 2007 23:34, Jeremy Isikoff wrote: > > Hi all, I'm trying to return a RowSet (data and schema info) from a > > cxf webservice. I tried returning instances of CachedRowSetImpl or > > WebRowSetImpl directly but they both cause stack overflows when > > deploying to tomcat. Is there some better way to do this or do I have > > write my own class? > > > > > > java.lang.StackOverflowError > > at java.lang.Class.privateGetDeclaredFields(Class.java:2278) > > at java.lang.Class.getDeclaredFields(Class.java:1743) > > at > > org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitial > >izer.java:130) at > > org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitial > >izer.java:131) at org.apache.cxf.jaxb.JAXBContextInitializer.a > > > > > > > > ______________________________________________________________________ > >______________ Looking for a deal? Find great prices on flights and > > hotels with Yahoo! FareChase. http://farechase.yahoo.com/ >