there are auto scanning too in tomee which is fine but that's not the issue
if i understood

*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 Howard W. Smith, Jr. <[email protected]>

> daedalus,
>
> Are you the user from primefaces forum that reports mojarra performance
> issues? :-)
>
> Have you tried the exclude classes property in your persistence.xml? I used
> that when I used Glassfish 3.1.2.2 and I am still using that property while
> using tomee, so i don't have to specify jpa entity classes.
>
> Howard/smithh032772
>  On Jun 12, 2013 8:11 AM, "daedalus" <[email protected]> wrote:
>
> > Hello,
> >
> > I'm developing a multi-module JEE 6 web-application. I'm using the JEE
> > Webprofil so the application is packaged in a single war file. One of my
> > goal is to develop this application for Jboss, Glassfish and TomEE as
> > supported application servers.
> >
> > It looks like this:
> >
> >
> > I understand, that I have to tell the JPA that some of my entities are
> > inside the jars and not directly under WEB-INF/classes. So I modified my
> > persistence.xml to use the <jar-file> tag. I have many Entites so I do
> not
> > want to add each single one of them with the <class> tag.
> >
> >
> >
> > This works fine on Jboss and Glassfish. But TomEE cannot find the jars
> > because it is looking for them in the folder "WEB-INF/class/lib". This
> > folder does not exist. So I changed the persistence.xml
> >
> >
> >
> > Now the Application works on TomEE but not on Glassfish or JBoss.
> >
> > Is there any way around that issue?
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://openejb.979440.n4.nabble.com/Problem-with-Entities-in-jars-tp4663695.html
> > Sent from the OpenEJB User mailing list archive at Nabble.com.
> >
>

Reply via email to