2 Replies Latest reply on Feb 25, 2009 11:23 AM by cmoulliard

    Example cxf-osgi cannot run on Fuse ESB 4.0.0.4 !!

    cmoulliard

      Hi,

       

      The example cxf-osgi cannot run on Fuse ESB 4.0.0.4 server. Here is the error reported :

       

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

       

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

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

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

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

              at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1135)

              at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:267)

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

       

      I have done this test with code src of Fuse downloaded from fusesource site and build made through maven. The cxf-osgi-4.0.0.4-fuse.jar has been deployed in the deploy folder.

       

      Remarks :

      - I have also installed the bundles link to the features web and web-core because they were not mentioned in the fuse document (http://fusesource.com/docs/esb/4.0/getting_started/index.html)

      - The folder META-INF/cxf/osgi does not exist in the bundle : Apache CXF Bundle Jar (2.1.3.fuse). This is why we have this error.

       

      I think that there is an error with the build of the bundle Apache Cxf 2.1.3 - Fuse

       

      Here is the list of osgi bundles installed :

      servicemix osgi> list

      START LEVEL 100

         ID   State         Level  Name

      System Bundle (1.2.1)

      Apache ServiceMix Specs :: JAXP API 1.4 (1.2.0.fuse)

      geronimo-servlet_2.5_spec (1.1.2)

      Apache ServiceMix Bundles: jaxp-ri-1.4.2 (1.4.2.fuse)

      Apache Felix Configuration Admin Service (1.0.4)

      Apache Felix Prefrences Service (1.0.2)

      OSGi R4 Compendium Bundle (4.1.0)

      OPS4J - Pax Logging API (1.1.1)

      OPS4J - Pax Logging Service (1.1.1)

      Apache ServiceMix Kernel :: GShell Features (1.0.3.fuse)

      Apache ServiceMix Bundles: aopalliance-1.0 (1.0.0.1)

      spring-osgi-io (1.1.0)

      Apache ServiceMix Bundles: cglib-2.1_3 (2.1.0.3_1)

      Apache ServiceMix Kernel :: GShell PackageAdmin Commands (1.0.3.fuse)

      Apache ServiceMix Kernel :: GShell Log Commands (1.0.3.fuse)

      spring-osgi-core (1.1.0)

      spring-core (2.5.5)

      spring-context (2.5.5)

      Apache ServiceMix Kernel :: JAAS Config (1.0.3.fuse)

      Apache ServiceMix Kernel :: GShell Admin (1.0.3.fuse)

      Apache ServiceMix Kernel :: GShell ConfigAdmin Commands (1.0.3.fuse)

      Apache ServiceMix Kernel :: Spring Deployer (1.0.3.fuse)

      spring-osgi-extender (1.1.0)

      spring-beans (2.5.5)

      Apache ServiceMix Kernel :: JAAS Keystore (1.0.3.fuse)

      Apache ServiceMix Bundles: mina-1.1.6 (1.1.6.1)

      Apache ServiceMix Kernel :: GShell OSGi Commands (1.0.3.fuse)

      spring-aop (2.5.5)

      Apache ServiceMix Kernel :: GShell Core (1.0.3.fuse)

      OPS4J Pax Url - wrap: (0.3.2)

      OPS4J Pax Url - mvn: (0.3.2)

      Apache ServiceMix Kernel :: File Monitor (1.0.3.fuse)

      geronimo-jta_1.1_spec (1.1.1)

      geronimo-jms_1.1_spec (1.1.1)

      geronimo-j2ee-connector_1.5_spec (2.0.0)

      Apache ServiceMix Bundles: howl-1.0.1-1 (1.0.1.1_1)

      Geronimo TxManager :: Transaction (2.2.0.r634076)

      Geronimo TxManager :: Connector (2.2.0.r634076)

      spring-tx (2.5.5)

      Apache ServiceMix Bundles: jencks-2.1 (2.1.0.1)

      Apache ServiceMix Features :: Transaction (4.0.0.fuse)

      geronimo-j2ee-management_1.1_spec (1.0.1)

      Apache Commons Pool Bundle (1.4)

      xbean-spring (3.4.3)

      activemq-core (5.2.0.fuse)

      activemq-ra (5.2.0.fuse)

      activemq-console (5.2.0.fuse)

      activemq-broker.xml (0.0.0)

      activemq-pool (5.2.0.fuse)

      Apache ServiceMix Features :: ActiveMQ Commands (4.0.0.fuse)

      Apache ServiceMix Document (1.0.0.fuse)

      Apache ServiceMix NMR API (1.0.0.fuse)

      Apache ServiceMix NMR Core (1.0.0.fuse)

      Apache ServiceMix NMR OSGi (1.0.0.fuse)

      Apache ServiceMix NMR Spring (1.0.0.fuse)

      Apache ServiceMix NMR Commands (1.0.0.fuse)

      Apache ServiceMix NMR Management (1.0.0.fuse)

      Apache ServiceMix Specs :: STAX API 1.0 (1.2.0.fuse)

      Apache ServiceMix Specs :: ACTIVATION API 1.4 (1.2.0.fuse)

      Apache ServiceMix Specs :: JAVAMAIL API 1.4 (1.2.0.fuse)

      xbean-classloader (3.4.3)

      Apache ServiceMix Bundles: woodstox-3.2.7 (3.2.7.1)

      Apache ServiceMix Specs :: JBI API 1.0 (1.2.0.fuse)

      Apache ServiceMix JBI Runtime (1.0.0.fuse)

      Apache ServiceMix JBI OSGi (1.0.0.fuse)

      Apache ServiceMix JBI Deployer (1.0.0.fuse)

      Apache ServiceMix JBI Commands (1.0.0.fuse)

      Apache ServiceMix JBI Management (1.0.0.fuse)

      Apache ServiceMix Bundles: wsdl4j-1.6.1 (1.6.1.1)

      Apache ServiceMix :: Utils (1.0.0.fuse)

      ServiceMix :: Common (2008.01.0.fuse)

      geronimo-annotation_1.0_spec (1.1.1)

      geronimo-ws-metadata_2.0_spec (1.1.2)

      Apache ServiceMix Specs :: SAAJ API 1.3 (1.2.0.fuse)

      Apache ServiceMix Specs :: JAXB API 2.1 (1.2.0.fuse)

      Apache ServiceMix Specs :: JAXWS API 2.1 (1.2.0.fuse)

      spring-jms (2.5.5)

      Apache ServiceMix Bundles: asm-2.2.3 (2.2.3.1)

      Apache ServiceMix Bundles: FastInfoset-1.2.2 (1.2.2.1)

      Apache ServiceMix Bundles: jaxb-impl-2.1.6 (2.1.6.1)

      Apache ServiceMix Bundles: jetty-6.1.12rc1 (6.1.0.12rc1_1-fuse)

      Apache ServiceMix Bundles: neethi-2.0.4 (2.0.4.1)

      Apache ServiceMix Example :: CXF OSGi (4.0.0.fuse)

      Apache ServiceMix Bundles: xmlschema-1.4.2 (1.4.2.1)

      Apache ServiceMix Bundles: xmlresolver-1.2 (1.2.0.1)

      Apache ServiceMix Bundles: xmlsec-1.3.0 (1.3.0.1)

      Apache ServiceMix Bundles: wss4j-1.5.4 (1.5.4.1)

      Apache CXF Bundle Jar (2.1.3.fuse)

      ServiceMix :: SOAP2 (2008.01.0.fuse)

      ServiceMix :: CXF Binding Component (2008.01.0.fuse)

      ServiceMix :: File (2008.01.0.fuse)

      Apache ServiceMix Bundles: oro-2.0.8 (2.0.8.1)

      Apache ServiceMix Bundles: commons-net-1.4.1 (1.4.1.1)

      ServiceMix :: FTP (2008.01.0.fuse)

      Apache ServiceMix Bundles: commons-codec-1.2 (1.2.0.1)

      Apache ServiceMix Bundles: commons-httpclient-3.1 (3.1.0.1)

      ServiceMix :: SOAP (2008.01.0.fuse)

      ServiceMix :: HTTP (2008.01.0.fuse)

      ServiceMix :: JMS (2008.01.0.fuse)

      ServiceMix :: Mail (2008.01.0.fuse)

      ServiceMix :: Bean (2008.01.0.fuse)

      camel-core (1.5.4.fuse)

      camel-spring (1.5.4.fuse)

      camel-osgi (1.5.4.fuse)

      ServiceMix :: Camel (2008.01.0.fuse)

      Apache CXF Runtime JBI Binding (2.1.3.fuse)

      Apache CXF Runtime JBI Transport (2.1.3.fuse)

      ServiceMix :: CXF Service Engine (2008.01.0.fuse)

      Apache ServiceMix Bundles: core-3.2.3.v_686_R32x (3.2.3.1)

      Apache ServiceMix Bundles: antlr-runtime-3.0.1 (3.0.1.1)

      Apache ServiceMix Bundles: drools-4.0.7 (4.0.7.1)

      ServiceMix :: Drools Service Engine (2008.01.0.fuse)

      ServiceMix :: EIP (2008.01.0.fuse)

      Apache ServiceMix Bundles: antlr-3.0.1 (3.0.1.1)

      Apache ServiceMix Bundles: quartz-1.5.2 (1.5.2.1)

      Apache ServiceMix Bundles: oscore-2.2.4 (2.2.4.1)

      Apache ServiceMix Bundles: propertyset-1.3 (1.3.0.1)

      Apache ServiceMix Bundles: osworkflow-2.7.0 (2.7.0.1)

      ServiceMix :: OSWorkflow (2008.01.0.fuse)

      spring-context-support (2.5.5)

      ServiceMix :: Quartz (2008.01.0.fuse)

      Apache ServiceMix Specs :: Scripting API 1.0 (1.2.0.fuse)

      ServiceMix :: JSR-223 Scripting Service Engine (2008.01.0.fuse)

      Apache ServiceMix Bundles: groovy-1.5.6 (1.5.6.1)

      Apache ServiceMix Bundles: js-1.7R1 (1.0.0.7R1_1-fuse)

      Apache ServiceMix Bundles: jruby-1.1.2 (1.1.2.fuse)

      ScriptEngines :: Groovy (1.1)

      ScriptEngines :: JavaScript (1.1)

      ScriptEngines :: JRuby (1.1)

      ServiceMix :: Validation (2008.01.0.fuse)

      Apache ServiceMix Bundles: saxon-9.1.0.1 (9.1.0.1_1)

      ServiceMix :: Saxon Service Engine (2008.01.0.fuse)

      ServiceMix :: WS-Notification Service Engine (2008.01.0.fuse)

      OPS4J Pax Web - Web Container (0.4.1)

      OPS4J Pax Web - Jsp Support (0.4.1)

      OPS4J Pax Web Extender - WAR (0.3.0)

      OPS4J Pax Web Extender - Whiteboard (0.3.0)

       

       

      Regards,

       

      Charles Moulliard

      SOA Architect

      Xpectis

       

      Edited by: cmoulliard on Feb 25, 2009 4:10 PM