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.
>

Reply via email to