1 Reply Latest reply on May 23, 2014 8:42 AM by Anoop Nair

    Can not access OSGi web console

    yamada wakabayashi Newbie

      Hello,

       

      I am using jboss EAP 6.1.0 and I need to use to the felix webconsole (default url in JBoss AS 7.1.1: http://localhost:8090/system/console/)

      For that purpose I added the following capability:

       

      <capability name="org.apache.felix.webconsole" startlevel="1"/>
      

       

      But didn't work; then I tried to start it manually from the administration console:

       

      1.png

       

      Then the following exception is thrown:

       

      Caused by: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext.handleSecurity(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Z" the class loader (instance of org/jboss/osgi/framework/internal/HostBundleClassLoader) of the current class, org/apache/felix/webconsole/internal/servlet/OsgiManagerHttpContext, and the class loader (instance of org/jboss/modules/ModuleClassLoader) for interface org/osgi/service/http/HttpContext have different Class objects for the type HttpContext used in the signature

      at org.apache.felix.webconsole.internal.servlet.OsgiManager.bindHttpService(OsgiManager.java:720)

      at org.apache.felix.webconsole.internal.servlet.OsgiManager$HttpServiceTracker.addingService(OsgiManager.java:650)

      at org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(ServiceTracker.java:1030)

      at org.osgi.util.tracker.ServiceTracker$Tracked.trackInitialServices(ServiceTracker.java:891)

      at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:296)

      at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:235)

      at org.apache.felix.webconsole.internal.servlet.OsgiManager.updateConfiguration(OsgiManager.java:869)

      at org.apache.felix.webconsole.internal.servlet.OsgiManager.<init>(OsgiManager.java:287)

      at org.apache.felix.webconsole.internal.OsgiManagerActivator.start(OsgiManagerActivator.java:42)

      at org.jboss.osgi.framework.internal.HostBundleState.startInternalNow(HostBundleState.java:276)

      ... 34 more