Hi,

I tried deploying some of my existing Camel routes into an OSGi enviroment
(Camel 1.3.0 / ServiceMix 4 Kernel / Apache Felix) and I noticed that all of
the TypeConverters stopped working, even the basic ones (e.g. byte[] to
String). I found this error in the log:

18:26:04,982 | ERROR | ExtenderThread-4 | ResolverUtil |
g.apache.camel.util.ResolverUtil  364 | Could not search jar file
'/org/apache/camel/converter' for classes matching criteria: annotated with
@Converterdue to an IOException: /org/apache/camel/converter (No such file
or directory)

I guess ResolverUtil tries to find and open the .jar file but gets confused
if the package is in an OSGi bundle. I checked the camel-osgi module, but it
only seems to add support for searching for Camel components in active OSGi
bundles, and not TypeConverters.

Is there a way to fix this?

Thanks,
Ivan
-- 
View this message in context: 
http://www.nabble.com/Problem-with-TypeConverters-in-OSGi-tp17517233s22882p17517233.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to