Access Keys:
Skip to content (Access Key - 0)
community header community tab mule tab ibeans tab muleforge tab

Using the Latest Release

Currently the CXF connector version works with

  • Mule 1.4.3+
  • CXF 2.0.5+

A version for Mule 2.x is part of the Mule 2.x codebase.

With Mule Standalone

If you are running CXF with standalone Mule, you must be aware of several important classpath requirements. Mule comes bundled with Axis which implements older versions of the Java web services standards and with XFire which bundles some older libraries. Several libraries must be removed for CXF to correctly work.

First, you'll want to download the CXF/Mule transport distribution. This includes the necessary libraries to run CXF inside Mule. You'll need to copy the included libraries to your lib/user directory.

Next you'll need to make the following changes to the Mule lib/user directory

  • Remove axis-wsdl4j.jar. CXF comes bundled with a newer version of this jar: wsdl4j-1.6.1.jar.
  • Remove geronimo-saaj.jar. CXF uses the Sun SAAJ implementation which implements the newer SAAJ standard required for JAX-WS.
  • Remove XmlSchema.jar and use the XmlSchema-1.2.jar bundled with CXF. This contains several important fixes which are required for WSDL generation to correctly work.

With Maven

First you'll need to add the CXF and Muleforge repositories to your Maven POM:

  <repositories>
    <repository>
      <id>apache-incubating</id>
      <name>Apache Incubating Repository</name>
      <url>http://people.apache.org/repo/m2-incubating-repository/</url>
    </repository>
    <repository>
      <id>muleforge</id>
      <name>MuleForge Repository</name>
      <url>http://repository.muleforge.org</url>
    </repository>
  </repositories>

Then, you'll just need to declare a dependency on the CXF connector in your POM:

<dependencies>
  <dependency>
    <groupId>org.mule.transports</groupId>
    <artifactId>mule-transport-cxf</artifactId>
    <version>1.1</version>
  </dependency>
</dependencies>

Without Maven:

You'll need to add the CXF jars to your classpath. These can be found inside the CXF distributions, here.

You'll also need to add the CXF connector jar to your classpath. The latest version is located here.

Using SNAPSHOTs

First you'll need to add the CXF and Muleforge repositories to your Maven POM:

  <repositories>
    <repository>
      <id>apache-snapshots</id>
      <name>Apache SNAPSHOT Repository</name>
      <url>http://people.apache.org/repo/m2-snapshot-repository/</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
    <repository>
      <id>muleforge-snapshots</id>
      <name>Apache SNAPSHOT Repository</name>
      <url>http://snapshots.repository.muleforge.org</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
    <repository>
      <id>codehaus-snapshots</id>
      <name>Apache SNAPSHOT Repository</name>
      <url>http://snapshots.repository.codehaus.org/</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
    <repository>
      <id>apache-incubating</id>
      <name>Apache Incubating Repository</name>
      <url>http://people.apache.org/repo/m2-incubating-repository/</url>
    </repository>
  </repositories>

Then, you'll just need to declare a dependency on the CXF connector in your POM:

<dependencies>
  <dependency>
    <groupId>org.mule.transports</groupId>
    <artifactId>mule-transport-cxf</artifactId>
    <version>1.1-SNAPSHOT</version>
  </dependency>
</dependencies>
Adaptavist Theme Builder (3.3.3-conf210) Powered by Atlassian Confluence 2.10, the Enterprise Wiki.
Free theme builder license