How to set the port and context root of a web service deployed to JBoss Fuse?

Solution Verified - Updated -

Issue

I am deploying 2 instances of the same web service to JBoss Fuse, because I would like to load balance requests between them. However when I try to deploy the second application containing the web service I am getting an error message like this:

osgibundle:/META-INF/spring/*.xml))
org.apache.camel.RuntimeCamelException: java.lang.RuntimeException: Soap 1.1 endpoint already registered on address http://server-ip:9001/Context
        at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1326)[118:org.apache.camel.camel-core:2.10.0.redhat-60057]
        at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:120)[135:org.apache.camel.camel-spring:2.10.0.redhat-60024]
        at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:283)[135:org.apache.camel.camel-spring:2.10.0.redhat-60024]
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)[150:org.springframework.context:3.1.4.RELEASE]
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:327)[150:org.springframework.context:3.1.4.RELEASE]
        at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:941)[150:org.springframework.context:3.1.4.RELEASE]
        at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)[106:org.springframework.osgi.core:1.2.1]
        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)[106:org.springframework.osgi.core:1.2.1]
        at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[106:org.springframework.osgi.core:1.2.1]
        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[106:org.springframework.osgi.core:1.2.1]
        at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)[124:org.springframework.osgi.extender:1.2.1]
        at java.lang.Thread.run(Thread.java:722)[:1.7.0_09-icedtea]
Caused by: java.lang.RuntimeException: Soap 1.1 endpoint already registered on address http://server-ip:9001/context
        at org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:862)[114:org.apache.cxf.cxf-rt-bindings-soap:2.6.0.redhat-60024]
        at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:131)[76:org.apache.cxf.cxf-api:2.6.0.redhat-60029]
        at org.apache.camel.component.cxf.CxfConsumer.doStart(CxfConsumer.java:249)[146:org.apache.camel.camel-cxf:2.10.0.redhat-60057]
        at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)[118:org.apache.camel.camel-core:2.10.0.redhat-60057]
        at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:1777)[118:org.apache.camel.camel-core:2.10.0.redhat-60057]
        at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRouteConsumers(DefaultCamelContext.java:2073)[118:org.apache.camel.camel-core:2.10.0.redhat-60057]
        at org.apache.camel.impl.DefaultCamelContext.doStartRouteConsumers(DefaultCamelContext.java:2009)[118:org.apache.camel.camel-core:2.10.0.redhat-60057]
        at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1937)[118:org.apache.camel.camel-core:2.10.0.redhat-60057]
        at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:1716)[118:org.apache.camel.camel-core:2.10.0.redhat-60057]
        at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1597)[118:org.apache.camel.camel-core:2.10.0.red

Environment

  • Red Hat JBoss Fuse
    • 6.0
    • 6.2.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.