excepted it is the main place in the spec :p, as for other descriptors in webapp
I think META-INF is supported just because of compatibility *Romain Manni-Bucau* *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2013/6/12 John D. Ament <[email protected]> > No it shouldn't :-) > > As far as I know, everyone looks for it in WEB-INF/classes/META-INF (which > is the root of the WEB-INF JAR) > > > On Wed, Jun 12, 2013 at 10:46 AM, Romain Manni-Bucau > <[email protected]>wrote: > > > should be better with https://issues.apache.org/jira/browse/TOMEE-973 > > > > that said you can put the persistence.xml in WEB-INF and it should be > fine > > for every app servers > > > > *Romain Manni-Bucau* > > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* > > *Blog: **http://rmannibucau.wordpress.com/*< > > http://rmannibucau.wordpress.com/> > > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* > > *Github: https://github.com/rmannibucau* > > > > > > > > 2013/6/12 daedalus <[email protected]> > > > > > I confirmed it again: > > > > > > persistence.xml without <jar-file> entries: > > > Works on TomEE, does not work on Glassfish and JBoss > > > > > > persistence.xml with > > > > > > Works on TomEE, does not work on Glassfish and Jboss > > > > > > > > > persistence.xml with > > > > > > Works on Glassfish and Jboss, does not work on TomEE > > > > > > This is a little bit annyoing, now I have to somehow use different > > > persitence.xml files for the different containers. > > > > > > > > > @smithh032772 I have > > > > > > in my persistence.xml But Glassfish does not recognize Classes > annotated > > > with @Entity if they are packaged inside a jar in the WEB-INF/lib > > directory > > > of my ".war" File. > > > > > > > > > > > > > > > -- > > > View this message in context: > > > > > > http://openejb.979440.n4.nabble.com/Problem-with-Entities-in-jars-tp4663695p4663706.html > > > Sent from the OpenEJB User mailing list archive at Nabble.com. > > > > > >
