[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6530) JTATransactio E TRAS0014I: The following exception was logged javax.naming.NameNotFoundException: Name "comp/UserTransaction" not found in context "java:".

Murtuza (JIRA) noreply at atlassian.com
Tue Aug 2 03:11:02 EDT 2011


JTATransactio E   TRAS0014I: The following exception was logged javax.naming.NameNotFoundException: Name "comp/UserTransaction" not found in context "java:".
-------------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: HHH-6530
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6530
             Project: Hibernate Core
          Issue Type: Task
          Components: core
    Affects Versions: 3.2.4.sp1
         Environment: Hibernate Version : 3.2.4.sp1
Database : DB2 9.1
Application Server : WAS 6.0 and WAS7
            Reporter: Murtuza


Hi,
While trying to use the JTATransaction object to commit the tranasction and close the session object in the ServiceBean of Session Bean. we get the following error message.
"JTATransactio E   TRAS0014I: The following exception was logged javax.naming.NameNotFoundException: Name "comp/UserTransaction" not found in context "java:"."
The hibernate.cfg.xml file has the appropriate mapping.

		<property name="connection.datasource">datasource</property>

		<!-- Database Settings -->
		<property name="default_schema">Schema</property>
		<property name="dialect">org.hibernate.dialect.DB2Dialect</property>
		<property name="show_sql">false</property>

		<!-- Transaction Settings -->
		<property name="hibernate.transaction.flush_before_completion">true</property>
		<property name="hibernate.transaction.auto_close_session">true</property>

		<property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
		<property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.WebSphereTransactionManagerLookup</property>

Any Help would be highly appreciated.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list