Hi,
Here's top of the log: Application 'app' (version 1.0-SNAPSHOT) startup time: 469 ms to build IoC Registry, 1,078 ms overall. ______ __ ____ /_ __/__ ____ ___ ___ / /_______ __ / __/ / / / _ `/ _ \/ -_|_-</ __/ __/ // / /__ \ /_/ \_,_/ .__/\__/___/\__/_/ \_, / /____/ /_/ /___/ 5.3.6 2012-11-02 16:13:44.641:INFO::Started SelectChannelConnector@0.0.0.0:8080 [DEBUG] AppModule.JabberUserDAO Creating proxy for service JabberUserDAO [DEBUG] AppModule.JabberUserDAO Loading class com.audit.manager.dao.impl.JabberUserDAODBUImpl. [DEBUG] AppModule.JabberUserDAO Marking class com.audit.manager.dao.impl.JabberUserDAODBUImpl to be (re-)loaded [DEBUG] AppModule.JabberUserDAO BEGIN Analyzing com.audit.manager.dao.impl.JabberUserDAODBUImpl [DEBUG] AppModule.JabberUserDAO END Analyzing com.audit.manager.dao.impl.JabberUserDAODBUImpl [DEBUG] AppModule.JabberUserDAO Invoking constructor public com.audit.manager.dao.impl.JabberUserDAODBUImpl() (for service 'JabberUserDAO') java.lang.IllegalStateException: Failed to create EntityManagerFactory for persistence unit 'JabberDBUnit' at org.apache.tapestry5.internal.jpa.EntityManagerSourceImpl.createEntityManagerFactory(EntityManagerSourceImpl.java:211) at org.apache.tapestry5.internal.jpa.EntityManagerSourceImpl.getEntityManagerFactory(EntityManagerSourceImpl.java:185) at org.apache.tapestry5.internal.jpa.EntityManagerSourceImpl.create(EntityManagerSourceImpl.java:275) at $EntityManagerSource_14984b6181487.create(Unknown Source) ... and my DAO impl import java.util.List; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import javax.persistence.Query; import org.apache.tapestry5.ioc.annotations.Inject; import com.audit.manager.dao.JabberUserDAO; import com.audit.manager.entities.JabberUser; public class JabberUserDAODBUImpl implements JabberUserDAO { @Inject @PersistenceContext(unitName = "JabberDBUnit") private EntityManager entityManager; public JabberUser getUserByJid(Integer jid) { return entityManager.find(JabberUser.class, jid); } public List<JabberUser> getAllUsers() { Query query = entityManager.createQuery("SELECT e FROM users e"); return (List<JabberUser>) query.getResultList(); } public void updateUser(JabberUser user) { entityManager.persist(user); } } ----- Original Message ----- From: Thiago H de Paula Figueiredo To: Tapestry users Sent: Friday, November 02, 2012 4:26 PM Subject: Re: problem with JTA & EntityManager Hi! On Fri, 02 Nov 2012 14:24:53 -0200, John <j...@quivinco.com> wrote: > [DEBUG] AppModule.JabberUserDAO Invoking constructor public > com.audit.manager.dao.impl.JabberUserDAODBUImpl() (for service > 'JabberUserDAO') > java.lang.IllegalStateException: Failed to create EntityManagerFactory > for persistence unit 'JabberDBUnit' I think you've posted just part of the stack trace, as it's missing the 'caused by' part(s) telling why creating the EntityManagerFactory failed. -- Thiago H. de Paula Figueiredo --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org