Thiago H. de Paula Figueiredo a écrit :
Em Fri, 14 Aug 2009 09:42:34 -0300, bdumeny <bdum...@cvf.fr> escreveu:

Hi all!

Hi!

I try to develop a T5 / jpa application!
All junits tests on my DAOS work but when I try to deploy on tomcat I still have a "No Persistence provider for EntityManager name ..." error when I call DAOs.
My persistence.xml seams to be at good place...
So my question is : Is it possible that T5 don't work with jpa ?

I don't think this is a Tapestry-related issue, as it doesn't touch anything beside page, component and mixin classes. This looks like a misplaced persistence.xml or the way you create your EntityManagers in your web app.


Missplaced persistence.xml was my first idea, but it's placed in WEB-INF/classes/META-INF/ ..

My entity manager factory is static in my DAO :

private EntityManagerFactory emFactory = Persistence.createEntityManagerFactory(MY_PERSISTENCE);
   private EntityManager em;

public MyDAOImpl(){ try {
           em = emFactory.createEntityManager();
       } catch (Exception ex) {
           ex.printStackTrace();
       }
   }

and My DAO is injected in my tml Page.






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to