spec for validator says it goes in WEB-INF/classes/META-INF as well. So, web.xml, ejb-jar.xml, beans.xml go in WEB-INF validator.xml, persistence.xml, beans.xml go in WEB-INF/classes/META-INF
Sounds like what we really have is an issue for the EE spec to sort out the proper place to put descriptors. John On Wed, Jun 12, 2013 at 3:07 PM, Romain Manni-Bucau <rmannibu...@gmail.com>wrote: > Hmm weird, sure i saw the opposite...if not we have to open an issue since > it would be the only descriptor being here (sure for ejb-jar, web, > validator..) > Le 12 juin 2013 18:45, "John D. Ament" <john.d.am...@gmail.com> a écrit : > > > Spec says it goes in WEB-INF/classes/META-INF. In fact the spec says it > > should not work if it's directly in WEB-INF. > > > > > > On Wed, Jun 12, 2013 at 12:30 PM, Romain Manni-Bucau > > <rmannibu...@gmail.com>wrote: > > > > > so the workaround is to put it in both places ;) > > > > > > joke apart i wonder why jboss and glassfish doesn't follow the spec (or > > did > > > i misunderstood it? would be better probably, if not we could add a > flag > > to > > > do like them) > > > > > > *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 <m.nis...@eurokey.de> > > > > > > > Yes you're right. > > > > > > > > Placing the persistence.xml file directly in WEB-INF is working for > > > TomEE. > > > > But neither Glassfish nor JBoss will recognize the persistence.xml in > > any > > > > folder different from WEB-INF/classes/META-INF > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > View this message in context: > > > > > > > > > > http://openejb.979440.n4.nabble.com/Problem-with-Entities-in-jars-tp4663695p4663720.html > > > > Sent from the OpenEJB User mailing list archive at Nabble.com. > > > > > > > > > >