Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Object Relational Mapping and the fly likes com.ibm.ws.tx.jta.UserTransactionImpl incompatible with javax.transaction.UserTransaction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "com.ibm.ws.tx.jta.UserTransactionImpl incompatible with javax.transaction.UserTransaction" Watch "com.ibm.ws.tx.jta.UserTransactionImpl incompatible with javax.transaction.UserTransaction" New topic
Author

com.ibm.ws.tx.jta.UserTransactionImpl incompatible with javax.transaction.UserTransaction

Madhavi Subramaniam
Ranch Hand

Joined: Nov 24, 2011
Posts: 33
Hi,

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: com.ibm.ws.tx.jta.UserTransactionImpl incompatible with javax.transaction.UserTransaction
at org.hibernate.transaction.JTATransactionFactory.getUserTransaction(JTATransactionFactory.java:163)
at org.hibernate.transaction.JTATransactionFactory.createTransaction(JTATransactionFactory.java:149)
at org.hibernate.jdbc.JDBCContext.getTransaction(JDBCContext.java:220)
at org.hibernate.impl.SessionImpl.getTransaction(SessionImpl.java:1343)
at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1353)
at com.exterro.fusion.edrm.integration.dao.IntegrationPartnerParamsDAO.update(IntegrationPartnerParamsDAO.java:44)
at com.exterro.fusion.edrm.integration.dao.IntegrationPartnerParamsDAO.updateParamsValue(IntegrationPartnerParamsDAO.java:127)
at com.exterro.fusion.edrm.integration.web.servlet.helper.EDRMIntegrationAdapterServletHelper.updateParams(EDRMIntegrationAdapterServletHelper.java:466)
at com.exterro.fusion.edrm.integration.web.servlet.helper.EDRMIntegrationAdapterServletHelper.saveParamsData(EDRMIntegrationAdapterServletHelper.java:435)
at com.exterro.fusion.edrm.integration.web.servlet.helper.EDRMIntegrationAdapterServletHelper.updateClientParams(EDRMIntegrationAdapterServletHelper.java:400)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at com.exterro.fusion.edrm.integration.web.servlet.EDRMIntegrationAdapterServlet.doRequest(EDRMIntegrationAdapterServlet.java:58)
at com.exterro.fusion.edrm.integration.web.servlet.IntegrationBaseWeb.doPost(IntegrationBaseWeb.java:73)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)


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.

Thanks.

Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3775

java.lang.ClassCastException: com.ibm.ws.tx.jta.UserTransactionImpl 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)?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Philip St-Pierre
Greenhorn

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

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

Thanks,

Phil
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: com.ibm.ws.tx.jta.UserTransactionImpl incompatible with javax.transaction.UserTransaction
 
Similar Threads
Configuring IIOPTunnel on Websphere 6
Migration from Hibernate 2 to Hibernate 3.2.2
Connection Pool (couldn't find datasource)
connection problem in mysql
SQL server and hibernate