0 Replies Latest reply on Feb 23, 2009 10:36 AM by Tainted Purple

    Couldn't not find TransactionManager

    Tainted Purple Newbie

      Hi,

      I am pretty new to JBoss. The project is migrating from Weblogic to JBOss. I am getting this exception and If someone can give some guidance that would be great.

      java.rmi.ServerException: RuntimeException; nested exception is: org.cas.commerce.access.exception.CommerceRuntimeException: org.cas.commerce.access.exception.CommerceRuntimeException: org.hibernate.HibernateException: Could not locate TransactionManager

      org.cas.commerce.access.exception.CommerceRuntimeException: java.rmi.ServerException: RuntimeException; nested exception is:
      org.cas.commerce.access.exception.CommerceRuntimeException: org.cas.commerce.access.exception.CommerceRuntimeException: org.hibernate.HibernateException: Could not locate TransactionManager
      at org.cas.commerce.configservices.ConfigServicesDelegate.find(ConfigServicesDelegate.java:80)
      at org.cas.commerce.configservices.FindAPITester.testFindSingleActivityQuantity(FindAPITester.java:77)
      Caused by: java.rmi.ServerException: RuntimeException; nested exception is:
      org.cas.commerce.access.exception.CommerceRuntimeException: org.cas.commerce.access.exception.CommerceRuntimeException: org.hibernate.HibernateException: Could not locate TransactionManager
      at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:421)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:209)
      at org.jboss.ejb.plugins.CleanShutdownInterceptor.invoke(CleanShutdownInterceptor.java:278)
      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
      at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
      at org.jboss.ejb.Container.invoke(Container.java:960)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.invocation.unified.server.UnifiedInvokerHA.invoke(UnifiedInvokerHA.java:148)
      at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:734)
      at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:560)
      at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:383)
      at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:165)
      Caused by: org.cas.commerce.access.exception.CommerceRuntimeException: org.cas.commerce.access.exception.CommerceRuntimeException: org.hibernate.HibernateException: Could not locate TransactionManager
      at org.cas.commerce.util.hibernate.HibernateToolkit.getHibernateHelper(HibernateToolkit.java:126)
      at org.cas.commerce.util.hibernate.HibernateDAO.getHibernateHelper(HibernateDAO.java:22)
      at org.cas.commerce.configservices.HibernateConfigServicesDAO.retrieve(HibernateConfigServicesDAO.java:46)
      at org.cas.commerce.configservices.ConfigServicesImpl.find(ConfigServicesImpl.java:75)
      at org.cas.commerce.configservices.ConfigServicesEJB.find(ConfigServicesEJB.java:36)
      at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
      at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
      at org.jboss.ejb.plugins.CleanShutdownInterceptor.invoke(CleanShutdownInterceptor.java:278)
      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
      at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
      at org.jboss.ejb.Container.invoke(Container.java:960)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.invocation.unified.server.UnifiedInvokerHA.invoke(UnifiedInvokerHA.java:148)
      at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:734)
      at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:560)
      at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:383)
      at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:165)
      at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:163)
      at org.jboss.remoting.Client.invoke(Client.java:1634)
      at org.jboss.remoting.Client.invoke(Client.java:548)
      at org.jboss.invocation.unified.interfaces.UnifiedInvokerHAProxy.invoke(UnifiedInvokerHAProxy.java:227)
      at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
      at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)
      at org.jboss.proxy.ejb.RetryInterceptor.invoke(RetryInterceptor.java:176)
      at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
      at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112)
      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
      at $Proxy1.find(Unknown Source)
      at org.cas.commerce.configservices.ConfigServicesDelegate.find(ConfigServicesDelegate.java:77)
      at org.cas.commerce.configservices.FindAPITester.testFindSingleActivityQuantity(FindAPITester.java:77)
      Caused by: org.cas.commerce.access.exception.CommerceRuntimeException: org.hibernate.HibernateException: Could not locate TransactionManager
      at org.cas.commerce.util.hibernate.HibernateToolkit.createSessionFactory(HibernateToolkit.java:281)
      at org.cas.commerce.util.hibernate.HibernateToolkit.getSessionFactory(HibernateToolkit.java:234)
      at org.cas.commerce.util.hibernate.HibernateToolkit.getHibernateHelper(HibernateToolkit.java:121)
      at org.cas.commerce.util.hibernate.HibernateDAO.getHibernateHelper(HibernateDAO.java:22)
      at org.cas.commerce.configservices.HibernateConfigServicesDAO.retrieve(HibernateConfigServicesDAO.java:46)
      at org.cas.commerce.configservices.ConfigServicesImpl.find(ConfigServicesImpl.java:75)
      at org.cas.commerce.configservices.ConfigServicesEJB.find(ConfigServicesEJB.java:36)
      at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
      at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
      at org.jboss.ejb.plugins.CleanShutdownInterceptor.invoke(CleanShutdownInterceptor.java:278)
      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
      at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
      at org.jboss.ejb.Container.invoke(Container.java:960)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.invocation.unified.server.UnifiedInvokerHA.invoke(UnifiedInvokerHA.java:148)
      at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:734)
      at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:560)
      at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:383)
      at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:165)
      Caused by: org.hibernate.HibernateException: Could not locate TransactionManager
      at org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:26)
      at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:325)
      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
      at org.cas.commerce.util.hibernate.HibernateToolkit.createSessionFactory(HibernateToolkit.java:253)
      Caused by: javax.naming.NameNotFoundException: javax.transaction.TransactionManager not bound
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
      at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
      at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:589)
      at javax.naming.InitialContext.lookup(InitialContext.java:351)
      at org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:23)


      Thanks,
      Tainted