1 Reply Latest reply on Feb 7, 2012 1:27 AM by jim.ma

    WAR file will not deploy

    mtarullo463

      I am trying to deploy a SOAP\JMS service and I am getting errors indicating that my JNDI registered queues can not be found.  The queues are registered as can be seen from the following, taken from the JBoss JMX Console:

       

      JNDI java: namespace
      +- activemq (class: org.jnp.interfaces.NamingContext)
        |   +- QueueConnectionFactory (class: org.apache.activemq.ra.ActiveMQConnectionFactory)

      JNDI Global namespace
        +- activemq (class: org.jnp.interfaces.NamingContext)
        |   +- queue (class: org.jnp.interfaces.NamingContext)
        |   |   +- GetForecastRequestQueue (class: org.apache.activemq.command.ActiveMQQueue)
        |   |   +- GetForecastResponseQueue (class: org.apache.activemq.command.ActiveMQQueue)

       

      The following are the stack traces I am getting when I try to deploy.

       

      Can someone please help or advise?

       

      Thank you.

       

      DEPLOYMENTS IN ERROR:

        Deployment "vfs:///C:/Programs/jboss-6.0.0.Final/server/default/deploy/SoapJmsWeatherForecast.war" is in error due to the following reason(s): javax.naming.NameNotFoundException: GetForecastResponseQueue

              at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228) [:2.2.0.GA]

              at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905) [:2.2.0.GA]

              at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87) [:6.0.0.Final]

              at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:107) [:0.2.2]

              at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:135) [:6.0.0.Final]

              at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]

              at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

              at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

              at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]

       

      Caused by: java.lang.RuntimeException:

      org.springframework.beans.factory.BeanCreationException:

      Error creating bean with name 'soapjmsweather':

      Invocation of init method failed; nested exception is javax.xml.ws.WebServiceException:

      org.springframework.jms.support.destination.DestinationResolutionException:

      Destination[GetForecastResponseQueue] not found in JNDI; nested exception is javax.naming.NameNotFoundException: GetForecastResponseQueue

              at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:100) [:3.4.1.GA]

              at org.jboss.webservices.integration.deployers.WSDeploymentAspectDeployer.internalDeploy(WSDeploymentAspectDeployer.java:123) [:6.0.0.Final]

              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.GA]

              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.GA]

              ... 43 more

      Caused by: org.springframework.beans.factory.BeanCreationException:

      Error creating bean with name 'soapjmsweather':

      Invocation of init method failed; nested exception is javax.xml.ws.WebServiceException:

      org.springframework.jms.support.destination.DestinationResolutionException:

      Destination [GetForecastResponseQueue] not found in JNDI; nested exception is javax.naming.NameNotFoundException: GetForecastResponseQueue

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420) [:3.0.5.RELEASE]

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) [:3.0.5.RELEASE]

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) [:3.0.5.RELEASE]

              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) [:3.0.5.RELEASE]

              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [:3.0.5.RELEASE]

              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) [:3.0.5.RELEASE]

              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) [:3.0.5.RELEASE]

              at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580) [:3.0.5.RELEASE]

              at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) [:3.0.5.RELEASE]

              at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) [:3.0.5.RELEASE]

              at org.jboss.wsf.stack.cxf.configuration.SpringBusHolder.loadAdditionalConfig(SpringBusHolder.java:164) [:3.4.1.GA]

              at org.jboss.wsf.stack.cxf.configuration.SpringBusHolder.createBus(SpringBusHolder.java:90) [:3.4.1.GA]

              at org.jboss.wsf.stack.cxf.configuration.SpringBusHolder.<init>(SpringBusHolder.java:71) [:3.4.1.GA]

              at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:93) [:3.4.1.GA]

              ... 46 more

      Caused by: javax.xml.ws.WebServiceException:

      org.springframework.jms.support.destination.DestinationResolutionException:

      Destination [GetForecastResponseQueue]not found in JNDI; nested exception is javax.naming.NameNotFoundException: GetForecastResponseQueue

              at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:335) [:2.3.1]

              at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:62) [:3.4.1.GA]

              at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:238) [:2.3.1]

              at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:481) [:2.3.1]

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_24]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_24]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_24]

              at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_24]

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544) [:3.0.5.RELEASE]

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485) [:3.0.5.RELEASE]

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417) [:3.0.5.RELEASE]

              ... 59 more

      Caused by: org.springframework.jms.support.destination.DestinationResolutionException:

      Destination [GetForecastResponseQueue] not found in JNDI; nested exception is javax.naming.NameNotFoundException: GetForecastResponseQueue

              at org.springframework.jms.support.destination.JndiDestinationResolver.resolveDestinationName(JndiDestinationResolver.java:122) [:3.0.5.RELEASE]

              at org.apache.cxf.transport.jms.JMSFactory$1.doInJms(JMSFactory.java:349) [:2.3.1]

              at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:466) [:3.0.5.RELEASE]

              at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:431) [:3.0.5.RELEASE]

              at org.apache.cxf.transport.jms.JMSFactory.resolveOrCreateDestination(JMSFactory.java:337) [:2.3.1]

              at org.apache.cxf.transport.jms.JMSFactory.createJmsListener(JMSFactory.java:290) [:2.3.1]

              at org.apache.cxf.transport.jms.JMSFactory.createJmsListener(JMSFactory.java:175) [:2.3.1]

              at org.apache.cxf.transport.jms.JMSDestination.activate(JMSDestination.java:111) [:2.3.1]

              at org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:48) [:2.3.1]

              at org.apache.cxf.binding.AbstractBindingFactory.addListener(AbstractBindingFactory.java:181) [:2.3.1]

              at org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:836) [:2.3.1]

              at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:127) [:2.3.1]

              at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:326) [:2.3.1]

              ... 69 more

      Caused by: javax.naming.NameNotFoundException:

      GetForecastResponseQueue

              at org.apache.activemq.jndi.ReadOnlyContext.lookup(ReadOnlyContext.java:235) [:5.4.2-fuse-02-00]

              at javax.naming.InitialContext.lookup(InitialContext.java:392) [:1.6.0_24]

              at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:154) [:3.0.5.RELEASE]

              at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:87) [:3.0.5.RELEASE]

              at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152) [:3.0.5.RELEASE]

              at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178) [:3.0.5.RELEASE]

              at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95) [:3.0.5.RELEASE]

              at org.springframework.jms.support.destination.JndiDestinationResolver.resolveDestinationName(JndiDestinationResolver.java:111) [:3.0.5.RELEASE]

              ... 81 more