It won't work if you deploy a SU on servicemix-http and another one on
servicemix-cxf-bc.
You need to use a single component or use different ports.

On Dec 27, 2007 5:19 PM, mattrpav <[EMAIL PROTECTED]> wrote:

>
> Here is the output.. both services are trying to bind to 0.0.0.0:8080
>
> INFO  - AutoDeploymentService          - Directory: hotdeploy: Finished
> installation of archive:  sitews-sa-1.0.zip
> INFO  - AutoDeploymentService          - Directory: hotdeploy: Archive
> changed: processing esb-sa-1.0.zip ...
> INFO  - ServiceAssemblyLifeCycle       - Starting service assembly: esb-sa
> INFO  - ServiceUnitLifeCycle           - Initializing service unit:
> esb-http-consumer-su
> INFO  - ServiceUnitLifeCycle           - Initializing service unit:
> esb-bean-su
> INFO  - ServiceUnitLifeCycle           - Starting service unit:
> esb-http-consumer-su
> INFO  - jetty                          - jetty-6.1.5
> INFO  - jetty                          - Started
> [EMAIL PROTECTED]:8080
> INFO  - ServiceUnitLifeCycle           - Starting service unit:
> esb-bean-su
> INFO  - AutoDeploymentService          - Directory: hotdeploy: Finished
> installation of archive:  esb-sa-1.0.zip
> INFO  - AutoDeploymentService          - Directory: hotdeploy: Archive
> changed: processing esbws-sa-1.0.zip ...
> INFO  - ServiceAssemblyLifeCycle       - Starting service assembly:
> esbws-sa
> INFO  - ServiceUnitLifeCycle           - Initializing service unit:
> esbws-cxfse-su
> INFO  - ServiceUnitLifeCycle           - Initializing service unit:
> esbws-cxfbc-su
> INFO  - ServiceUnitLifeCycle           - Starting service unit:
> esbws-cxfse-su
> Dec 26, 2007 7:18:57 PM
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
> buildServiceFromClass
> INFO: Creating Service 
> {http://airband.com/esb/ws}Esb<http://airband.com/esb/ws%7DEsb>from class
> com.airband.esb.ws.EsbPortImpl
> Dec 26, 2007 7:18:57 PM org.apache.cxf.configuration.spring.ConfigurerImpl
> getBeanName
> INFO: Could not determine bean name for instance of class
> org.apache.cxf.transport.jbi.JBIDestination.
> INFO  - ServiceUnitLifeCycle           - Starting service unit:
> esbws-cxfbc-su
> Dec 26, 2007 7:18:57 PM sun.reflect.NativeMethodAccessorImpl invoke0
> INFO: jetty-6.1.5
> Dec 26, 2007 7:18:57 PM sun.reflect.NativeMethodAccessorImpl invoke0
> WARNING: failed [EMAIL PROTECTED]:8080
> java.net.BindException: Address already in use: bind
>
>
>
> gnodet wrote:
> >
> > The HTTP component should indeed support that right now. Maybe there is
> a
> > bug, but multiple endpoints can be deployed on the same port provided
> that
> > the URL do not clash, that they use the same protocol and host (do not
> mix
> > localhost with 0.0.0.0).
> >
> > On Dec 27, 2007 2:33 AM, Bruce Snyder <[EMAIL PROTECTED]> wrote:
> >
> >> On Dec 26, 2007 6:20 PM, mattrpav <[EMAIL PROTECTED]> wrote:
> >> >
> >> > Is it possible for multiple assemblies to share the same HTTP Port?
> >> For
> >> > example, I have a HTTP consumer assembly, and several CXF web
> services
> >> that
> >> > I want to have run on port 8080.
> >> >
> >> > I've tried this, but get a port binding error while deploying the
> >> second
> >> > service assembly.  (See stack trace below)
> >>
> >> Currently, the servicemix-http component does not support this use
> >> case, though it should. To this end, I've commented on issue SM-1169
> >> (https://issues.apache.org/activemq/browse/SM-1169) about the various
> >> HTTP use cases in SMX and how we should refactor the servicemix-http
> >> component accordingly to support the current and any future use cases.
> >>
> >> Bruce
> >> --
> >> perl -e 'print
> >> unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> >> );'
> >>
> >> Apache ActiveMQ - http://activemq.org/
> >> Apache Camel - http://activemq.org/camel/
> >> Apache ServiceMix - http://servicemix.org/
> >> Apache Geronimo - http://geronimo.apache.org/
> >>
> >> Blog: http://bruceblog.org/
> >>
> >
> >
> >
> > --
> > Cheers,
> > Guillaume Nodet
> > ------------------------
> > Blog: http://gnodet.blogspot.com/
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Service-Assemblies-sharing-HTTP-Ports-tp14508501s12049p14515138.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>


-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

Reply via email to