camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: OSGI axis 1.4 jar ?
Date Tue, 26 Feb 2013 09:29:51 GMT
On Tue, Feb 26, 2013 at 8:47 AM, sarfaraj <> wrote:
> Yes I am doing the same. Used a Java Bean to integrate with Axis from regular
> Java code
> But I got java.lang.NoClassDefFoundError: Could not initialize class
> org.apache.axis.client.AxisClient
> Even if I deployed axis.osgi-1.4.jar on servicemix. Also I don't see any
> reference issue on Apache Karaf Web Console for axis jar.
> FYI : I can see AxisClient.class file in axis.osgi-1.4.jar.
> And The project running using camel:run. But don't know why its not running
> on servicemix.

That another problem. Not all JARs in the world is OSGi compliant.
And it can be difficult / hard to get these JARs working with OSGi.

If you use Fuse ESB Enterprise which provides FAB out of the box.
Then that allow you to run non OSGi JARs much easier.

I wrote a blog post introducing FAB here with links to further material

Basically with FAB you develop as if there is no OSGi and package your Maven
project as a plain <packaging>jar</packaging> and just have your Maven
dependencies as usual.

Then deploy your JAR in Fuse ESB Enterprise using the FAB handler.
Which is the default handler when dropping a plain JAR in the deploy directory.

Or from the shell by prefixing the install command with fab:

Fuse ESB Enterprise has examples in the examples directory, that is
deployable using FAB.

FAB can be installed in Apache ServiceMix but its not so easy currently.
In the future this may become much easier as FAB and Fuse Fabric is in
the process of becoming donated to Apache as a sub project at Apache ServiceMix.

For getting Axis 1.4 to work with ServiceMix 4.4, then thats much more tricky.

> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
FuseSource is now part of Red Hat
Twitter: davsclaus
Author of Camel in Action:

View raw message