8 Replies Latest reply: Dec 22, 2011 10:45 AM by Tom Harris RSS

Cannot upgrade JB6.0.0->6.1.0 due to JMS ConnectionFactory not bound

Tom Harris Newbie

Our application has been running fine on JBoss 6.0.0-Final for quite a while now. It uses HornetQ via JMS, and it uses Spring 3.0.6 to configure the queue listeners and senders.

 

When we upgraded to JBoss 6.1.0-Final, we are now getting a deployment failure:

 

13:09:44,669 ERROR [STDERR] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmsConnectionFactory': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: ConnectionFactory not bound

13:09:44,669 ERROR [STDERR]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)

... lots of irrelevant stack frames ...

13:09:44,779 ERROR [STDERR] Caused by: javax.naming.NameNotFoundException: ConnectionFactory not bound

13:09:44,779 ERROR [STDERR]     at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)

... more irrelevant stack frames ...

 

Did something change between 6.0.0 and 6.1.0 that is making the JNDI binding fail? I tried dropping our war files into deploy after the server was fully running, same failure. I looked in the admin-console to find the JMS connection factory and its JNDI bindings, and it shows "java:/ConnectionFactory,java:/XAConnectionFactory". I have also tried setting the "xa" element in the ConnectionFactory to false, still fails. So, I'm not sure what the issue is... Does anyone have some ideas?

 

Contents of hornetq-jms.xml:

<configuration xmlns="urn:hornetq"

            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

            xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">

   <connection-factory name="InVMConnectionFactory">

      <xa>true</xa>

        <connectors>

            <connector-ref connector-name="in-vm" />

        </connectors>

        <entries>

            <entry name="java:/ConnectionFactory" />

            <entry name="java:/XAConnectionFactory" />

        </entries>

    </connection-factory>

   <queue name="DLQ">

      <entry name="/queue/DLQ"/>

   </queue>

   <queue name="ExpiryQueue">

      <entry name="/queue/ExpiryQueue"/>

   </queue>

    <queue name="applicationSpecificQueue">

        <entry name="java:/queue/applicationSpecificQueue"/>

    </queue>

</configuration>

 

Spring bean configuration file:

<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xmlns:p="http://www.springframework.org/schema/p" xmlns:util="http://www.springframework.org/schema/util"

    xmlns:jee="http://www.springframework.org/schema/jee" xmlns:lang="http://www.springframework.org/schema/lang"

    xmlns:jms="http://www.springframework.org/schema/jms" xmlns:tx="http://www.springframework.org/schema/tx"

    xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context"

    xsi:schemaLocation="

http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd

http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd

http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.0.xsd

http://www.springframework.org/schema/jms http://www.springframework.org/schema/jms/spring-jms-3.0.xsd

http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd

http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd

http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd"

    default-autowire="byName">

    <jee:jndi-lookup id="jmsConnectionFactory" jndi-name="java:/ConnectionFactory"

        expected-type="javax.jms.ConnectionFactory" lookup-on-startup="true" />

    <bean id="jndiDestinationResolver" class="org.springframework.jms.support.destination.JndiDestinationResolver" />

    <bean id="applicationSpecificQueueListener" class="com.company.ApplicationSpecificQueueListener" />

    <jms:listener-container container-type="default" destination-type="queue"

        destination-resolver="jndiDestinationResolver" connection-factory="jmsConnectionFactory"

        acknowledge="auto" concurrency="1">

        <jms:listener destination="java:/queue/applicationSpecificQueue" ref="applicationSpecificQueueListener" method="onMessage" />

    </jms:listener-container>

</beans>

 

Please let me know if I can provide additional information, and thanks for your assistance.

 

