2 Replies Latest reply on Mar 22, 2013 3:26 PM by ashish.mohan_ashish.mohan

    Error while deploying feature with extension

    ashish.mohan_ashish.mohan

      My project uses some system libraries so we have created an extension project. All the application in my project use this extension as dependent feature as mentioned below

       

      <feature name='dummy-app' version='1.1-SNAPSHOT'>

      <feature version='1.1-SNAPSHOT'>myprojectextension</feature>

      <bundle>mvn:<groupid>/<artifactid>/1.1-SNAPSHOT</bundle>

      </feature>

       

      When I try to apply a profile with dummy-project as feature to a container, I get below error in FMC UI.

      ======================

      Provision Exception Trace: java.lang.Exception: Can not resolve feature: Unsatisfied requirement(s): -----

      bundle:(&(symbolicname=system.bundle)) Framework Extension for myproject at org.fusesource.fabric.agent.ObrResolver.resolve(ObrResolver.java:200)

      at org.fusesource.fabric.agent.DeploymentAgent.updateDeployment(DeploymentAgent.java:554) at org.fusesource.fabric.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:428) at org.fusesource.fabric.agent.DeploymentAgent$1.run(DeploymentAgent.java:238) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722)======================

       

      MANIFEST.MF of extension looks like below

      ======================

      Manifest-Version: 1.0

      Export-Package: sun.nio.ch,sun.misc,sun.security.util,sun.security.action,com.sun.jdmk.comm,sun.reflect,

      sun.reflect.generics.reflectiveObjects

      Fragment-Host: system.bundle; extension:=framework

      Bundle-Name: Framework Extension for myproject

      Bundle-ManifestVersion: 2

      Bundle-Description: Bundle exporting classes required by myproject

      Bundle-SymbolicName: myproject.extension

      ======================

       

      FMC appears to be having issue when Fragment-Host has system.bundle or extension?

        • 1. Re: Error while deploying feature with extension
          ashish.mohan_ashish.mohan

          Has anyone faced similar issue?

          Using extension bundle in the project is quite common. Deploying any bundle with system.bundle as dependency on karaf container works perfectly. It's not working with fuse management console and fails with below error.

           

          Exception Trace: java.lang.Exception: Can not resolve feature:

          Unsatisfied requirement(s):

          -


          bundle:(&(symbolicname=system.bundle))

          • 2. Re: Error while deploying feature with extension
            ashish.mohan_ashish.mohan

            Below is the pom and content of the MANIFEST.MF file for perusal..

             

             

             

            ================

            MANIFEST.MF

            ================

             

            Manifest-Version: 1.0

            Export-Package: sun.nio.ch,sun.misc,sun.security.util,sun.security.action,com.sun.jdmk.comm,sun.reflect,

            sun.reflect.generics.reflectiveObjects

            Fragment-Host: system.bundle; extension:=framework

            Bundle-Name: Framework Extension for My POC

            Bundle-ManifestVersion: 2

            Bundle-Description: Bundle exporting classes required by My POC

            Bundle-SymbolicName: poc.extension