javax.naming.NameNotFoundException: queue/testQueue -- service jboss.naming.context.java.queue.testQueue

Solution Verified - Updated -

Issue

  • I am try to deploy an ear file in my standalone application server . Getting below error :
15:17:50,477 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/testApp]] (ServerService Thread Pool -- 61) JBWEB000287: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener: org.springframework.beans.factory.access.BootstrapException: Unable to initialize group definition. Group resource name [classpath:applicationContext-test.xml], factory key [test.context]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'test.context' defined in class path resource [applicationContext-test.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'testDestination': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: queue/testQueue -- service jboss.naming.context.java.queue.testQueue
    at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:387) [spring-beans-4.0.3.RELEASE.jar:4.0.3.RELEASE]
        -----------
        -----------
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'testDestination': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: queue/testQueue -- service jboss.naming.context.java.queue.testQueue
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1553) [spring-beans-4.0.3.RELEASE.jar:4.0.3.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) [spring-beans-4.0.3.RELEASE.jar:4.0.3.RELEASE]
        -----------
        -----------
Caused by: javax.naming.NameNotFoundException: queue/testQueue -- service jboss.naming.context.java.queue.testQueue
    at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:103)
    at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:197)
        -----------
        -----------
15:17:50,495 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 61) MSC000001: Failed to start service jboss.web.deployment.default-host./testApp: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./testApp: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context
    at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_71]
        ----
        ----
Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context
    at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:161)
    at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60)
    at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93)
    ... 6 more
  • We had problems bringing up our application due to it not being able to find one of the JMS queues. We compared the queue list on both servers and they both were the same. Our application was not able to find the queue name jms.queue.xyz_QUEUE even though it was a valid queue.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.