seems this commit broke it https://github.com/apache/tomee/commit/2845741a7caa0dc897178ac0112838ea0f87c471
Romain Manni-Bucau @rmannibucau http://www.tomitribe.com http://rmannibucau.wordpress.com https://github.com/rmannibucau 2014-11-25 16:08 GMT+01:00 Yann Blazart <[email protected]>: > Ok. > > I'm testing my app using tomee-maven pluging > > <plugin> > <groupId>org.apache.openejb.maven</groupId> > <artifactId>tomee-maven-plugin</artifactId> > <version>1.7.1</version> > <configuration> > <tomeeVersion>1.7.2-SNAPSHOT</tomeeVersion> > <tomeeClassifier>plus</tomeeClassifier> > <tomeeAjpPort>8009</tomeeAjpPort> > > > If I'm launching with : > <openejb-jar xmlns="http://openejb.apache.org/xml/ns/openejb-jar-2.2"> > > > <enterprise-beans> > > In the war/WEB-INF (in an EAR). > > It do not start : > > INFOS: Using > 'openejb.default.deployment-module=org.apache.openejb.config.WebModule' > nov. 25, 2014 4:03:14 PM org.apache.openejb.config.ConfigurationFactory > configureApplication > INFOS: Configuring enterprise application: > C:\Dev\projects\POC\TOMEE\testWSSecurityServ\testWSSecurityServ-ear\target\apache-tomee\apps\testWSSecurityServ-ear-1.0-SNAPSHOT > [severity=ERROR, message=élément inattendu (URI : " > http://openejb.apache.org/xml/ns/openejb-jar-2.2", local : "session"). Les > éléments attendus sont <{ > http://tomee.apache.org/xml/ns/openejb-jar-2.2}session>,<{ > http://tomee.apache.org/xml/ns/openejb-jar-2.2}entity>,<{ > http://tomee.apache.org/xml/ns/openejb-jar-2.2}message-driven>, > locator=[node=null, object=null, url=null, line=5,col=18,offset=-1]] > nov. 25, 2014 4:03:15 PM org.apache.openejb.config.ConfigurationFactory > configureApplication > AVERTISSEMENT: Jar not loaded. > C:\Dev\projects\POC\TOMEE\testWSSecurityServ\testWSSecurityServ-ear\target\apache-tomee\apps\testWSSecurityServ-ear-1.0-SNAPSHOT.ear. > Cannot unmarshall the openejb-jar.xml. Xml content written to: > C:\Dev\projects\POC\TOMEE\testWSSecurityServ\testWSSecurityServ-ear\target\apache-tomee\temp\openejb-jar-2782430267915295074.xml: > élément inattendu (URI : "http://openejb.apache.org/xml/ns/openejb-jar-2.2", > local : "session"). Les éléments attendus sont <{ > http://tomee.apache.org/xml/ns/openejb-jar-2.2}session>,<{ > http://tomee.apache.org/xml/ns/openejb-jar-2.2}entity>,<{ > http://tomee.apache.org/xml/ns/openejb-jar-2.2}message-driven> > org.apache.openejb.OpenEJBException: Cannot unmarshall the openejb-jar.xml. > Xml content written to: > C:\Dev\projects\POC\TOMEE\testWSSecurityServ\testWSSecurityServ-ear\target\apache-tomee\temp\openejb-jar-2782430267915295074.xml: > élément inattendu (URI : "http://openejb.apache.org/xml/ns/openejb-jar-2.2", > local : "session"). Les éléments attendus sont <{ > http://tomee.apache.org/xml/ns/openejb-jar-2.2}session>,<{ > http://tomee.apache.org/xml/ns/openejb-jar-2.2}entity>,<{ > http://tomee.apache.org/xml/ns/openejb-jar-2.2}message-driven> > at > org.apache.openejb.config.ReadDescriptors.readOpenejbJar(ReadDescriptors.java:362) > at > org.apache.openejb.config.ReadDescriptors.deploy(ReadDescriptors.java:101) > at > org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:402) > > > 2014-11-25 15:52 GMT+01:00 Romain Manni-Bucau <[email protected]>: > >> Hi >> >> no it is the same and we don't validate it just check the version. >> Here is a sample >> >> https://git-wip-us.apache.org/repos/asf?p=tomee.git;a=blob;f=examples/webservice-ws-with-resources-config/src/main/resources/META-INF/openejb-jar.xml;h=cb05baec48602f04a3bd3bc52a386f4b5f8965ac;hb=91e9840fe035ba433cffa3d4f64a8f5151882be2 >> >> >> Romain Manni-Bucau >> @rmannibucau >> http://www.tomitribe.com >> http://rmannibucau.wordpress.com >> https://github.com/rmannibucau >> >> >> 2014-11-25 15:43 GMT+01:00 Yann Blazart <[email protected]>: >> > Namespace has changed between 1.7.1 and 1.7.2 for openejb-jar.xml ? >> > >> > http://openejb.apache.org/xml/ns/openejb-jar-2.2 -> 1.7.1 >> > http://tomee.apache.org/xml/ns/openejb-jar-2.2 -> 1.7.2 >> > >> > >> > >> > Caused by: javax.xml.bind.UnmarshalException: élément inattendu (URI : " >> > http://openejb.apache.org/xml/ns/openejb-jar-2.2", local : "session"). >> Les >> > éléments attendus sont <{ >> > http://tomee.apache.org/xml/ns/openejb-jar-2.2}session>,<{ >> > http://tomee.apache.org/xml/ns/openejb-jar-2.2}entity>,<{ >> > http://tomee.apache.org/xml/ns/openejb-jar-2.2}message-driven> >>
