This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes incompatible with javax.transaction.UserTransaction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark " incompatible with javax.transaction.UserTransaction" Watch " incompatible with javax.transaction.UserTransaction" New topic
Author incompatible with javax.transaction.UserTransaction

Madhavi Subramaniam
Ranch Hand

Joined: Nov 24, 2011
Posts: 33

I've deployed two application in Websphere cluster. I'm using following properties in hibernate.cfg.xml file

i'm using hibernate version3 jar

I'm getting following error while session.beginTransaction

[1/3/12 17:58:13:184 IST] 00000077 SystemOut O 2012-01-03 17:58:13,183 ERROR [WebContainer : 2] IntegrationPartnerParamsDAO - update failed
java.lang.ClassCastException: incompatible with javax.transaction.UserTransaction
at org.hibernate.transaction.JTATransactionFactory.getUserTransaction(
at org.hibernate.transaction.JTATransactionFactory.createTransaction(
at org.hibernate.jdbc.JDBCContext.getTransaction(
at org.hibernate.impl.SessionImpl.getTransaction(
at org.hibernate.impl.SessionImpl.beginTransaction(
at com.exterro.fusion.edrm.integration.dao.IntegrationPartnerParamsDAO.update(
at com.exterro.fusion.edrm.integration.dao.IntegrationPartnerParamsDAO.updateParamsValue(
at com.exterro.fusion.edrm.integration.web.servlet.helper.EDRMIntegrationAdapterServletHelper.updateParams(
at com.exterro.fusion.edrm.integration.web.servlet.helper.EDRMIntegrationAdapterServletHelper.saveParamsData(
at com.exterro.fusion.edrm.integration.web.servlet.helper.EDRMIntegrationAdapterServletHelper.updateClientParams(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at com.exterro.fusion.edrm.integration.web.servlet.EDRMIntegrationAdapterServlet.doRequest(
at com.exterro.fusion.edrm.integration.web.servlet.IntegrationBaseWeb.doPost(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(

please anyone guide me to resolve this issue.

But i deployed this application in Jboss. It is working fine. I'm facing this problem when install it on websphere.


Vijitha Kumara

Joined: Mar 24, 2008
Posts: 3902

java.lang.ClassCastException: incompatible with javax.transaction.UserTransaction

Looks like an incompatibility between the provider and the API. Have you checked the server's documentation about the compatibility (i.e.: What implements the javax.transaction.UserTransaction)?

[How to ask questions] [Twitter]
Philip St-Pierre

Joined: Mar 16, 2012
Posts: 1
Hi Madhavi,

Did you find a solution to your problem? I have the same issue.


I agree. Here's the link:
subject: incompatible with javax.transaction.UserTransaction
It's not a secret anymore!