0 Replies Latest reply on Mar 23, 2010 12:58 PM by Debopam Poddar

    JBoss 5.1 javax.naming.NameNotFoundException: javax.transaction.TransactionManager not bound

    Debopam Poddar Newbie

      I am trying to deploy hibernate application in Jboss 5.1 but whenever it tries to create SessionFactory it gives following error.

       

       

      2010-03-23 19:15:19,406 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/securityadmin].[jsp]] (http-127.0.0.1-10006-1) Servlet.service() for servlet jsp threw exception
      javax.naming.NameNotFoundException: javax.transaction.TransactionManager not bound
          at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
          at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
          at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
          at org.jnp.server.NamingServer.lookup(NamingServer.java:443)
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
          at javax.naming.InitialContext.lookup(InitialContext.java:351)
          at net.sf.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:23)
          at net.sf.hibernate.transaction.JTATransactionFactory.configure(JTATransactionFactory.java:48)
          at net.sf.hibernate.transaction.TransactionFactoryFactory.buildTransactionFactory(TransactionFactoryFactory.java:48)
          at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:65)
          at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1091)
          at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:737)
          at com.gmacb.blt.common.persistence.SessionFactoryImpl.getSessionFactory(SessionFactoryImpl.java:39)
          at com.gmacb.blt.common.persistence.SessionFactoryImpl.newSession(SessionFactoryImpl.java:21)
          at com.gmacb.blt.common.persistence.ThreadLocalHolder.getSession(ThreadLocalHolder.java:15)
          at com.gmacb.blt.common.persistence.ServiceLocatorImpl$ManagerDelegate.getSession(ServiceLocatorImpl.java:113)
          at com.gmacb.blt.common.persistence.ServiceLocatorImpl$ManagerDelegate.invoke(ServiceLocatorImpl.java:91)
          at $Proxy261.findUserByUsername(Unknown Source)
          at com.gmacb.blt.common.security.UserSecurityContextHibernateImpl.<init>(UserSecurityContextHibernateImpl.java:36)
          at com.gmacb.blt.common.security.ISecurityServiceHibernateImpl.authenticateSSO(ISecurityServiceHibernateImpl.java:40)
          at com.gmacb.blt.common.security.SecurityService.authenticateSSO(SecurityService.java:70)
          at com.gmacb.blt.common.security.SimpleSecurityFilter.doFilter(SimpleSecurityFilter.java:58)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.gmacb.blt.sso.client.client.filter.CASFilter.doFilter(CASFilter.java:103)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
          at java.lang.Thread.run(Thread.java:595)

       

      But I checked TransactionManagerService started successfully.