NameNotFoundException during deployment
ale2011 Dec 21, 2011 3:04 PMHello all,
I'm trying to deploy a SOAP over JMS service.
I had integrated ActiveMQ to JBoss >>>>> LINK
Below are the contents of my war file
SoapOverJms_JmsOnly.war
+--WEB-INF
+--classes
| +---gov
| +---faa
| +---swim
| +---nsrr
| +---soapoverjms
| +---ISoapJmsWeather.class
| +---SoapJmsWeatherImpl.class
| +---jaxws
| +---GetForecast.class
| +---GetForecastResponse.class
+--wsdl
+--soapjmsweatherimpl.wsdl
+--cxf.xml
+--cxf-servlet.xml
+--web.xml
cxf. xml
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cxf="http://cxf.apache.org/core" xmlns:soap="http://cxf.apache.org/bindings/soap" xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:jms="http://cxf.apache.org/transports/jms" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd http://cxf.apache.org/bindings/soap http://cxf.apache.org/schema/bindings/soap.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd http://cxf.apache.org/transports/jms http://cxf.apache.org/schemas/configuration/jms.xsd"> <import resource="classpath:META-INF/cxf/cxf.xml" /> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /> <import resource="classpath:META-INF/cxf/cxf-extension-local.xml" /> <import resource="classpath:META-INF/cxf/cxf-extension-http.xml" /> <import resource="classpath:META-INF/cxf/cxf-servlet.xml" /> <import resource="classpath:META-INF/cxf/cxf-extension-jms.xml" /> <cxf:bus> <cxf:features> <cxf:logging/> </cxf:features> </cxf:bus> <jms:conduit name="{http://soapoverjms.nsrr.swim.faa.gov/}SoapJmsWeatherImplPort.jms-conduit"> <jms:address destinationStyle="queue" jndiConnectionFactoryName="java:activemq/QueueConnectionFactory" jndiDestinationName="activemq/queue/GetForecastRequestQueue" jndiReplyDestinationName="activemq/queue/GetForecastReqsponseQueue"> <jms:JMSNamingProperty name="java.naming.factory.initial" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory" /> <jms:JMSNamingProperty name="java.naming.provider.url" value="tcp://172.26.147.156:61616" /> </jms:address> </jms:conduit> <jms:destination name="{http://soapoverjms.nsrr.swim.faa.gov/}SoapJmsWeatherImplPort.jms-destination"> <jms:address destinationStyle="queue" jndiConnectionFactoryName="java:activemq/QueueConnectionFactory" jndiDestinationName="activemq/queue/GetForecastRequestQueue" jndiReplyDestinationName="activemq/queue/GetForecastReqsponseQueue"> <jms:JMSNamingProperty name="java.naming.factory.initial" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory" /> <jms:JMSNamingProperty name="java.naming.provider.url" value="tcp://172.26.147.156:61616" /> </jms:address> </jms:destination> </beans>
cxf-servlet.xml
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:soap="http://cxf.apache.org/bindings/soap" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://cxf.apache.org/bindings/soap http://cxf.apache.org/schemas/configuration/soap.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"> <jaxws:endpoint xmlns:tns="http://soapoverjms.nsrr.swim.faa.gov/" id="soapjmsweather" implementor="gov.faa.swim.nsrr.soapoverjms.SoapJmsWeatherImpl" wsdlLocation="wsdl/soapjmsweatherimpl.wsdl" endpointName="tns:SoapJmsWeatherImplPort" serviceName="tns:SoapJmsWeather" address="/soapjms"> <jaxws:features> <bean class="org.apache.cxf.feature.LoggingFeature" /> </jaxws:features> </jaxws:endpoint> </beans>
soapjmsweatherimpl.wsdl
<?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions name="SoapJmsWeatherImpl" targetNamespace="http://soapoverjms.nsrr.swim.faa.gov/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://soapoverjms.nsrr.swim.faa.gov/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:x1="http://soapoverjms.nsrr.swim.faa.gov/types" xmlns:soapjms="http://www.w3.org/2010/soapjms/"> <wsdl:types> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://soapoverjms.nsrr.swim.faa.gov/" attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://soapoverjms.nsrr.swim.faa.gov/"> <xsd:element name="GetForecast" type="tns:GetForecast"/> <xsd:complexType name="GetForecast"> <xsd:sequence> <xsd:element minOccurs="0" name="locationCityName" type="xsd:string"/> </xsd:sequence> </xsd:complexType> <xsd:element name="GetForecastResponse" type="tns:GetForecastResponse"/> <xsd:complexType name="GetForecastResponse"> <xsd:sequence> <xsd:element minOccurs="0" name="return" type="xsd:string"/> </xsd:sequence> </xsd:complexType> </xsd:schema> </wsdl:types> <wsdl:message name="GetForecast"> <wsdl:part name="parameters" element="tns:GetForecast"> </wsdl:part> </wsdl:message> <wsdl:message name="GetForecastResponse"> <wsdl:part name="parameters" element="tns:GetForecastResponse"> </wsdl:part> </wsdl:message> <wsdl:portType name="ISoapJmsWeather"> <wsdl:operation name="GetForecast"> <wsdl:input name="GetForecast" message="tns:GetForecast"> </wsdl:input> <wsdl:output name="GetForecastResponse" message="tns:GetForecastResponse"> </wsdl:output> </wsdl:operation> </wsdl:portType> <wsdl:binding name="SoapJmsWeatherImplSoapBinding" type="tns:ISoapJmsWeather"> <!-- Fix the TRANSPORT value --> <soap:binding style="document" transport="http://www.w3.org/2010/soapjms/" /> <wsdl:operation name="GetForecast"> <soap:operation soapAction="" style="document"/> <wsdl:input name="GetForecast"> <soap:body use="literal"/> </wsdl:input> <wsdl:output name="GetForecastResponse"> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="SoapJmsWeather"> <soapjms:jndiURL> tcp://172.26.147.156:61616 </soapjms:jndiURL> <soapjms:jndiConnectionFactoryName>java:activemq/QueueConnectionFactory</soapjms:jndiConnectionFactoryName> <soapjms:jndiInitialContextFactory> org.apache.activemq.jndi.ActiveMQInitialContextFactory </soapjms:jndiInitialContextFactory> <soapjms:deliveryMode> PERSISTENT </soapjms:deliveryMode> <soapjms:priority> 5 </soapjms:priority> <soapjms:timeToLive> 1000 </soapjms:timeToLive> <wsdl:port name="SoapJmsWeatherImplPort" binding="tns:SoapJmsWeatherImplSoapBinding"> <soap:address location="jms:queue:GetForecastRequestQueue?replyToName=GetForecastResponseQueue"/> </wsdl:port> </wsdl:service> </wsdl:definitions>
Here is my activemq-jms-ds.xml (located in $JBOSS_HOME$/server/default/deploy)
I wanted to create 2 queues (1 for request, and 1 for response). So I added the 2 queues in here
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE connection-factories PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN" "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd"> <connection-factories> <tx-connection-factory> <jndi-name>activemq/QueueConnectionFactory</jndi-name> <xa-transaction/> <track-connection-by-tx/> <rar-name>activemq-ra.rar</rar-name> <connection-definition>javax.jms.QueueConnectionFactory</connection-definition> <ServerUrl>vm://localhost</ServerUrl> <min-pool-size>1</min-pool-size> <max-pool-size>200</max-pool-size> <blocking-timeout-millis>30000</blocking-timeout-millis> <idle-timeout-minutes>3</idle-timeout-minutes> </tx-connection-factory> <mbean code="org.jboss.resource.deployment.AdminObject" name="activemq.queue:name=GetForecastRequestQueue"> <attribute name="JNDIName">activemq/queue/GetForecastRequestQueue</attribute> <depends optional-attribute-name="RARName">jboss.jca:service=RARDeployment,name='activemq-ra.rar'</depends> <attribute name="Type">javax.jms.Queue</attribute> <attribute name="Properties">PhysicalName=activemq/queue/GetForecastRequestQueue</attribute> </mbean> <mbean code="org.jboss.resource.deployment.AdminObject" name="activemq.queue:name=GetForecastResponseQueue"> <attribute name="JNDIName">activemq/queue/GetForecastResponseQueue</attribute> <depends optional-attribute-name="RARName">jboss.jca:service=RARDeployment,name='activemq-ra.rar'</depends> <attribute name="Type">javax.jms.Queue</attribute> <attribute name="Properties">PhysicalName=activemq/queue/GetForecastRequestQueue</attribute> </mbean> </connection-factories>
Without my SoapOverJms_JmsOnly.war, Jboss could start up without any error. But when I hot deploy my war file, I get the following error:
2011-12-21 10:28:24,648 INFO [org.jboss.wsf.stack.cxf.metadata.MetadataBuilder] (HDScanner) Add Service id=NSRRSoapJmsWeather address=http://172.26.147.156:8080/SoapOverJms_JmsOnly/soapjms implementor=gov.faa.swim.nsrr.soapoverjms.SoapJmsWeatherImpl invoker=org.jboss.wsf.stack.cxf.InvokerJSE serviceName={http://soapoverjms.nsrr.swim.faa.gov/}SoapJmsWeather portName={http://soapoverjms.nsrr.swim.faa.gov/}SoapJmsWeatherImplPort wsdlLocation=null mtomEnabled=false 2011-12-21 10:28:24,695 INFO [org.jboss.wsf.stack.cxf.deployment.aspect.DescriptorDeploymentAspect] (HDScanner) JBossWS-CXF configuration generated: file:/C:/jboss/jboss.6.0.0.Final/server/default/tmp/jbossws/jbossws-cxf8924232581974327254.xml 2011-12-21 10:28:24,695 INFO [org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusApplicationContext] (HDScanner) Refreshing org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusApplicationContext@ec0246: startup date [Wed Dec 21 10:28:24 EST 2011]; root of context hierarchy 2011-12-21 10:28:24,758 INFO [org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusApplicationContext] (HDScanner) Refreshing org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusApplicationContext@ec0246: startup date [Wed Dec 21 10:28:24 EST 2011]; root of context hierarchy 2011-12-21 10:28:24,867 INFO [org.apache.cxf.bus.spring.BusApplicationContext] (HDScanner) Loaded configuration file cxf.xml. 2011-12-21 10:28:24,883 INFO [org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader] (HDScanner) Loading XML bean definitions from class path resource [META-INF/cxf/jbossws-cxf.xml] 2011-12-21 10:28:24,945 INFO [org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader] (HDScanner) Loading XML bean definitions from URL [vfs:/C:/jboss/jboss.6.0.0.Final/server/default/deployers/jbossws.deployer/jbossws-cxf-client.jar/META-INF/cxf/cxf-extension-jbossws.xml] 2011-12-21 10:28:27,289 INFO [org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader] (HDScanner) Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-httpserver.xml] 2011-12-21 10:28:27,289 INFO [org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader] (HDScanner) Loading XML bean definitions from class path resource [cxf.xml] 2011-12-21 10:28:29,883 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (HDScanner) Creating Service {http://soapoverjms.nsrr.swim.faa.gov/}SoapJmsWeather from WSDL: wsdl/soapjmsweatherimpl.wsdl 2011-12-21 10:28:32,648 INFO [org.apache.cxf.endpoint.ServerImpl] (HDScanner) Setting the server's publish address to be /soapjms 2011-12-21 10:28:33,055 WARN [org.apache.activemq.broker.BrokerRegistry] (HDScanner) Broker localhost not started so using activemq.broker1 instead 2011-12-21 10:29:01,305 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (HDScanner) Error installing to Real: name=vfs:///C:/jboss/jboss.6.0.0.Final/server/default/deploy/SoapOverJms_JmsOnly.war state=PreReal mode=Manual requiredState=Real: org.jboss.deployers.spi.DeploymentException: Error during deploy: vfs:///C:/jboss/jboss.6.0.0.Final/server/default/deploy/SoapOverJms_JmsOnly.war at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) [:2.2.0.GA] at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:185) [:2.2.0.GA] at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA] at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA] at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.GA] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA] at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA] at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA] at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA] at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final] at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2] at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:240) [:0.2.2] at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192) [:0.2.2] at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:57) [:0.2.2] at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2] at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2] at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.2.2] at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.2.2] at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.2.2] at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.2.2] at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135) [:0.2.2] at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146) [:0.2.2] at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90) [:0.2.2] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [:1.6.0_25] at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [:1.6.0_25] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [:1.6.0_25] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [:1.6.0_25] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) [:1.6.0_25] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) [:1.6.0_25] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_25] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_25] at java.lang.Thread.run(Thread.java:662) [:1.6.0_25] 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 [activemq/queue/GetForecastRequestQueue] not found in JNDI; nested exception is javax.naming.NameNotFoundException: activemq/queue/GetForecastRequestQueue 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] ... 37 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 [activemq/queue/GetForecastRequestQueue] not found in JNDI; nested exception is javax.naming.NameNotFoundException: activemq/queue/GetForecastRequestQueue 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] ... 40 more Caused by: javax.xml.ws.WebServiceException: org.springframework.jms.support.destination.DestinationResolutionException: Destination [activemq/queue/GetForecastRequestQueue] not found in JNDI; nested exception is javax.naming.NameNotFoundException: activemq/queue/GetForecastRequestQueue 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_25] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_25] at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_25] 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] ... 53 more Caused by: org.springframework.jms.support.destination.DestinationResolutionException: Destination [activemq/queue/GetForecastRequestQueue] not found in JNDI; nested exception is javax.naming.NameNotFoundException: activemq/queue/GetForecastRequestQueue 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] ... 63 more Caused by: javax.naming.NameNotFoundException: activemq/queue/GetForecastRequestQueue at org.apache.activemq.jndi.ReadOnlyContext.lookup(ReadOnlyContext.java:235) [:5.4.2-fuse-03-22] at javax.naming.InitialContext.lookup(InitialContext.java:392) [:1.6.0_25] 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] ... 75 more 2011-12-21 10:29:01,383 WARN [org.jboss.profileservice.deployment.hotdeploy.HDScanner] (HDScanner) Scan failed: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS): *** DEPLOYMENTS IN ERROR: Name -> Error vfs:///C:/jboss/jboss.6.0.0.Final/server/default/deploy/SoapOverJms_JmsOnly.war -> org.jboss.deployers.spi.DeploymentException: Error during deploy: vfs:///C:/jboss/jboss.6.0.0.Final/server/default/deploy/SoapOverJms_JmsOnly.war DEPLOYMENTS IN ERROR: Deployment "vfs:///C:/jboss/jboss.6.0.0.Final/server/default/deploy/SoapOverJms_JmsOnly.war" is in error due to the following reason(s): javax.naming.NameNotFoundException: activemq/queue/GetForecastRequestQueue at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1370) [:2.2.0.GA] at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1316) [:2.2.0.GA] at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:968) [:2.2.0.GA] at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:82) [:6.0.0.Final] at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.checkComplete(ProfileControllerContext.java:138) [:0.2.2] at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:246) [:0.2.2] at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192) [:0.2.2] at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:57) [:0.2.2] at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2] at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2] at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.2.2] at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.2.2] at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.2.2] at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.2.2] at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135) [:0.2.2] at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146) [:0.2.2] at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90) [:0.2.2] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [:1.6.0_25] at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [:1.6.0_25] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [:1.6.0_25] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [:1.6.0_25] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) [:1.6.0_25] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) [:1.6.0_25] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_25] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_25] at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]
I think my error came from the jndiDestinationName and jndiReplyDestinationName in cxf.xml file. I had been playing around with it but I had no luck. Could anyone explain me how I got this error? and what I could do to resolve this? Thank you