0 Replies Latest reply on Apr 21, 2006 6:46 AM by Brenda Wong

    Cannot find the TransactionManager

    Brenda Wong Newbie

      I am using a MessageListener to get ServerSession from a remote machine. But I got the following error when started to get Session from ServerSession:

      2006-04-19 17:15:40,902 [main] ERROR framework.channel.AbstractJBossImpl - JMSException occurred when executing "getSession" in AbstractJBossImpl
      javax.jms.JMSException: Transation manager was not found
      at org.jboss.jms.asf.StdServerSession.(StdServerSession.java:127)
      at org.jboss.jms.asf.StdServerSessionPool.create(StdServerSessionPool.java:373)
      at org.jboss.jms.asf.StdServerSessionPool.(StdServerSessionPool.java:169)
      at org.jboss.jms.asf.StdServerSessionPoolFactory.getServerSessionPool(StdServerSessionPoolFactory.java:64)
      at mips.framework.channel.AbstractJBossImpl.getSession(AbstractJBossImpl.java:546)
      at mips.framework.channel.adaptor.Adaptor$Producer.initialize(Adaptor.java:321)
      at mips.framework.channel.adaptor.Adaptor$Producer.(Adaptor.java:313)
      at mips.framework.channel.adaptor.Adaptor.initializeAdaptor(Adaptor.java:56)
      at mips.framework.channel.adaptor.Adaptor.(Adaptor.java:50)
      at mips.framework.channel.adaptor.EmailAdaptor.(EmailAdaptor.java:26)
      at mips.framework.channel.AbstractJBossImpl.setUpAdaptors(AbstractJBossImpl.java:229)
      at mips.framework.channel.AbstractJBossImpl.initialApplication(AbstractJBossImpl.java:93)
      at mips.framework.channel.AbstractJBossImpl.(AbstractJBossImpl.java:71)
      at mips.framework.channel.activemq.ActiveMQImpl.(ActiveMQImpl.java:42)
      at mips.framework.channel.activemq.ActiveMQImpl.main(ActiveMQImpl.java:63)
      2006-04-19 17:15:40,996 [main] ERROR channel.adaptor.Adaptor - JMSException occurred when executing "initialize" in mips.framework.channel.adaptor.Adaptor$Producer
      javax.jms.JMSException: Transation manager was not found
      at org.jboss.jms.asf.StdServerSession.(StdServerSession.java:127)
      at org.jboss.jms.asf.StdServerSessionPool.create(StdServerSessionPool.java:373)
      at org.jboss.jms.asf.StdServerSessionPool.(StdServerSessionPool.java:169)
      at org.jboss.jms.asf.StdServerSessionPoolFactory.getServerSessionPool(StdServerSessionPoolFactory.java:64)
      at mips.framework.channel.AbstractJBossImpl.getSession(AbstractJBossImpl.java:546)
      at mips.framework.channel.adaptor.Adaptor$Producer.initialize(Adaptor.java:321)
      at mips.framework.channel.adaptor.Adaptor$Producer.(Adaptor.java:313)
      at mips.framework.channel.adaptor.Adaptor.initializeAdaptor(Adaptor.java:56)
      at mips.framework.channel.adaptor.Adaptor.(Adaptor.java:50)
      at mips.framework.channel.adaptor.EmailAdaptor.(EmailAdaptor.java:26)
      at mips.framework.channel.AbstractJBossImpl.setUpAdaptors(AbstractJBossImpl.java:229)
      at mips.framework.channel.AbstractJBossImpl.initialApplication(AbstractJBossImpl.java:93)
      at mips.framework.channel.AbstractJBossImpl.(AbstractJBossImpl.java:71)
      at mips.framework.channel.activemq.ActiveMQImpl.(ActiveMQImpl.java:42)
      at mips.framework.channel.activemq.ActiveMQImpl.main(ActiveMQImpl.java:63)
      2006-04-19 17:15:40,996 [main] ERROR channel.adaptor.Adaptor - JMSException occurred when executing "initializeAdaptor" in Adaptor
      javax.jms.JMSException: Transation manager was not found
      at org.jboss.jms.asf.StdServerSession.(StdServerSession.java:127)
      at org.jboss.jms.asf.StdServerSessionPool.create(StdServerSessionPool.java:373)
      at org.jboss.jms.asf.StdServerSessionPool.(StdServerSessionPool.java:169)
      at org.jboss.jms.asf.StdServerSessionPoolFactory.getServerSessionPool(StdServerSessionPoolFactory.java:64)
      at mips.framework.channel.AbstractJBossImpl.getSession(AbstractJBossImpl.java:546)
      at mips.framework.channel.adaptor.Adaptor$Producer.initialize(Adaptor.java:321)
      at mips.framework.channel.adaptor.Adaptor$Producer.(Adaptor.java:313)
      at mips.framework.channel.adaptor.Adaptor.initializeAdaptor(Adaptor.java:56)
      at mips.framework.channel.adaptor.Adaptor.(Adaptor.java:50)
      at mips.framework.channel.adaptor.EmailAdaptor.(EmailAdaptor.java:26)
      at mips.framework.channel.AbstractJBossImpl.setUpAdaptors(AbstractJBossImpl.java:229)
      at mips.framework.channel.AbstractJBossImpl.initialApplication(AbstractJBossImpl.java:93)
      at mips.framework.channel.AbstractJBossImpl.(AbstractJBossImpl.java:71)
      at mips.framework.channel.activemq.ActiveMQImpl.(ActiveMQImpl.java:42)
      at mips.framework.channel.activemq.ActiveMQImpl.main(ActiveMQImpl.java:63)
      mips.framework.channel.exception.ChannelApplicationException: JMSException occurred when "initialApplication" in AbstractJBossImpl
      at mips.framework.channel.AbstractJBossImpl.initialApplication(AbstractJBossImpl.java:96)
      at mips.framework.channel.AbstractJBossImpl.(AbstractJBossImpl.java:71)
      at mips.framework.channel.activemq.ActiveMQImpl.(ActiveMQImpl.java:42)
      at mips.framework.channel.activemq.ActiveMQImpl.main(ActiveMQImpl.java:63)
      Caused by: javax.jms.JMSException: Transation manager was not found
      at org.jboss.jms.asf.StdServerSession.(StdServerSession.java:127)
      at org.jboss.jms.asf.StdServerSessionPool.create(StdServerSessionPool.java:373)
      at org.jboss.jms.asf.StdServerSessionPool.(StdServerSessionPool.java:169)
      at org.jboss.jms.asf.StdServerSessionPoolFactory.getServerSessionPool(StdServerSessionPoolFactory.java:64)
      at mips.framework.channel.AbstractJBossImpl.getSession(AbstractJBossImpl.java:546)
      at mips.framework.channel.adaptor.Adaptor$Producer.initialize(Adaptor.java:321)
      at mips.framework.channel.adaptor.Adaptor$Producer.(Adaptor.java:313)
      at mips.framework.channel.adaptor.Adaptor.initializeAdaptor(Adaptor.java:56)
      at mips.framework.channel.adaptor.Adaptor.(Adaptor.java:50)
      at mips.framework.channel.adaptor.EmailAdaptor.(EmailAdaptor.java:26)
      at mips.framework.channel.AbstractJBossImpl.setUpAdaptors(AbstractJBossImpl.java:229)
      at mips.framework.channel.AbstractJBossImpl.initialApplication(AbstractJBossImpl.java:93)
      ... 3 more

      Code:
      public Session getSession(Destination destination, int minSession, int maxSession,
      long timeToAlive) throws JMSException, NamingException {
      final String procName = "getSession";
      Session session = null;
      try {
      ServerSessionPoolFactory serverSessionPoolFactory = new StdServerSessionPoolFactory();
      ServerSessionPool serverSessionPool = serverSessionPoolFactory.getServerSessionPool(
      destination, getConnection(), minSession, maxSession, timeToAlive,
      isTransactedConnection(), getAcknowledgeMode(), useLocalTransaction(), null);
      session = serverSessionPool.getServerSession().getSession();
      serverSessionPool = null;
      serverSessionPoolFactory = null;
      } catch (JMSException ex) {
      logger.error("JMSException occurred when executing \"" + procName + "\" in " +
      CLASSNAME, ex);
      throw ex;
      } catch (NamingException ex) {
      logger.error("NamingException occurred when executing \"" + procName + "\" in " +
      CLASSNAME, ex);
      throw ex;
      }
      return session;
      }

      Remote Machine JNDI View:

      java: Namespace
      +- DefaultDS (class: org.jboss.resource.adapter.jdbc.WrapperDataSource)
      +- SecurityProxyFactory (class: org.jboss.security.SubjectSecurityProxyFactory)
      +- activemq (class: org.jnp.interfaces.NamingContext)
      | +- QueueConnectionFactory (class: org.apache.activemq.ra.ActiveMQConnectionFactory)
      | +- TopicConnectionFactory (class: org.apache.activemq.ra.ActiveMQConnectionFactory)
      +- XAOracleDS (class: org.jboss.resource.adapter.jdbc.WrapperDataSource)
      +- comp (class: javax.naming.Context)
      +- jaas (class: javax.naming.Context)
      | +- JmsXARealm (class: org.jboss.security.plugins.SecurityDomainContext)
      | +- HsqlDbRealm (class: org.jboss.security.plugins.SecurityDomainContext)
      +- timedCacheFactory (class: javax.naming.Context)
      Failed to lookup: timedCacheFactory, errmsg=null
      +- TransactionPropagationContextExporter (class: org.jboss.tm.TransactionPropagationContextFactory)
      +- Mail (class: javax.mail.Session)
      +- TransactionPropagationContextImporter (class: org.jboss.tm.TransactionPropagationContextImporter)
      +- TransactionManager (class: org.jboss.tm.TxManager)
      +- hibernate (class: org.jnp.interfaces.NamingContext)
      | +- SessionFactory (class: org.hibernate.impl.SessionFactoryImpl)

      Global JNDI Namespace

      +- ServerInfo (proxy: $Proxy102 implements interface mips.minds.util.about.ejb.ServerInfoHome,interface javax.ejb.Handle)
      +- Jobmanager (class: mips.framework.management.job.JobManagerImpl)
      +- jms (class: org.jnp.interfaces.NamingContext)
      | +- outbound (class: org.jnp.interfaces.NamingContext)
      | | +- sambaQueue (class: org.apache.activemq.command.ActiveMQQueue)
      | +- inbound (class: org.jnp.interfaces.NamingContext)
      | | +- errorQueue (class: org.apache.activemq.command.ActiveMQQueue)
      | | +- statusQueue (class: org.apache.activemq.command.ActiveMQQueue)
      +- dymmy (proxy: $Proxy49 implements interface mips.minds.service.bulletin.ejb.dymmyHome,interface javax.ejb.Handle)
      +- EventManager (class: mips.framework.management.event.EventManagerImpl)
      +- UserTransactionSessionFactory (proxy: $Proxy12 implements interface org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory)
      +- UUIDKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactory)
      +- console (class: org.jnp.interfaces.NamingContext)
      | +- PluginManager (proxy: $Proxy40 implements interface org.jboss.console.manager.PluginManagerMBean)
      +- service (class: org.jnp.interfaces.NamingContext)
      | +- LoginManager (class: mips.minds.service.login.LoginManagerImpl)
      | +- TaskService (class: mips.framework.management.task.TaskManager)
      +- Quartz (class: org.quartz.impl.StdScheduler)
      +- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction)
      +- ejb (class: org.jnp.interfaces.NamingContext)
      | +- LoginXMLHome (proxy: $Proxy113 implements interface mips.minds.service.login.ejb.LoginXMLHome,interface javax.ejb.Handle)
      | +- IntegrateServiceHome (proxy: $Proxy111 implements interface mips.minds.service.integrate.ejb.IntegrateServiceHome,interface javax.ejb.Handle)
      | +- PhaseMgtServiceHome (proxy: $Proxy123 implements interface mips.minds.service.workflow.ejb.PhaseMgtServiceHome,interface javax.ejb.Handle)
      | +- ClientServiceHome (proxy: $Proxy108 implements interface mips.minds.service.client.ejb.ClientServiceHome,interface javax.ejb.Handle)
      | +- local (class: org.jnp.interfaces.NamingContext)
      | | +- SignalServiceHome (proxy: $Proxy58 implements interface mips.minds.service.bulletin.ejb.SignalServiceLocalHome)
      | | +- BulletinServiceHome (proxy: $Proxy59 implements interface mips.minds.service.bulletin.ejb.BulletinServiceLocalHome)
      | | +- PhaseServiceHome (proxy: $Proxy74 implements interface mips.minds.service.workflow.ejb.PhaseServiceLocalHome)
      | | +- SystemMSHome (proxy: $Proxy79 implements interface mips.minds.service.system.ejb.SystemMSLocalHome)
      | | +- PhaseIntegrationServiceHome (proxy: $Proxy75 implements interface mips.minds.service.workflow.ejb.PhaseIntegrationServiceLocalHome)
      | | +- LoginHome (proxy: $Proxy69 implements interface mips.minds.service.login.ejb.LoginLocalHome)
      | | +- ClientServiceHome (proxy: $Proxy62 implements interface mips.minds.service.client.ejb.ClientServiceLocalHome)
      | | +- IntegrateServiceHome (proxy: $Proxy65 implements interface mips.minds.service.integrate.ejb.IntegrateServiceLocalHome)
      | | +- PhaseMgtServiceHome (proxy: $Proxy76 implements interface mips.minds.service.workflow.ejb.PhaseMgtServiceLocalHome)
      | | +- BulletinMgtServiceHome (proxy: $Proxy57 implements interface mips.minds.service.bulletin.ejb.BulletinMgtServiceLocalHome)
      | +- SystemMSHome (proxy: $Proxy126 implements interface mips.minds.service.system.ejb.SystemMSHome,interface javax.ejb.Handle)
      | +- PhaseServiceHome (proxy: $Proxy117 implements interface mips.minds.service.workflow.ejb.PhaseServiceHome,interface javax.ejb.Handle)
      | +- PhaseIntegrationServiceHome (proxy: $Proxy120 implements interface mips.minds.service.workflow.ejb.PhaseIntegrationServiceHome,interface javax.ejb.Handle)
      +- jmx (class: org.jnp.interfaces.NamingContext)
      | +- invoker (class: org.jnp.interfaces.NamingContext)
      | | +- RMIAdaptor (proxy: $Proxy39 implements interface org.jboss.jmx.adaptor.rmi.RMIAdaptor,interface org.jboss.jmx.adaptor.rmi.RMIAdaptorExt)
      | +- rmi (class: org.jnp.interfaces.NamingContext)
      | | +- RMIAdaptor[link -> jmx/invoker/RMIAdaptor] (class: javax.naming.LinkRef)
      +- HiLoKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory)

      I don't know what is wrong.
      Thanks for your help.