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

Reply via email to