We upgraded from 1.7.4 to 7.1.0, and we're in the process of testing. We came
across a problem (see error below) related to the new johnzon implementation.
To work around the problem, we're attempting to revert back to the previous
implementation by adding resources.xml and openejb-jar.xml. With the changes,
the application now starts fine, but we're now getting 404s when making a POST
request. Any thoughts on what's causing the 404?
resources.xml
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<Service id="oldprovider"
class-name="org.apache.cxf.jaxrs.provider.json.JSONProvider">
</Service>
</resources>
openejb-jar.xml
<?xml version="1.0" encoding="UTF-8"?>
<openejb-jar xmlns="http://www.openejb.org/openejb-jar/1.1">
<pojo-deployment class-name="com.lenovo.RestClass">
<properties>
cxf.jaxrs.providers = oldprovider
</properties>
</pojo-deployment>
</openejb-jar>
Johnzon error
at org.apache.johnzon.core.JsonGeneratorImpl.close(JsonGeneratorImpl.java:454)
at org.apache.johnzon.mapper.Mapper.writeObject(Mapper.java:147)
at org.apache.johnzon.mapper.Mapper.writeObject(Mapper.java:182)
at org.apache.johnzon.jsonb.JohnzonJsonb.toJson(JohnzonJsonb.java:317)
at
org.apache.johnzon.jaxrs.jsonb.jaxrs.JsonbJaxrsProvider.writeTo(JsonbJaxrsProvider.java:171)
at
org.apache.cxf.jaxrs.utils.JAXRSUtils.writeMessageBody(JAXRSUtils.java:1417)
at
org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.serializeMessage(JAXRSOutInterceptor.java:245)
________________________________
Jay Leggett
Software Engineer
Lenovo United States
[Phone](919) 237-8165
[Email][email protected]<mailto:[email protected]>
[RedLogo]