I have made the changes again. But I again am getting the same error.
Is there something missing in my ApplicationConfig.java ?
WEB-INF/openejb-jar.xml:
<openejb-jar>
<pojo-deployment class-name="com.mycompany.Test3">
<properties>
cxf.jaxrs.providers = MyMessageBodyWriter
</properties>
</pojo-deployment>
</openejb-jar>
WEB-INF/resources.xml:
<resource>
<Service id="MyMessageBodyWriter"
class-name="com.mycompany.MyMessageBodyWriter" />
</resource>
ApplicationConfig.java:
package com.mycompany;
...
@ApplicationPath("/rest-prefix")
public class ApplicationConfig extends Application {
public Set<Class<?>> getClasses() {
return new HashSet<Class<?>>(Arrays.asList(Test3.class));
}
}
--
View this message in context:
http://openejb.979440.n4.nabble.com/Simple-MessageBodyWriter-Testing-with-No-message-body-writer-has-been-found-for-response-class-error-tp4657558p4657601.html
Sent from the OpenEJB User mailing list archive at Nabble.com.