org.hibernate.TransactionException

Could not find UserTransaction in JNDI:

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web156

  • Could not find UserTransaction in JNDI:
  • via atomikos.com by Unknown author, 1 year ago
    Could not find UserTransaction in JNDI:
  • via deepakgaikwad.net by Unknown author, 1 year ago
    Could not find UserTransaction in JNDI:
  • Stack trace

    • org.hibernate.TransactionException: Could not find UserTransaction in JNDI: at org.hibernate.transaction.JTATransaction.<init>(JTATransaction.java:64) at org.hibernate.transaction.JTATransactionFactory.createTransaction(JTATransactionFactory.java:57) at org.hibernate.jdbc.JDBCContext.getTransaction(JDBCContext.java:186) at org.hibernate.impl.SessionImpl.getTransaction(SessionImpl.java:1308) at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1318) at rootpackage.application.business.logic.ServiceAgreementSvcBean.storeServiceAgreement(ServiceAgreementSvcBean.java:832) Caused by: javax.naming.NameNotFoundException: Name "comp/UserTransaction" not found in context "java:". at com.ibm.ws.naming.ipbase.NameSpace.lookupInternal(NameSpace.java:1094) at com.ibm.ws.naming.ipbase.NameSpace.lookup(NameSpace.java:990) at com.ibm.ws.naming.urlbase.UrlContextImpl.lookup(UrlContextImpl.java:1263) at com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java:201) at com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java:142) at javax.naming.InitialContext.lookup(InitialContext.java:361) at org.hibernate.transaction.JTATransaction.<init>(JTATransaction.java:60)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago