[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-2695) Hibernate 3.2.4 Transaction Lookup is failing

Steve Ebersole (JIRA) noreply at atlassian.com
Fri Jun 29 10:30:52 EDT 2007


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Ebersole closed HHH-2695.
-------------------------------

    Resolution: Rejected

If you configure Hibernate for use of JTA, it must be able to access either the TransactionManager or the UserTransaction.

> Hibernate 3.2.4 Transaction Lookup is failing
> ---------------------------------------------
>
>                 Key: HHH-2695
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2695
>             Project: Hibernate3
>          Issue Type: Bug
>    Affects Versions: 3.2.4
>         Environment: JOTM + Tomcat 5.5.23 + Hibernate 3.2.4
>            Reporter: Guy
>
> We upgraded Hibernate from version 3.1.3 to version 3.2.4.  Creating the connection and transaction worked using  3.1.3 although when upgrading using Hibernate 3.2.4 it fails creating the transaction.
> org.hibernate.TransactionException: Unable to locate UserTransaction to check status
>         at org.hibernate.transaction.JTATransactionFactory.isTransactionInProgress(JTATransactionFactory.java:102)
>         at org.hibernate.jdbc.JDBCContext.isTransactionInProgress(JDBCContext.java:187)
>         at org.hibernate.impl.SessionImpl.isTransactionInProgress(SessionImpl.java:369)
>         at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:962)
>         at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1114)
>         at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
>         at com.vangenechten.infrastructure.services.resources.WfDataDAO.getAllParentWfData(WfDataDAO.java:175)
>         at com.vangenechten.infrastructure.services.service.WfDataServiceImpl.getAllParentWfData(WfDataServiceImpl.java:
> 161)
>         at com.vangenechten.workflow.cic.workflow.shark.service.WorkflowProcessor.getHowManyConfiguration(WorkflowProces
> sor.java:109)
>         at com.vangenechten.workflow.cic.workflow.shark.service.WorkflowProcessor.execute(WorkflowProcessor.java:57)
>         at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
>         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
> Caused by: javax.naming.NamingException: Cannot create resource instance
>         at org.apache.naming.factory.TransactionFactory.getObjectInstance(TransactionFactory.java:113)
>         at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
>         at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
>         at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
>         at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
>         at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
>         at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
>         at javax.naming.InitialContext.lookup(InitialContext.java:347)
>         at org.hibernate.transaction.JTATransactionFactory.isTransactionInProgress(JTATransactionFactory.java:98)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list