1 Reply Latest reply on Aug 19, 2013 4:45 AM by thomas.diesler

    Load module from OSGi bundle (JBoss EAP 6.1.0.Alpha1)

    execretor

      iI have a bundle that used infinispan. In the manifest i have insert this entry Dependencies: org.infinispan

      but during the deploy i receive java.lang.ClassNotFoundException: org.infinispan.manager.CacheContainer error,.

       

      How can i use infinispan? And, expanding the case, how can i load jboss module from an OSGi bundle?

       

       

      Thanks.

        • 1. Re: Load module from OSGi bundle (JBoss EAP 6.1.0.Alpha1)
          thomas.diesler

          Your bundle should use standard OSGi manifest headers (i.e. Import-Package). Packages exported by modules must be registered with the OSGi layer to be visible there - every bundle is a module, but not vice versa. Deployed modules get registered with the OSGi layer automatically, system modules not. You can register static modules (e.g. infinispan) as OSGi capabilities in the configuration.