That's because cxf JSONProvider depends on jettison and this class is in the container.
You can try to add in conf/system.properties: openejb.forced-load=org.apache.cxf.jaxrs.provider.json.JSONProvider to try to enforce it to be loaded from the webapp Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber <http://www.tomitribe.com> | JavaEE Factory <https://javaeefactory-rmannibucau.rhcloud.com> 2016-07-27 15:04 GMT+02:00 JulienB <[email protected]>: > It's work ! Merci ! > > I configure openejb-jar.xml : > <?xml version="1.0" encoding="UTF-8"?> > <openejb-jar xmlns="http://www.openejb.org/openejb-jar/1.1" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.openejb.org/openejb-jar/1.1"> > <pojo-deployment class-name="jaxrs-application"> > <properties> > cxf.jaxrs.providers = > org.apache.cxf.jaxrs.provider.json.JSONProvider > </properties> > </pojo-deployment> > </openejb-jar> > > And add the dependency : > org.codehaus.jettison:jettison:1.3.7 > > But, for a reason i don't understand, the dependency isn't loaded correctly > during deployment. > > Despite I included* jettison.jar* in my war deployed, I obtain error log > following : > java.lang.NoClassDefFoundError: org/codehaus/jettison/mapped/TypeConverter > > I have to copy *jettison.jar* in the /tomee/lib/, it works. > > It's minor problem, but it's not perfect. > > Thank you again for your reactivity ! > > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/Migrate-TomEE-1-7-x-to-7-x-Java-to-JSON-Issue-tp4679500p4679503.html > Sent from the TomEE Users mailing list archive at Nabble.com. >
