On Tue, Feb 26, 2013 at 8:47 AM, sarfaraj <sarfarajsay...@gmail.com> 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
http://www.davsclaus.com/2012/08/osgi-deployment-made-easy-with-fab.html

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: 
> http://camel.465427.n5.nabble.com/OSGI-axis-1-4-jar-tp5728065p5728151.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to