(I posted this to the JNDI and Naming forum, but it sat with no replies for over three weeks. This is a production application, so we can no longer wait patiently for help that may never occur, I had to take further action to get this issue resolved.)

  • 1. Re: Cannot upgrade JB6.0.0->6.1.0 due to JMS ConnectionFactory not bound
    Russell Lewandowski Newbie

    I went through the changes I made for going from JBoss 6.0.0 to JBoss 6.1.0 and found the following 3 changes:

     

    1) Make sure you picked up the change in the hornetq-configuration.xml file

         

            <name>HornetQ.main.config</name>

     

    2) In JBoss 6.0.0 I had my queues/topics defined in the ear file.  In JBoss 6.1.0 I have to define them in the deploy/hornetq/hornetq-jms.xml file.  I can't remember if I needed the  <durable>false</false> for the queues or I based them on need/performance.  Also, my transactions and databases are all setup to XA=false, So JMS should follow suite for my needs.  Here is my file:

     

    <configuration xmlns="urn:hornetq"

                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">

     

       <connection-factory name="NettyConnectionFactory">

          <xa>false</xa>

          <connectors>

             <connector-ref connector-name="netty"/>

          </connectors>

          <entries>

             <entry name="/ConnectionFactory"/>

             <entry name="/XAConnectionFactory"/>

          </entries>

       </connection-factory>

      

       <connection-factory name="NettyThroughputConnectionFactory">

          <xa>false</xa>

           <connectors>

             <connector-ref connector-name="netty-throughput"/>

           </connectors>

            <entries>

                <entry name="/ThroughputConnectionFactory"/>

                <entry name="/XAThroughputConnectionFactory"/>

            </entries>

        </connection-factory>

      

       <connection-factory name="InVMConnectionFactory">

          <xa>false</xa>

          <connectors>

             <connector-ref connector-name="in-vm"/>

          </connectors>

          <entries>

             <entry name="java:/ConnectionFactory"/>

             <entry name="java:/XAConnectionFactory"/>

          </entries>

       </connection-factory>

      

       <queue name="DLQ">

          <entry name="/queue/DLQ"/>

       </queue>

      

       <queue name="ExpiryQueue">

          <entry name="/queue/ExpiryQueue"/>

       </queue>

      

       <queue name="NotificationQueue">

          <entry name="/queue/Notification"/>

          <durable>false</durable>

       </queue>

       <queue name="LogQueue">

          <entry name="/queue/Log"/>

          <durable>false</durable>

       </queue>

       <queue name="JobLogQueue">

          <entry name="/queue/JobLog"/>

          <durable>false</durable>

       </queue>

       <queue name="AlarmQueue">

          <entry name="/queue/Alarm"/>

          <durable>false</durable>

       </queue>

       <queue name="AlarmConfigQueue">

          <entry name="/queue/AlarmConfig"/>

          <durable>false</durable>

       </queue>

       <queue name="StateDBCleanQueue">

          <entry name="/queue/StateDBClean"/>

          <durable>false</durable>

       </queue>

       <topic name="ConfigUpdateTopic">

               <entry name="/topic/ConfigUpdate"/>

       </topic>

       <topic name="LookupUpdateTopic">

               <entry name="/topic/LookupUpdate"/>

       </topic>

       <queue name="ConfigUpdateQueue">

          <entry name="/queue/ConfigUpdate"/>

          <durable>false</durable>

       </queue>

       <queue name="AlarmCleanQueue">

          <entry name="/queue/AlarmClean"/>

          <durable>false</durable>

       </queue>

       <queue name="LogCleanQueue">

          <entry name="/queue/LogClean"/>

          <durable>false</durable>

       </queue>

    </configuration>

     

    3) Since the startup order has changed, and probably why you and I could not find the ConnectionFactory, I had to make the following changes to my MessageListeners:

     

    package com.buffalo.pcf.alarm.ejb;

     

    import javax.ejb.ActivationConfigProperty;

    import javax.ejb.EJB;

    import javax.ejb.MessageDriven;

    import javax.ejb.TransactionManagement;

    import javax.ejb.TransactionManagementType;

    import javax.jms.MapMessage;

    import javax.jms.Message;

    import javax.jms.MessageListener;

     

    import org.apache.log4j.Logger;

    import org.jboss.ejb3.annotation.Depends;

     

    @MessageDriven(mappedName = "queue/AlarmClean", activationConfig = {

            @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/AlarmClean"),

            @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"),

            @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),

            @ActivationConfigProperty(propertyName = "maxSession", propertyValue="1")})

    @TransactionManagement(TransactionManagementType.CONTAINER)  

    @Depends ({"org.hornetq:module=JMS,name=\"AlarmCleanQueue\",type=Queue"})    <== New line for JBoss 6.1.0, definitely needed

    public class AlarmCleanQueueMessageBean implements MessageListener {

     

        private Logger logger = Logger.getLogger("AlarmCleanQueueMessageBean");

        private static long count = 0;

        @EJB private AlarmSessionLocal alarmSessionLocal;

       

        public void onMessage(Message msg) {

            logger.debug("Processing queue/AlarmClean Message "+(count+1));

            MapMessage mm = (MapMessage)msg;

            try {

                String userID = mm.getString("userid");

                String comment = mm.getString("comment");

                alarmSessionLocal.clean(userID,comment);

                count++;

            } catch(Throwable t) {

                logger.error(t.getMessage(),t);

            } 

        }

     

    }

     

    Sorry, I do not use Spring, so you will probably have to find the equivalent to get the dependancy on the queue/topic of interest.  Good luck.

  • 2. Re: Cannot upgrade JB6.0.0->6.1.0 due to JMS ConnectionFactory not bound
    Tom Harris Newbie

    Thanks for the response.

     

    1. My hornetq-configuration.xml file is the default one for 6.1.0; I did not change it. The name value is set properly to 'HornetQ.main.config' in the default file.

     

    2. We were already using the hornetq-jms.xml file to define our queues and topics, so that was already set up with no changes.

     

    3. Since I tried deploying the war file way after the jboss instance was completely started up, I know the startup order issue isn't involved here.

     

    The Connection Factory object correctly appears in the admin-console as bound to JNDI using the exact name I am using in my spring lookup. It seems that something about JNDI may be busted in the 6.1.0 release, something which doesn't allow the Spring lookup construct to work properly.

  • 3. Re: Cannot upgrade JB6.0.0->6.1.0 due to JMS ConnectionFactory not bound
    jaikiran pai Master

    Can you please post the entire exception stacktrace? Also, please post relevant part from the server console log which shows that the ConnectionFactory is bound before your application is picked for deployment.

     

     

    P.S: Use the "advanced editor" (see top right corner of the reply window) and then wrap your logs/code/xml etc as formatted code. That'll help in better rendering of the post.

  • 4. Re: Cannot upgrade JB6.0.0->6.1.0 due to JMS ConnectionFactory not bound
    Tom Harris Newbie

    Thanks for replying and also for linking my old post to this one.

     

    I don't see anything in the boot.log or server.log that shows the binding of the JMS Connection Factory to JNDI, but I do see it in the admin-console:

     

    General Properties

    Name: InVMConnectionFactory
    Version: a JMS ConnectionFactory
    Description: --

    Traits

    Name: InVMConnectionFactory
    JNDI Bindings: java:/ConnectionFactory,java:/XAConnectionFactory

     

    Here is the full stack trace of the error:

    11:44:12,578 ERROR [STDERR] 828 [Thread-2] ERROR org.springframework.web.context.ContextLoader - Context initialization failed
    11:44:12,578 ERROR [STDERR] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmsConnectionFactory': Invocation of init method failed; nested
    exception is javax.naming.NameNotFoundException: ConnectionFactory not bound
    11:44:12,578 ERROR [STDERR]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
    11:44:12,578 ERROR [STDERR]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    11:44:12,578 ERROR [STDERR]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    11:44:12,578 ERROR [STDERR]     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
    11:44:12,578 ERROR [STDERR]     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    11:44:12,578 ERROR [STDERR]     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
    11:44:12,578 ERROR [STDERR]     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
    11:44:12,578 ERROR [STDERR]     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:567)
    11:44:12,578 ERROR [STDERR]     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
    11:44:12,578 ERROR [STDERR]     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
    11:44:12,578 ERROR [STDERR]     at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)
    11:44:12,578 ERROR [STDERR]     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)
    11:44:12,578 ERROR [STDERR]     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
    11:44:12,578 ERROR [STDERR]     at org.jboss.resteasy.plugins.spring.SpringContextLoaderListener.contextInitialized(SpringContextLoaderListener.java:44)
    11:44:12,578 ERROR [STDERR]     at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3369)
    11:44:12,578 ERROR [STDERR]     at org.apache.catalina.core.StandardContext.start(StandardContext.java:3828)
    11:44:12,578 ERROR [STDERR]     at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:294)
    11:44:12,578 ERROR [STDERR]     at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
    11:44:12,594 ERROR [STDERR]     at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:476)
    11:44:12,594 ERROR [STDERR]     at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
    11:44:12,594 ERROR [STDERR]     at org.jboss.web.deployers.WebModule.start(WebModule.java:95)
    11:44:12,594 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    11:44:12,594 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    11:44:12,594 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    11:44:12,594 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)
    11:44:12,594 ERROR [STDERR]     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
    11:44:12,594 ERROR [STDERR]     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
    11:44:12,594 ERROR [STDERR]     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    11:44:12,594 ERROR [STDERR]     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271)
    11:44:12,594 ERROR [STDERR]     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670)
    11:44:12,594 ERROR [STDERR]     at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
    11:44:12,594 ERROR [STDERR]     at $Proxy41.start(Unknown Source)
    11:44:12,594 ERROR [STDERR]     at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:53)
    11:44:12,594 ERROR [STDERR]     at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:41)
    11:44:12,594 ERROR [STDERR]     at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
    11:44:12,594 ERROR [STDERR]     at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
    11:44:12,594 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
    11:44:12,594 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)
    11:44:12,594 ERROR [STDERR]     at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:301)
    11:44:12,594 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)
    11:44:12,594 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)
    11:44:12,594 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)
    11:44:12,594 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)
    11:44:12,594 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)
    11:44:12,594 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)
    11:44:12,594 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)
    11:44:12,594 ERROR [STDERR]     at org.jboss.system.ServiceController.doChange(ServiceController.java:671)
    11:44:12,594 ERROR [STDERR]     at org.jboss.system.ServiceController.start(ServiceController.java:443)
    11:44:12,594 ERROR [STDERR]     at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:189)
    11:44:12,594 ERROR [STDERR]     at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:102)
    11:44:12,594 ERROR [STDERR]     at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:49)
    11:44:12,594 ERROR [STDERR]     at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:63)
    11:44:12,594 ERROR [STDERR]     at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)
    11:44:12,594 ERROR [STDERR]     at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
    11:44:12,594 ERROR [STDERR]     at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832)
    11:44:12,609 ERROR [STDERR]     at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550)
    11:44:12,609 ERROR [STDERR]     at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1571)
    11:44:12,609 ERROR [STDERR]     at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491)
    11:44:12,609 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)
    11:44:12,609 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)
    11:44:12,609 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)
    11:44:12,609 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)
    11:44:12,609 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)
    11:44:12,609 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)
    11:44:12,609 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)
    11:44:12,609 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)
    11:44:12,609 ERROR [STDERR]     at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983)
    11:44:12,609 ERROR [STDERR]     at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076)
    11:44:12,609 ERROR [STDERR]     at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679)
    11:44:12,609 ERROR [STDERR]     at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106)
    11:44:12,609 ERROR [STDERR]     at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143)
    11:44:12,609 ERROR [STDERR]     at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151)
    11:44:12,609 ERROR [STDERR]     at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94)
    11:44:12,609 ERROR [STDERR]     at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
    11:44:12,609 ERROR [STDERR]     at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
    11:44:12,609 ERROR [STDERR]     at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
    11:44:12,609 ERROR [STDERR]     at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
    11:44:12,609 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
    11:44:12,609 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)
    11:44:12,609 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)
    11:44:12,609 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)
    11:44:12,609 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)
    11:44:12,609 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)
    11:44:12,609 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)
    11:44:12,609 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)
    11:44:12,609 ERROR [STDERR]     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)
    11:44:12,609 ERROR [STDERR]     at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.start(ProfileActivationWrapper.java:190)
    11:44:12,609 ERROR [STDERR]     at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87)
    11:44:12,609 ERROR [STDERR]     at org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215)
    11:44:12,609 ERROR [STDERR]     at org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159)
    11:44:12,609 ERROR [STDERR]     at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:112)
    11:44:12,609 ERROR [STDERR]     at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:87)
    11:44:12,609 ERROR [STDERR]     at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:91)
    11:44:12,609 ERROR [STDERR]     at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:132)
    11:44:12,625 ERROR [STDERR]     at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56)
    11:44:12,625 ERROR [STDERR]     at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827)
    11:44:12,625 ERROR [STDERR]     at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417)
    11:44:12,625 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:619)
    11:44:12,625 ERROR [STDERR] Caused by: javax.naming.NameNotFoundException: ConnectionFactory not bound
    11:44:12,625 ERROR [STDERR]     at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
    11:44:12,625 ERROR [STDERR]     at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
    11:44:12,625 ERROR [STDERR]     at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
    11:44:12,625 ERROR [STDERR]     at org.jnp.server.NamingServer.lookup(NamingServer.java:443)
    11:44:12,625 ERROR [STDERR]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728)
    11:44:12,625 ERROR [STDERR]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688)
    11:44:12,625 ERROR [STDERR]     at javax.naming.InitialContext.lookup(InitialContext.java:392)
    11:44:12,625 ERROR [STDERR]     at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:154)
    11:44:12,625 ERROR [STDERR]     at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:87)
    11:44:12,625 ERROR [STDERR]     at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152)
    11:44:12,625 ERROR [STDERR]     at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178)
    11:44:12,625 ERROR [STDERR]     at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95)
    11:44:12,625 ERROR [STDERR]     at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)
    11:44:12,625 ERROR [STDERR]     at org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:201)
    11:44:12,625 ERROR [STDERR]     at org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:187)
    11:44:12,625 ERROR [STDERR]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)
    11:44:12,625 ERROR [STDERR]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
    11:44:12,625 ERROR [STDERR]     ... 97 more
    
  • 5. Re: Cannot upgrade JB6.0.0->6.1.0 due to JMS ConnectionFactory not bound
    Tom Harris Newbie

    It's been 26 days since I posted my response, but nothing's happened since then... Any chance we could continue debugging this issue?

  • 6. Re: Cannot upgrade JB6.0.0->6.1.0 due to JMS ConnectionFactory not bound
    jaikiran pai Master

    Sorry, haven't had a chance to look more into this.

     

    Can you try changing this:

    <jee:jndi-lookup id="jmsConnectionFactory" jndi-name="java:/ConnectionFactory"

            expected-type="javax.jms.ConnectionFactory" lookup-on-startup="true" />

     

    to

     

    <jee:jndi-lookup id="jmsConnectionFactory" jndi-name="java:/ConnectionFactory"
            expected-type="javax.jms.ConnectionFactory" lookup-on-startup="false" />
    

     

    Note the lookup-on-startup value change. If that doesn't work, then we can try debugging this in some other way.

  • 7. Re: Cannot upgrade JB6.0.0->6.1.0 due to JMS ConnectionFactory not bound
    dmitrijzz Newbie

    Had the same problem.

    Spring context is loaded in WAR file and debugging leads me to InVMRegistry class.

    Different instance is loaded in WAR file.

     

    Added classloding instructions to WAR with Spring and it worked.

     

    <classloading

      xmlns="urn:jboss:classloading:1.0"

      name="[name].war"

      domain="[name]">

      parent-domain="Ignored"

      export-all="NON_EMPTY"

      import-all="true">

    </classloading> 

  • 8. Re: Cannot upgrade JB6.0.0->6.1.0 due to JMS ConnectionFactory not bound
    Tom Harris Newbie

    Sorry, we've switched to Tomcat with ActiveMQ, so we've stopped working on this issue. Our decision was not based on this error, but on the upgrade path to JBoss 7; we just don't have the resources to change our whole application to work with a container upgrade.

     

    Good luck everyone!

     

    Tom