Dear all,

I have a setup where I have to deploy multiple (in the beginning: 2)
servicemix-http service units packaged in different SAs.

One is a SU publishing the wsn-NotificationBroker as an external
endpoint. Its xbean.xml file is copied from the examples*).

The second SU is publishing an HTTP consumer endpoint which is supposed
to forward its input to a servicemix.xml-hard coded publisher. Its
xbean.xml is custom.**)

I tried to deploy the SAs with both hot-deployment and mvn
jbi:projectDeploy deployment. In both cases, I get a
java.net.BindException***).

Now I did some research in the forum****), and it seems that jetty is
starting up different instances attempting to connect to the same port. 

One recommendation was to make sure to deploy all SAs to the same
component. I used Maven tooling, supplying the same component dependency
and specifying the property "componentName". Nevertheless, it didn't
work.

Also, as there will be more HTTP SUs in the future, giving a different
port to each of them can't be the solution, either.

QUESTION: Is there another way to make sure that they end up in the same
component?

About my environment: it is pretty standard*****).

Any help on the issue (related to the other one just posted, as well)
would be highly appreciated.

Thanks in advance,
Ciao,
Philipp

*)
wsn-http-binding
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:http="http://servicemix.apache.org/http/1.0";
        xmlns:mag="http://mag.icing.eu/notification/1.0";
        
xmlns:csapi="http://www.csapi.org/wsdl/parlayx/multimedia_messaging/noti
fication/v2_0/service"
        xmlns:pub="http://iisys.icing.eu/publisher/1.0";
        
xmlns:impl="http://www.csapi.org/wsdl/parlayx/multimedia_messaging/notif
ication/v2_0/service">
        <classpath>
                <location>.</location>
        </classpath>

        <http:endpoint service="impl:IMMessageNotificationService"
                endpoint="IMMessageNotification" role="consumer"
        
locationURI="http://0.0.0.0:8192/IMMessageNotificationService/";
                soap="true"
wsdlResource="classpath:IMMessageNotification.wsdl"
                targetService="pub:IMMessagePublisher"
targetEndpoint="ep" />
</beans>

**)
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:http="http://servicemix.apache.org/http/1.0";
        xmlns:mag="http://mag.icing.eu/notification/1.0";
        
xmlns:csapi="http://www.csapi.org/wsdl/parlayx/multimedia_messaging/noti
fication/v2_0/service"
        xmlns:pub="http://iisys.icing.eu/publisher/1.0";
        
xmlns:impl="http://www.csapi.org/wsdl/parlayx/multimedia_messaging/notif
ication/v2_0/service">
        <classpath>
                <location>.</location>
        </classpath>

        <http:endpoint service="impl:IMMessageNotificationService"
                endpoint="IMMessageNotification" role="consumer"
        
locationURI="http://0.0.0.0:8192/IMMessageNotificationService/";
                soap="true"
wsdlResource="classpath:IMMessageNotification.wsdl"
                targetService="pub:IMMessagePublisher"
targetEndpoint="ep" />
</beans>

***)
</task-status-msg>
                        <exception-info>
                                <nesting-level>1</nesting-level>
                                <msg-loc-info>
                                        <loc-token/>
                                        <loc-message>Address already in
use: bind</loc-message>
 
<stack-trace><![CDATA[java.net.BindException: Address already in use:
bind
        at sun.nio.ch.Net.bind(Native Method)
        at
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119
)
        at
sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
        at
org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector
.java:152)
        at
org.mortbay.jetty.AbstractConnector.doStart(AbstractConnector.java:313)
        at
org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnec
tor.java:124)
        at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
        at org.mortbay.jetty.Server.doStart(Server.java:217)
        at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
        at
org.apache.servicemix.http.jetty.JettyContextManager.createServer(JettyC
ontextManager.java:342)
        at
org.apache.servicemix.http.jetty.JettyContextManager.createContext(Jetty
ContextManager.java:143)
        at
org.apache.servicemix.http.processors.ConsumerProcessor.start(ConsumerPr
ocessor.java:111)
        at
org.apache.servicemix.soap.SoapEndpoint.activate(SoapEndpoint.java:348)
        at
org.apache.servicemix.common.ServiceUnit.start(ServiceUnit.java:55)
        at
org.apache.servicemix.common.BaseServiceUnitManager.start(BaseServiceUni
tManager.java:151)
        at
org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle.start(ServiceUn
itLifeCycle.java:103)
        at
org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(Servi
ceAssemblyLifeCycle.java:130)
        at
org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentSe
rvice.java:374)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(
AutoDeploymentService.java:337)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirecto
ry(AutoDeploymentService.java:646)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$200(Aut
oDeploymentService.java:62)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDepl
oymentService.java:609)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
]]></stack-trace>
                                </msg-loc-info>
                        </exception-info>
                </task-result-details>
        </component-task-result-details>
</component-task-result>
</jbi-task-result>
</jbi-task>

****)
http://www.nabble.com/multiple-HTTP-SA-tf3964627s12049.html#a11252096
http://www.nabble.com/Running-multiple-jsr181-webservices-on-the-same-po
rt-tf2064026s12049.html#a5686205 

*****)
SM 3.1.1, standard configuration with servicemix.xml-configured
servicemix-wsn2005 as well as several servicemix.xml-configured topic
publishers.

This e-mail and any attachments may contain confidential or
privileged information. Any unauthorised copying, use or distribution of
this information is strictly prohibited.

Reply via email to