Deployment errors when deploying multiple applications
------------------------------------------------------
Key: SWITCHYARD-530
URL:
https://issues.jboss.org/browse/SWITCHYARD-530
Project: SwitchYard
Issue Type: Bug
Components: deployment
Reporter: Rob Cernich
Assignee: Rob Cernich
Fix For: 0.3
Exceptions are thrown when deploying multiple applications.
There are two basic exceptions:
14:26:59,580 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed
to start service
jboss.deployment.unit."switchyard-quickstart-demo-orders-0.3.0-SNAPSHOT.war".SwitchYardService:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."switchyard-quickstart-demo-orders-0.3.0-SNAPSHOT.war".SwitchYardService:
javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException: Could not find definition for
service {urn:switchyard-quickstart-demo:orders:1.0}OrderService.
at
org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:93)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
[jboss-msc-1.0.1.GA.jar:1.0.1.GA]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
[jboss-msc-1.0.1.GA.jar:1.0.1.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[:1.6.0_27]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[:1.6.0_27]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_27]
Caused by: javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException: Could not find definition for
service {urn:switchyard-quickstart-demo:orders:1.0}OrderService.
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:350)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:239)
at
org.jboss.wsf.stack.cxf.client.ProviderImpl$DelegateEndpointImpl.publish(ProviderImpl.java:300)
at org.switchyard.component.soap.InboundHandler.start(InboundHandler.java:131)
at org.switchyard.component.soap.deploy.SOAPActivator.start(SOAPActivator.java:98)
at org.switchyard.deploy.internal.Activation.start(Deployment.java:488)
at org.switchyard.deploy.internal.Deployment.deployServiceBindings(Deployment.java:390)
at org.switchyard.deploy.internal.Deployment.doStart(Deployment.java:132)
at org.switchyard.deploy.internal.AbstractDeployment.start(AbstractDeployment.java:191)
at
org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:105)
at
org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:86)
... 5 more
Caused by: org.apache.cxf.service.factory.ServiceConstructionException: Could not find
definition for service {urn:switchyard-quickstart-demo:orders:1.0}OrderService.
at org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:139)
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:382)
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:499)
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:241)
at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:202)
at
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101)
at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:157)
at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:202)
at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:433)
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:322)
... 15 more
And:
15:33:03,939 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed
to start service
jboss.deployment.unit."switchyard-quickstarts-camel-jms-binding-0.3.0-SNAPSHOT.jar".SwitchYardService:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."switchyard-quickstarts-camel-jms-binding-0.3.0-SNAPSHOT.jar".SwitchYardService:
java.lang.IllegalStateException
at
org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:93)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[:1.6.0_27]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[:1.6.0_27]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_27]
Caused by: java.lang.IllegalStateException
at org.jboss.msc.value.InjectedValue.getValue(InjectedValue.java:47)
at org.jboss.as.naming.service.BinderService.getValue(BinderService.java:116)
at org.jboss.as.naming.service.BinderService.getValue(BinderService.java:43)
at org.jboss.msc.service.ServiceControllerImpl.getValue(ServiceControllerImpl.java:1216)
at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:111)
at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:73)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:173)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:209)
at
org.switchyard.component.bean.deploy.BeanDeploymentMetaData.getCDIBeanManager(BeanDeploymentMetaData.java:188)
at
org.switchyard.component.bean.deploy.BeanDeploymentMetaData.getCDIBeanManager(BeanDeploymentMetaData.java:171)
at
org.switchyard.component.bean.deploy.BeanDeploymentMetaData.lookupBeanDeploymentMetaData(BeanDeploymentMetaData.java:147)
at
org.switchyard.component.bean.deploy.BeanComponentActivator.lookupBeanMetaData(BeanComponentActivator.java:83)
at
org.switchyard.component.bean.deploy.BeanComponentActivator.init(BeanComponentActivator.java:61)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira