Hello, My application implements both JAX-WS and JAX-RS Services and I need to change JAX-WS services URLs and JAX-RS JSON default provider.
As described here ( http://tomee.apache.org/examples-trunk/change-jaxws-url/README.html <http://tomee.apache.org/examples-trunk/change-jaxws-url/README.html> ) and here ( https://rmannibucau.wordpress.com/2013/01/09/tomeeopenejb-jaxrs-refactoring/ <https://rmannibucau.wordpress.com/2013/01/09/tomeeopenejb-jaxrs-refactoring/> ), /openejb-jar.xml/ can be used. But declaring /enterprise-beans/ elements and /pojo-deployment/ elements in a same openejb-jar is actually not possible: /org.apache.openejb.config.ReadDescriptors.readOpenejbJar/ operation fails because of unexpected elements found during parsing. In fact /enterprise-beans/ and /pojo-deployment/ elements are defined in different JAXB elements and have not the same XML namespace. The workaround I use currently is to define JAX-WS URLs in the /openejb-jar.xml/: and to configure the JAX-RS providers in the TomEE /conf/sytem.properties/ file: where /jaxbProvider/ is the id of a resource defined in the webapp (/WEB-INF/resources.xml/) : Any chance to have /enterprise-beans/ and /pojo-deployment/ elements supported in a same /openejb-jar/? Frederic -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/openejb-jar-xml-changing-JAX-WS-URLs-AND-JAX-RS-providers-not-possible-tp4673643.html Sent from the TomEE Users mailing list archive at Nabble.com.
