I think the EE spec only refers to the deployment descriptors - beans.xml,
web.xml and ejb-jar.xml (application.xml doesn't relate to WAR files).
 persistence.xml, validation.xml are a different type of descriptor.


On Wed, Jun 12, 2013 at 4:48 PM, Romain Manni-Bucau
<[email protected]>wrote:

> Thats not that trivial since javaee spec is kind of ambiguous saying
> descriptors goes in web inf but not which one
> Le 12 juin 2013 22:32, "John D. Ament" <[email protected]> a écrit :
>
> > 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
> > <[email protected]>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" <[email protected]> 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
> > > > <[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