SOAP gateway deployment error during startup on AS7
---------------------------------------------------
Key: SWITCHYARD-436
URL:
https://issues.jboss.org/browse/SWITCHYARD-436
Project: SwitchYard
Issue Type: Bug
Components: component-soap
Affects Versions: 0.2
Environment: AS7
Reporter: Magesh Bojan
Assignee: Magesh Bojan
Fix For: 0.3
When multiple deployments are present using the same port, say 18001, but different
context paths the following error is thrown and all deployment fails:
(MSC service thread 1-4) MSC00001: Failed to start service
jboss.deployment.unit."switchyard-quickstart-demo-orders-0.2.0-SNAPSHOT.jar".SwitchYardService:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."switchyard-quickstart-demo-orders-0.2.0-SNAPSHOT.jar".SwitchYardService:
javax.xml.ws.WebServiceException: java.lang.RuntimeException: java.net.BindException:
Address already in use: bind
at
org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:90)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
at
org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
[:1.6.0_26]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.6.0_26]
at java.lang.Thread.run(Unknown Source) [:1.6.0_26]
Caused by: javax.xml.ws.WebServiceException: java.lang.RuntimeException:
java.net.BindException: Address already in use: bind
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:158)
at
org.switchyard.component.soap.deploy.SOAPActivator.start(SOAPActivator.java:92)
at org.switchyard.deploy.internal.Activation.start(Deployment.java:481)
at
org.switchyard.deploy.internal.Deployment.deployServiceBindings(Deployment.java:380)
at org.switchyard.deploy.internal.Deployment.doStart(Deployment.java:122)
at
org.switchyard.deploy.internal.AbstractDeployment.start(AbstractDeployment.java:168)
at
org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:99)
at
org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:83)
... 5 more
Caused by: java.lang.RuntimeException: java.net.BindException: Address already in use:
bind
at
org.jboss.wsf.stack.cxf.addons.transports.httpserver.HttpServerEngine.addHandler(HttpServerEngine.java:103)
at
org.jboss.wsf.stack.cxf.addons.transports.httpserver.HttpServerDestination.activate(HttpServerDestination.java:128)
at
org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:48)
at
org.apache.cxf.binding.AbstractBaseBindingFactory.addListener(AbstractBaseBindingFactory.java:97)
at
org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:836)
at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:127)
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:341)
... 15 more
Caused by: java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind(Native Method) [:1.6.0_26]
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) [:1.6.0_26]
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) [:1.6.0_26]
at org.jboss.sun.net.httpserver.ServerImpl.<init>(ServerImpl.java:112)
at
org.jboss.sun.net.httpserver.HttpServerImpl.<init>(HttpServerImpl.java:47)
at
org.jboss.sun.net.httpserver.DefaultHttpServerProvider.createHttpServer(DefaultHttpServerProvider.java:37)
at org.jboss.com.sun.net.httpserver.HttpServer.create(HttpServer.java:126)
at
org.jboss.wsf.stack.cxf.addons.transports.httpserver.HttpServerEngine.addHandler(HttpServerEngine.java:94)
... 21 more
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira