Is it possible for anyone who is using windows to send me his settings.xml configuration file of maven2 because I have problems during build of CXF?
On Fri, Apr 30, 2010 at 8:06 PM, Jonathan Koppenhofer <[email protected]>wrote: > Yeah... that's what I'm saying... I already tried that with jettison > installed as a bundle in my osgi container... no dice :( > > On Fri, Apr 30, 2010 at 1:03 PM, Sergey Beryozkin <[email protected] > >wrote: > > > I actually do not understand it.. Possibly due to the fact CXF optionally > > imports jettison packages and CXF JAXRS statically trying to load > > JSONProvider (in its ProviderFactory) ? > > > > How about setting "org.apache.cxf.rs.provider" to > > "org.apache.cxf.jaxrs.provider.JSONProvider" ? (note JAXB XML is > supported > > by default so no need to explicitly specify it) > > > > cheers, Sergey > > > > On Fri, Apr 30, 2010 at 5:48 PM, Jonathan Koppenhofer > > <[email protected]>wrote: > > > > > My only question would be... Why does the AegisJSONProvider work (which > > > requires jettison), yet JSONProvider doesn't. When I tried the > > > JSONProvider, > > > I did have the jettison bundle installed the exact same way, it just > > didn't > > > work. > > > > > > ... or maybe I misunderstood what you said :) > > > > > > On Fri, Apr 30, 2010 at 12:44 PM, Sergey Beryozkin < > [email protected] > > > >wrote: > > > > > > > Thanks for sharing this... > > > > > > > > I do think that the only reason a Jettison provider is not working > OTB > > in > > > > OSGI is that if no Jettison bundle is available by the the DOSGI DSW > > gets > > > > installed then CXF JAXRS will just fail to initialize (Jettison) > > > > JSONProvider; in this case it has to be restarted/refreshed after a > > > > jettison > > > > bundle has been installed given that it itself does not track the > > > > availability of Jettison. > > > > > > > > I think DOSGI 1.2 should ship Jettison 1.2 - it is a small library > and > > > > looks > > > > like many DOSGI RI/JAXRS users are expecting the default JSON support > > OTB > > > > > > > > cheers, Sergey > > > > > > > > On Fri, Apr 30, 2010 at 5:30 PM, kdog <[email protected]> > > wrote: > > > > > > > > > > > > > > I did stumble upon a way to get a json (and/or xml) response... > > > > > > > > > > 1.) Make sure jettison 1.2 is available as a bundle in your osgi > > > > container > > > > > 2.) For "org.apache.cxf.rs.provider" use > > > > > > > > > > > > > > > > > > > > "org.apache.cxf.jaxrs.provider.AegisElementProvider,org.apache.cxf.jaxrs.provider.AegisJSONProvider" > > > > > > > > > > Kind of odd since the normal JSONProvider did not work, yet > > > > > AegisJSONProvider that uses jettison also works. Not a huge fan of > > the > > > > way > > > > > these providers spit things out, but it works for now to get both > xml > > > and > > > > > json spitting out :) > > > > > -- > > > > > View this message in context: > > > > > > > > > http://old.nabble.com/DOSGi-and-JSON-responses-tp27330507p28414202.html > > > > > Sent from the cxf-user mailing list archive at Nabble.com. > > > > > > > > > > > > > > > > > > > >
