4 Replies Latest reply on Dec 3, 2009 2:31 AM by lekkie_lomotayo

    Unresolved constraint in bundle package=org.apache.cxf.headers)(version>=2

    lekkie_lomotayo

      Hi i saw the error below while trying to install camel-cxf-2.x

       

      smx@root:osgi> install -s mvn:org.apache.camel/camel-cxf/2.x-fuse-SNAPSHOT

       

      ERROR CommandLineExecutionFailed: org.apache.geronimo.gshell.command.CommandExce

      ption: org.osgi.framework.BundleException: Unresolved constraint in bundle 262:

      package; (&(package=org.apache.cxf.headers)(version>=2.2.4)(!(version>=3.0.0)))

       

      What is the right Group id/artifact id/version for the org.apache.cxf.headers package?

       

      kr.

        • 1. Re: Unresolved constraint in bundle package=org.apache.cxf.headers)(version>=2
          davestanley

          Its in the CXF Bundle Jar

           

          karaf@root> osgi:list | grep CXF
          [ 106] [Active     ] [            ] [       ] [   60] Apache CXF Bundle Jar (2.2.4.psc-01-00)
          [ 107] [Active     ] [            ] [       ] [   60] Apache CXF Runtime JBI Binding (2.2.4.psc-01-00)
          [ 108] [Active     ] [            ] [       ] [   60] Apache CXF Runtime JBI Transport (2.2.4.psc-01-00)
          [ 109] [Active     ] [            ] [       ] [   60] ServiceMix :: CXF Service Engine (2009.02.0.psc-01-00M2)
          [ 130] [Active     ] [            ] [       ] [   60] ServiceMix :: CXF Binding Component (2009.02.0.psc-01-00M2)
          karaf@root> packages:exports 106 | grep headers
          Apache CXF Bundle Jar (106): org.apache.cxf.headers; version="2.2.4.psc-01-00"
          karaf@root> 
          

           

          Regards

          /Dave

          • 2. Re: Unresolved constraint in bundle package=org.apache.cxf.headers)(version
            lekkie_lomotayo

            This is what I ve got in my ESB:

             

            Apache CXF Bundle Jar (2.2.2.1-fuse)

            ServiceMix :: CXF Binding Component (2009

            .01.0.fuse)

            Apache CXF Runtime JBI Binding (2.2.2.1-f

            use)

            Apache CXF Runtime JBI Transport (2.2.2.1

            -fuse)

            ServiceMix :: CXF Service Engine (2009.01

            .0.fuse)

            Apache ServiceMix CXF Transport for OSGi

            (4.1.0.fuse)

            Apache ServiceMix CXF Transport for NMR (

            4.1.0.fuse)

            Apache ServiceMix CXF Binding for NMR (4.

            1.0.fuse)

             

            version=2.2.2.1

             

            Which of the above do I have to uninstall?

             

            Will installing mvn:org.apache.camel/camel-cxf/2.x-fuse-SNAPSHOT install whatever features uninstalled above, kindly indicate any other cxf feature to add.

             

            Edited by: lekkie on Dec 2, 2009 3:47 PM

            • 3. Re: Unresolved constraint in bundle package=org.apache.cxf.headers)(version
              njiang

              No, I don't think you can install mvn:org.apache.camel/camel-cxf/2.x-fuse-SNAPSHOT bundle, as it depends on the CXF bundle 2.2.4-psc-01-00 which is not public released yet.

              • 4. Re: Unresolved constraint in bundle package=org.apache.cxf.headers)(version
                lekkie_lomotayo

                I was able to eventually.

                 

                I had to smx@root: list | grep CXF, uninstall all bundles related to CXF and install the ffg:

                 

                install -s mvn:org.apache.cxf/cxf-bundle/2.3.x-fuse-SNAPSHOT

                install -s mvn:org.apache.cxf/cxf-rt-bindings-jbi/2.3.x-fuse-SNAPSHOT

                install -s mvn:org.apache.cxf/cxf-rt-transports-jbi/2.3.x-fuse-SNAPSHOT

                install -s mvn:org.apache.servicemix/servicemix-common/2009.03-fuse-SNAPSHOT

                install -s mvn:org.apache.servicemix/servicemix-soap2/2009.03-fuse-SNAPSHOT

                install -s mvn:org.apache.servicemix/servicemix-cxf-bc/2009.03-fuse-SNAPSHOT

                install -s mvn:org.apache.servicemix/servicemix-cxf-se/2009.03-fuse-SNAPSHOT

                 

                kr.