0 Replies Latest reply on Mar 19, 2014 4:09 AM by mart1031y

    JBoss AS 7.2 OSGi javax.ejb package missing

    mart1031y

      Hello Devs,

       

      I'm very new to OSGi and JBoss, so this might be a very simple/stupid question.

      Currently I'm working on an EJB OSGi bundle, using this tutorial to create and understand the bundles.

      Now, my bundle has a dependency to javax.ejb, since it's an EJB. However, when I deploy this bundle to JBoss AS 7.2 (or EAP 6.2) I get this exception:

       

      Caused by: org.osgi.service.resolver.ResolutionException: Unable to resolve Host

      BundleRevision[EJBClient:1.0.0.2]: missing requirement XPackageRequirement[atts=

      {osgi.wiring.package=javax.ejb},[EJBClient:1.0.0.2]]

       

      I've removed even the version number, because I thought that's the problem, but it still doesn't work.

      Can anybody tell me what could be the problem?

       

      Thanks,

      Marty

       

      MANIFEST.MF:

      Manifest-Version: 1.0

      Bundle-ManifestVersion: 2

      Bundle-Name: EJBClient

      Bundle-SymbolicName: EJBClient

      Bundle-Version: 1.0.0.2

      Bundle-RequiredExecutionEnvironment: OSGi/Minimum-1.2

      Import-Package: javax.ejb

      Export-Package: com.ibm.example