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 <[email protected]> > 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. >
