I have been trying to get the JBI integration samples in CXF-2.0-incubator-M1
working with ServiceMix (3.2-Snapshot). I'm using the ant tasks to install
and start the CXF engine. It installs correctly but on start I get an
exception complaining that  

 Class [org.apache.xbean.spring.context.v2.XBeanNamespaceHandler] does not
implement the NamespaceHandler interface

It seems to be the same issue as observed in the following thread
 
http://www.nabble.com/Using-CXF-with-ServiceMix-3.1-tf3352678.html#a9371714

According to the post this is due to a mismatch in the versions of spring
being used in sm and cxf. As suggested in that thread, I have tried updating
the jbi.xml as suggested to load the component first i.e.

<jbi version="1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns="http://java.sun.com/xml/ns/jbi"; 
xsi:schemaLocation="http://java.sun.com/xml/ns/jbi ./jbi.xsd">

  <component type="service-engine"
component-class-loader-delegation="self-first"> 
    <identification> 
      <name>CXFServiceEngine</name> 
      <description>This is a cxf service engine</description> 
    </identification> 
    <component-class-name
description="description">org.apache.cxf.jbi.se.CXFServiceEngine</component-class-name>
 
    <component-class-path> 
      <path-element>cxf-integration-jbi-2.0-incubator-M1.jar</path-element> 
      <path-element>cxf-incubator.jar</path-element>
    </component-class-path> 
   
<bootstrap-class-name>org.apache.cxf.jbi.se.CXFBootstrap</bootstrap-class-name> 
    <bootstrap-class-path> 
      <path-element>cxf-integration-jbi-2.0-incubator-M1.jar</path-element> 
      <path-element>cxf-incubator.jar</path-element>
    </bootstrap-class-path> 
  </component> 
</jbi>

But get the same result. Is this the correct was to have the component
initialize itself first?
Has anyone successfully deployed the examples on a SM instance > 3.0 or have
any other ideas how i might resolve this? Any help would be greatly
appreciated.

Thanks in advance

stephen.
-- 
View this message in context: 
http://www.nabble.com/JBI-Integration-samples-tf3648583.html#a10191253
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to