Alias is already in use in this or in another context

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Alias is already in use in this or in another context

Chandan
Hello,

We are trying load balancer in 2 machines forming a cluster.
When we do http:list it is showing for all the proxy servlet.

208 | CellarBalancerProxyServlet | ServletModel-13            | Failed      | /gogo               | [/gogo/*]
208 | CellarBalancerProxyServlet | ServletModel-14            | Failed      | /features           | [/features/*]
208 | CellarBalancerProxyServlet | ServletModel-15            | Failed      | /instance           | [/instance/*]
208 | CellarBalancerProxyServlet | ServletModel-16            | Failed      | /system/console     | [/system/console/*]
208 | CellarBalancerProxyServlet | ServletModel-17            | Failed      | /system/console/res | [/system/console/res/*]
208 | CellarBalancerProxyServlet | ServletModel-18            | Failed      | /cxf                | [/cxf/*]

When i checked my log

org.osgi.service.http.NamespaceException: alias: '/cxf' is already in use in this or another context
        at org.ops4j.pax.web.service.spi.model.ServerModel.addServletModel(ServerModel.java:130)[94:org.ops4j.pax.web.pax-web-spi:4.2.6]
        at org.ops4j.pax.web.service.internal.HttpServiceStarted.registerServlet(HttpServiceStarted.java:212)[93:org.ops4j.pax.web.pax-web-runtime:4.2.6]
        at org.ops4j.pax.web.service.internal.HttpServiceStarted.registerServlet(HttpServiceStarted.java:195)[93:org.ops4j.pax.web.pax-web-runtime:4.2.6]
        at org.ops4j.pax.web.service.internal.HttpServiceStarted.registerServlet(HttpServiceStarted.java:179)[93:org.ops4j.pax.web.pax-web-runtime:4.2.6]
        at org.ops4j.pax.web.service.internal.HttpServiceProxy.registerServlet(HttpServiceProxy.java:64)[93:org.ops4j.pax.web.pax-web-runtime:4.2.6]
        at org.ops4j.pax.web.extender.whiteboard.internal.element.ServletWebElement.register(ServletWebElement.java:61)[197:org.ops4j.pax.web.pax-web-extender-whiteboard:4.2.6]
        at org.ops4j.pax.web.extender.whiteboard.internal.WebApplication.registerWebElement(WebApplication.java:270)[197:org.ops4j.pax.web.pax-web-extender-whiteboard:4.2.6]
        at org.ops4j.pax.web.extender.whiteboard.internal.WebApplication.addWebElement(WebApplication.java:127)[197:org.ops4j.pax.web.pax-web-extender-whiteboard:4.2.6]
        at org.ops4j.pax.web.extender.whiteboard.internal.tracker.AbstractTracker.addingService(AbstractTracker.java:169)[197:org.ops4j.pax.web.pax-web-extender-whiteboard:4.2.6]
        at org.ops4j.pax.web.extender.whiteboard.internal.tracker.AbstractTracker.addingService(AbstractTracker.java:44)[197:org.ops4j.pax.web.pax-web-extender-whiteboard:4.2.6]
        at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)[org.osgi.core-6.0.0.jar:]
        at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)[org.osgi.core-6.0.0.jar:]
        at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)[org.osgi.core-6.0.0.jar:]
        at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)[org.osgi.core-6.0.0.jar:]
        at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901)[org.osgi.core-6.0.0.jar:]
        at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:991)[org.apache.felix.framework-5.4.0.jar:]
        at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:839)[org.apache.felix.framework-5.4.0.jar:]
        at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:546)[org.apache.felix.framework-5.4.0.jar:]
        at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4557)[org.apache.felix.framework-5.4.0.jar:]
        at org.apache.felix.framework.Felix.registerService(Felix.java:3549)[org.apache.felix.framework-5.4.0.jar:]
        at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:348)[org.apache.felix.framework-5.4.0.jar:]
        at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:355)[org.apache.felix.framework-5.4.0.jar:]
        at org.apache.karaf.cellar.http.balancer.BalancerEventHandler.handle(BalancerEventHandler.java:82)[208:org.apache.karaf.cellar.http.balancer:4.0.0]
        at org.apache.karaf.cellar.http.balancer.BalancerEventHandler.handle(BalancerEventHandler.java:33)[208:org.apache.karaf.cellar.http.balancer:4.0.0]
        at org.apache.karaf.cellar.core.event.EventDispatchTask.run(EventDispatchTask.java:57)[203:org.apache.karaf.cellar.core:4.0.0]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_73]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_73]

Reply | Threaded
Open this post in threaded view
|

Re: Alias is already in use in this or in another context

glopez
Hi,

Were you able to solve this? I have the same problem and I have no clue of what I'm doing wrong.

Thanks