1 Reply Latest reply on Sep 4, 2011 3:48 AM by jaikiran pai

    Error - hibernate + transaction manager lookup

    jefimm Newbie

      HI ,

       

      I'm trying to port application from Jboss 4.3.2 to Jboss AS 7.0.1.

      Having overcome some initial hurdles I'm facing an exception I do not understand (according to documentation it should work?):

       

      Caused by: org.hibernate.HibernateException: Could not locate TransactionManager

          at org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:60) [hibernate-3.3.1.GA.jar:]

          at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:357) [hibernate-3.3.1.GA.jar:]

          at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327) [hibernate-3.3.1.GA.jar:]

         .............................................................................................................

          ... 49 more

      Caused by: javax.naming.NameNotFoundException: java:jboss/TransactionManager

          at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:55)

          at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:207)

          at javax.naming.InitialContext.lookup(InitialContext.java:392) [:1.6.0_24]

          at org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:57) [hibernate-3.3.1.GA.jar:]

          ... 52 more

       

      Any help would be appreciated.