5 Replies Latest reply on Mar 2, 2010 11:48 AM by fabiofabio

    Usersolved constraint org.apache.cxf.cxf-bundle on 4.1.0.2

    rcracel

      I just installed the latest build of Fuse ESB (4.1.0.2) hoping the problem with the previous release had been resolved but was a bit disappointed to still find dependency issues with CXF. Now, since this is a new install, there is a possibility that I have forgotten to install something in here.

       

      This is what I got...

       

      ...
      [ 156] [Active     ] [Started] [   60] Apache ServiceMix CXF Transport for OSGi (4.1.0.fuse)
      ...
      

       

      and when I try to start the same bundle that I had working on 4.1.0.0 I get the following error:

       

      ERROR CommandLineExecutionFailed: org.apache.geronimo.gshell.command.CommandException: org.osgi.framework.BundleException: Unresolved constraint in bundle 168: module; (bundle-symbolic-name=org.apache.cxf.cxf-bundle)
      

       

        • 1. Re: Usersolved constraint org.apache.cxf.cxf-bundle on 4.1.0.2
          ffang

          Hi,

           

          bundle 168 is your bundle, right?

           

          If you ever put

          <Require-Bundle>org.apache.cxf.cxf-bundle</Require-Bundle>

          in the pom.xml(or bnd tool) of your bundle, could you change it to

          <Require-Bundle>org.apache.cxf.bundle</Require-Bundle>, as the bundle-symbolic-name of cxf-bundle have changed(this is caused by maven-bundle-plugin 2.0).

           

          Freeman

          • 2. Re: Usersolved constraint org.apache.cxf.cxf-bundle on 4.1.0.2
            rcracel

            Thank you, Freeman, that did solve the problem.

            • 3. Re: Usersolved constraint org.apache.cxf.cxf-bundle on 4.1.0.2
              fabiofabio

              i don't understand the procedure...i have the same problem, but with modification of <Require-Bundle>org.apache.cxf.cxf-bundle</Require-Bundle>

               

              into

              <Require-Bundle>org.apache.cxf.bundle</Require-Bundle>

               

              the problem remain...please, can you make clear the procedure?

              • 4. Re: Usersolved constraint org.apache.cxf.cxf-bundle on 4.1.0.2
                gertv

                L.S.,

                 

                When the maven-bundle-plugin was upgraded in the CXF project, that introduced a change in the bundle's symbolic name: it used to be called org.apache.cxf.cxf-bundle and is now called org.apache.cxf.bundle.

                 

                If the POM for creating the bundle contains the Require-Bundle statement, that would require you to change the name in there and then rebuild and redeploy the bundle. 

                 

                Since you're still seeing errors after this change, there might be another problem hiding here.  Could you post the full stack trace, as well as the output for the {{osgi:headers <your bundle id>}}?

                 

                Regards,

                 

                Gert

                • 5. Re: Usersolved constraint org.apache.cxf.cxf-bundle on 4.1.0.2
                  fabiofabio

                  javax.xml.transform.TransformerFactoryConfigurationError: Provider com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl not found

                       at javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:121)

                       at org.apache.cxf.bus.spring.TunedDocumentLoader.(BusApplicationContext.java:91)

                       at org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBusFactory.java:102)

                       at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:93)

                       at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:86)

                       at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:64)