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

Description

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.

Environment

Hibernate Version : 3.2.4.sp1
Database : DB2 9.1
Application Server : WAS 6.0 and WAS7

Activity

Show:
Brett Meyer
October 2, 2013, 8:56 PM

Please ask questions like this in the forums first. Create a JIRA ticket only when a concise issue is identified and you have a reproducer/testcase. Thanks!

Assignee

Unassigned

Reporter

Murtuza

Fix versions

None

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure