camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Camel netty - Netty ChannelBuffer classloading issue in Karaf 2.2.9
Date Sun, 30 Sep 2012 09:59:31 GMT
Hi

OSGi is very picky about the package imports|exports for the OGSi bundles.

I suggest to look at what packages your bundle import|export. And make
sure it imports those Netty packages which is needed for using Netty
and as well for that custom codec.



On Fri, Sep 28, 2012 at 5:40 PM, declancox <declan.cox@gmail.com> wrote:
> Hi,
> I have a simple camel route using the netty component (Karaf 2.2.9, Camel
> 2.10.0 an Netty version 3.5.1.Final). I construct the CamelContext
> programmatically to take advantage of the OSGi Config Admin Managed Service
> factory  (see my
> previous post
> <http://camel.465427.n5.nabble.com/Using-ManagedServiceFactory-to-dynamically-deploy-routes-td5719969.html>
> for details).
> The route is similar to the following:
>
>
> really quite simple.
>
> I can run this in a standalone fashion and everything works well enough,
> however when I deploy to Karaf I get issues when I send messages to the
> netty endpoint (the routes start up fine).
>
> Here is an excerpt from the stacktrace:
>
>
>
> So it seems that for some reason the Netty ChannelBuffer class fails to get
> loaded (the first exception is a class load attempt) and hence the ensuing
> NoClassDefFoundError. I have no clue why this is happening and the closest
> related post I could find to it was  here
> <https://community.jboss.org/thread/200310?_sscc=t>  .
>
> Any help would be really appreciated,
>
> Thanks,
> Declan
>
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-netty-Netty-ChannelBuffer-classloading-issue-in-Karaf-2-2-9-tp5720209.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: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message