Thanks for the help. But I am getting an error doing so.
Any idea ?
[severity=ERROR, message=unexpected element (uri:"",
local:"pojo-deployment"). Expected elements are
<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}ejb-ql-compiler-factory>,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}properties>,<{http://geronimo.apache.org/xml/ns/deployment-1.2}service>,<{http://geronimo.apache.org/xml/ns/naming-1.2}message-destination>,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}db-syntax-factory>,<{http://geronimo.apache.org/xml/ns/security-2.0}security>,<{http://java.sun.com/xml/ns/persistence}persistence>,<{http://geronimo.apache.org/xml/ns/deployment-1.2}environment>,<{http://geronimo.apache.org/xml/ns/naming-1.2}cmp-connection-factory>,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}relationships>,<{http://geronimo.apache.org/xml/ns/deployment-1.2}gbean>,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}enterprise-beans>,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}enforce-foreign-key-constraints>,<{http://geronimo.apache.org/xml/ns/j2ee/application-1.2}security>,
locator=[node=null, object=null, url=null, line=2,col=91,offset=-1]]
SEVERE: Unable to deploy collapsed ear in war /DSTest: Exception: Cannot
unmarshall the openejb-jar.xml. Xml content written to:
C:\Users\WAG\AppData\Local\Temp\openejb-jar-1422988848215116310.xml:
unexpected element (uri:"http://www.openejb.org/openejb-jar/1.1",
local:"pojo-deployment"). Expected elements are
<{http://www.openejb.org/openejb-jar/1.1}properties>,<{http://www.openejb.org/openejb-jar/1.1}ejb-deployment>,<{http://www.openejb.org/openejb-jar/1.1}module-name>
org.apache.openejb.OpenEJBException: Cannot unmarshall the openejb-jar.xml.
Xml content written to:
C:\Users\WAG\AppData\Local\Temp\openejb-jar-1422988848215116310.xml:
unexpected element (uri:"http://www.openejb.org/openejb-jar/1.1",
local:"pojo-deployment"). Expected elements are
<{http://www.openejb.org/openejb-jar/1.1}properties>,<{http://www.openejb.org/openejb-jar/1.1}ejb-deployment>,<{http://www.openejb.org/openejb-jar/1.1}module-name>
This is what I put in WEB-INF\openejb-jar.xml
<openejb-jar>
<pojo-deployment class="com.mycompany.Test3">
<properties>
cxf.jaxrs.providers = com.mycompany.MyMessageBodyWriter
</properties>
</pojo-deployment>
</openejb-jar>
This is what I put in WEB-INF\resources.xml
<resources>
<Resource id="my" class-name="com.mycompany.Test3" />
</resources>
--
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-tp4657558p4657585.html
Sent from the OpenEJB User mailing list archive at Nabble.com.