2 Replies Latest reply on Nov 19, 2008 8:34 AM by Tomasz Olchawa

    ESB 4.0 Preview 2: cxf-osgi example does not work?

    Chris Perfect Newbie

      I have followed the instructions at http://fusesource.com/docs/esb/4.0/getting_started/ESBGetStartedOSGiExample.html to build and deploy the the cxf-osgi example. Once deployed service mix gives the error:

       

      ERROR: Error starting file:/C:/devstuff/iona/fuse-esb-4.0.0.1-preview2/deploy/cx

      f-osgi-4.0.0.1-fuse.jar (org.osgi.framework.BundleException: Unresolved package

      in bundle 125: package; (package=META-INF.cxf.osgi))

      org.osgi.framework.BundleException: Unresolved package in bundle 125: package; (

      package=META-INF.cxf.osgi)

              at org.apache.felix.framework.Felix._resolveBundle(Felix.java:1728)

              at org.apache.felix.framework.Felix._startBundle(Felix.java:1591)

              at org.apache.felix.framework.Felix.startBundle(Felix.java:1544)

              at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:11

      25)

              at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258

      )

              at java.lang.Thread.run(Thread.java:595)

      ____                  _          __  __ _

       

       

       

       

       

       

       

      I have attached the jar file that maven creates. My OS is XP, JDK: Sun 1.5.0_16

       

      Has anybody got this example to work?

      Thanks

       

       

        • 1. Re: ESB 4.0 Preview 2: cxf-osgi example does not work?
          Andii Andii Newbie

          Hi

           

          Check if cxf-osgi feature is installed, if not then try install this feature

           

          features install cxf-osgi

           

          maybe that help.

           

          Best regards

          • 2. Re: ESB 4.0 Preview 2: cxf-osgi example does not work?
            Tomasz Olchawa Newbie

            hi!

             

            I have the same problem.

             

            1. this is second time when I try to use FUSE 4 (first was 4.0.0.0 now it is 4.0.0.2)

            2. maven 2.0.9

            3. java: 1.6.0_07-b06

            4. os: windows xp SP2

             

            • I installed FUSE 4.0.0.2 (no problems)

            • started servicemix.bat (no oproblems)

            • excuted examples/cxf-osgi/> mvn install (no oproblems)

            • copy examples/cxf-osgi/cxf-osgi-4.0.0.2-fuse.jar to deploy/ (no problems;)* )

            • http://localhost:8080/cxf/HelloWorld?wsdl (NOT WORKING) see: getting_started.pdf p.23

            • then I restarted servicemix.bat and then I received:

            DEBUG Running task ManagedService Update: pid=org.ops4j.pax.logging

            ERROR: Error starting mvn:org.apache.servicemix/servicemix-cxf-bc/2008.01.0.0-fuse (org.osgi.framewo

            rk.BundleException: Unable to resolve due to constraint violation.)

            org.osgi.framework.BundleException: Unable to resolve due to constraint violation.

            ERROR: Error starting mvn:org.apache.servicemix/servicemix-cxf-se/2008.01.0.0-fuse (org.osgi.framewo

            rk.BundleException: Unable to resolve due to constraint violation.)

            org.osgi.framework.BundleException: Unable to resolve due to constraint violation.

            ERROR: Error starting mvn:org.apache.servicemix/servicemix-wsn2005/2008.01.0.0-fuse (org.osgi.framew

            ork.BundleException: Unable to resolve due to constraint violation.)

            org.osgi.framework.BundleException: Unable to resolve due to constraint violation.

            ERROR: Error starting file:/C:/iona/fuse-esb-4.0.0.2/deploy/cxf-osgi-4.0.0.2-fuse.jar (org.osgi.fram

            ework.BundleException: Unresolved constraint in bundle 128: package; (package=META-INF.cxf.osgi))

            org.osgi.framework.BundleException: Unresolved constraint in bundle 128: package; (package=META-INF.

            cxf.osgi)