3 Replies Latest reply on Jan 14, 2015 11:34 PM by valsaraj viswanathan

    UserTransaction lookup failed

    valsaraj viswanathan Master

      ERROR [io.undertow.servlet] (default task-1) Error setting up UserTransaction or starting a transaction: javax.naming.NameNotFoundException: UserTransaction -- service jboss.naming.context.java.UserTransaction

        at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:104)

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

        at org.jboss.as.naming.InitialContext$DefaultInitialContext.lookup(InitialContext.java:233)

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

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

        at javax.naming.InitialContext.lookup(InitialContext.java:411) [rt.jar:1.7.0_07]

       

      I am using the following code to lookup UserTransaction and was working with JBoss 4:

      (UserTransaction) ctx.lookup("UserTransaction");