Salut Fred ;) didn't you mix http://www.openejb.org/xml/ns/openejb-jar-2.1 and http://www.openejb.org/xml/ns/openejb-jar-1.1 namespaces?
If so can you just replace the 2.1 stuff by the property openejb.webservice.deployment.address? Romain Manni-Bucau @rmannibucau http://www.tomitribe.com http://rmannibucau.wordpress.com https://github.com/rmannibucau 2015-01-29 11:54 GMT+01:00 Frederic Cornuau <[email protected]>: > 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.
