7 Replies Latest reply on Mar 12, 2012 3:55 PM by Nicholas DiPiazza

    JBoss 7.0.2 JTA UserTransaction is not available at JNDI location [UserTransaction]

    anivijen Newbie

      Hi,

       

      When I was trying to start JBoss 7.0.2 Final server after deploying application, i was getting the following exception:

       

       

      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/config/webflow-config.xml]: Invocation of init method failed; nested exception is org.springframework.transaction.TransactionSystemException: JTA UserTransaction is not available at JNDI location [UserTransaction]; nested exception is javax.naming.NameNotFoundException: UserTransaction -- service jboss.naming.context.java.UserTransaction

          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420) [org.springframework.beans-3.0.5.RELEASE.jar:]

          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) [org.springframework.beans-3.0.5.RELEASE.jar:]

          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) [org.springframework.beans-3.0.5.RELEASE.jar:]

          at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) [org.springframework.beans-3.0.5.RELEASE.jar:]

          at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [org.springframework.beans-3.0.5.RELEASE.jar:]

          at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) [org.springframework.beans-3.0.5.RELEASE.jar:]

          at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) [org.springframework.beans-3.0.5.RELEASE.jar:]

          at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322) [org.springframework.beans-3.0.5.RELEASE.jar:]

          ... 23 more

      Caused by: org.springframework.transaction.TransactionSystemException: JTA UserTransaction is not available at JNDI location [UserTransaction]; nested exception is javax.naming.NameNotFoundException: UserTransaction -- service jboss.naming.context.java.UserTransaction

          at org.springframework.transaction.jta.JtaTransactionManager.lookupUserTransaction(JtaTransactionManager.java:548) [org.springframework.transaction-3.0.0.RELEASE.jar:]

          at org.springframework.transaction.jta.JtaTransactionManager.initUserTransactionAndTransactionManager(JtaTransactionManager.java:425) [org.springframework.transaction-3.0.0.RELEASE.jar:]

          at org.springframework.transaction.jta.JtaTransactionManager.afterPropertiesSet(JtaTransactionManager.java:412) [org.springframework.transaction-3.0.0.RELEASE.jar:]

          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477) [org.springframework.beans-3.0.5.RELEASE.jar:]

          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417) [org.springframework.beans-3.0.5.RELEASE.jar:]

          ... 30 more

      Caused by: javax.naming.NameNotFoundException: UserTransaction -- service jboss.naming.context.java.UserTransaction

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

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

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

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

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

          at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:154) [org.springframework.context-3.0.5.RELEASE.jar:]

          at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:87) [org.springframework.context-3.0.5.RELEASE.jar:]

          at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152) [org.springframework.context-3.0.5.RELEASE.jar:]

          at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178) [org.springframework.context-3.0.5.RELEASE.jar:]

          at org.springframework.transaction.jta.JtaTransactionManager.lookupUserTransaction(JtaTransactionManager.java:545) [org.springframework.transaction-3.0.0.RELEASE.jar:]

          ... 34 more

       

      If any body has any clue please reply to this.

       

      Thanks in advance.

       

      -ANIVIJEN