[jboss-user] [EJB 3.0] - Re: Could not deploy EJB3.0 entities

saasira do-not-reply at jboss.com
Sat Nov 10 16:40:20 EST 2007


Hello to all,

Now,having got EJB3.0 working with Hibernate,
  I'm set  to deploy EJB 3.0 application using  toplink as Persistence Provider..

  But I'm getting the following error : 
 
  | 
  | Persistence Unit Model; state Deployed; factoryCount 1
  | 03:02:15,952 ERROR [STDERR] javax.persistence.TransactionRequiredException: 
  | Exception Description: No transaction is currently active
  | 03:02:15,953 ERROR [STDERR]     at oracle.toplink.essentials.internal.ejb.cmp3.transaction.EntityTransactionWrapper.throwCheckTransactionFailedException(EntityTransactionWrapper.java:70)
  | 03:02:15,953 ERROR [STDERR]     at hibernate.transaction.manager_lookup_classoracle.toplink.essentials.internal.ejb.cmp3.transaction.base.EntityTransactionWrapper.checkForTransaction(EntityTransactionWrapper.java:62)
  | 03:02:15,953 ERROR [STDERR]     at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl.checkForTransaction(EntityManagerImpl.java:616)
  | 03:02:15,953 ERROR [STDERR]     at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl.joinTransaction(EntityManagerImpl.java:646)
  | 03:02:15,953 ERROR [STDERR]     at org.jboss.ejb3.entity.ManagedEntityManagerFactory.getTransactionScopedEntityManager(ManagedEntityManagerFactory.java:183)
  | 03:02:15,953 ERROR [STDERR]     at org.jboss.ejb3.entity.TransactionScopedEntityManager.persist(TransactionScopedEntityManager.java:182)
  | 03:02:15,954 ERROR [STDERR]     at com.prapansol.demos.service.SRServiceBean.persistEntity(SRServiceBean.java:76)
  | 


In Hibernate we have   
hibernate.transaction.manager_lookup_class
  How can we make toplink look up the  JBossTransactionManager class?

  Any idea?
  Thnks for your help in advance,
  Samba

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103441#4103441

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103441



More information about the jboss-user mailing list