4 Replies Latest reply on Nov 20, 2012 12:32 PM by tdiehl_tdiehl

    CXF Bundle Spring OSGi Context Fails to Start?

    tdiehl_tdiehl

      Anyone have any ideas on why the Spring Context for the CXF bundle would sometimes fail to start?  This results in published Camel SOAP endpoints not being available under the /cxf URL.  This seems to happen intermittently, restarting ServiceMix will usually correct the situation.

       

      Here is the status when not started:

      \[ 126\] \[Active     \] \[Created     \] \[       \] \[   50\] Apache CXF Bundle Jar (2.4.3.fuse-03-02)

       

      And when successfully started:

      \[ 126\] \[Active     \] \[Created     \] \[Started\] \[   50\] Apache CXF Bundle Jar (2.4.3.fuse-03-02)

       

      I haven't really found anything useful in the logs yet.  Any suggestions?

       

      Regards,

      Todd

        • 1. Re: CXF Bundle Spring OSGi Context Fails to Start?
          ffang

          Hi,

           

          What's the exact FUSE ESB version you're using?

          Do you see any exception when this happen?

          Most likely you run into a known issue[1] which already get fixed.

           

          https://issues.apache.org/jira/browse/KARAF-1114

           

          Freeman

          • 2. Re: CXF Bundle Spring OSGi Context Fails to Start?
            tdiehl_tdiehl

            We are using 4.4.1-fuse-06-03.  Unfortunately, I'm not seeing any execptions in the logs.

             

            Is this issue fixed in a later fuse version?

            • 3. Re: CXF Bundle Spring OSGi Context Fails to Start?
              ffang

              Hi,

               

              Could you run your example with 4.4.1-fuse-08-15?

               

               

              Freeman

              • 4. Re: CXF Bundle Spring OSGi Context Fails to Start?
                tdiehl_tdiehl

                Unfortunately, I still see the behavior in 4.4.1-fuse-08-15, though in the last instance I saw it, the CXF Spring context reported Started.  However, when browsing to /cxf, none of the services exposed via our Camel components were listed, even though there are messages in the logs from the CXF bundle that indicate that services are being created and published.  Any other thoughts?

                 

                09:41:35,310 | INFO  | xtenderThread-28 | ReflectionServiceFactoryBean     | 130 - org.apache.cxf.bundle - 2.4.3.fuse-04-15 | Creating Service cdsPatientServices from class com.harris.healthcare.cds.service.patient.CdsPatientServices

                09:41:37,024 | INFO  | xtenderThread-28 | ServerImpl                       | 130 - org.apache.cxf.bundle - 2.4.3.fuse-04-15 | Setting the server's publish address to be /v2/soap/patient

                09:41:37,989 | INFO  | xtenderThread-28 | ServerImpl                       | 130 - org.apache.cxf.bundle - 2.4.3.fuse-04-15 | Setting the server's publish address to be /v2/rest/patient