11 Replies Latest reply on Jun 12, 2009 10:49 AM by Bengt Rodehav

    No camel converters found in Servicemix 4.1

    Bengt Rodehav Newbie

      I have great problems using camel in combination with Servicemix 4.1.0.0. The actual routes work but no converters are found. I get this in the Servicemix log:

       

      09:19:32,156 | DEBUG | Component@b243d7 | ResolverUtil                     | g.apache.camel.util.ResolverUtil  261 |

       

      Searching for annotations of org.apache.camel.Converter in packages:

      09:19:32,156 | DEBUG | Component@b243d7 | ResolverUtil                     | g.apache.camel.util.ResolverUtil  291 | Using

       

      only regular classloaders

      09:19:32,156 | DEBUG | Component@b243d7 | ResolverUtil                     | g.apache.camel.util.ResolverUtil  291 | Using

       

      only regular classloaders

      09:19:32,156 | DEBUG | Component@b243d7 | ResolverUtil                     | g.apache.camel.util.ResolverUtil  271 | Found:

       

      []

       

       

      It seems like the right packages are searched but no converters are found. I have custom converters in org.apache.camel.fix  but the standard converters in org.apache.camel.converter are not found either. Previously in the log I get the following:

       

      09:13:09,050 | DEBUG | lixDispatchQueue | camel-core                       | ?                                   ? |

       

      BundleEvent STARTED

      09:13:09,050 | DEBUG | Thread-8         | Activator                        | org.apache.camel.osgi.Activator   169 | checking

       

      existing bundles

      09:13:09,143 | DEBUG | Thread-8         | Activator                        | org.apache.camel.osgi.Activator    96 | Found

       

      entry: META-INF/services/org/apache/camel/component/bean in bundle org.apache.camel.camel-core

      09:13:09,143 | DEBUG | Thread-8         | Activator                        | org.apache.camel.osgi.Activator    96 | Found

       

      entry: META-INF/services/org/apache/camel/component/dataset in bundle org.apache.camel.camel-core

      09:13:09,143 | DEBUG | Thread-8         | Activator                        | org.apache.camel.osgi.Activator    96 | Found

       

      entry: META-INF/services/org/apache/camel/component/direct in bundle org.apache.camel.camel-core

      09:13:09,143 | DEBUG | Thread-8         | Activator                        | org.apache.camel.osgi.Activator    96 | Found

       

      entry: META-INF/services/org/apache/camel/component/file in bundle org.apache.camel.camel-core

      09:13:09,143 | DEBUG | Thread-8         | Activator                        | org.apache.camel.osgi.Activator    96 | Found

       

      entry: META-INF/services/org/apache/camel/component/list in bundle org.apache.camel.camel-core

      09:13:09,143 | DEBUG | Thread-8         | Activator                        | org.apache.camel.osgi.Activator    96 | Found

       

      entry: META-INF/services/org/apache/camel/component/log in bundle org.apache.camel.camel-core

      09:13:09,143 | DEBUG | Thread-8         | Activator                        | org.apache.camel.osgi.Activator    96 | Found

       

      entry: META-INF/services/org/apache/camel/component/mock in bundle org.apache.camel.camel-core

      09:13:09,143 | DEBUG | Thread-8         | Activator                        | org.apache.camel.osgi.Activator    96 | Found

       

      entry: META-INF/services/org/apache/camel/component/pojo in bundle org.apache.camel.camel-core

      09:13:09,143 | DEBUG | Thread-8         | Activator                        | org.apache.camel.osgi.Activator    96 | Found

       

      entry: META-INF/services/org/apache/camel/component/queue in bundle org.apache.camel.camel-core

      09:13:09,143 | DEBUG | Thread-8         | Activator                        | org.apache.camel.osgi.Activator    96 | Found

       

      entry: META-INF/services/org/apache/camel/component/ref in bundle org.apache.camel.camel-core

      09:13:09,143 | DEBUG | Thread-8         | Activator                        | org.apache.camel.osgi.Activator    96 | Found

       

      entry: META-INF/services/org/apache/camel/component/seda in bundle org.apache.camel.camel-core

      09:13:09,143 | DEBUG | Thread-8         | Activator                        | org.apache.camel.osgi.Activator    96 | Found

       

      entry: META-INF/services/org/apache/camel/component/timer in bundle org.apache.camel.camel-core

      09:13:09,143 | DEBUG | Thread-8         | Activator                        | org.apache.camel.osgi.Activator    96 | Found

       

      entry: META-INF/services/org/apache/camel/component/vm in bundle org.apache.camel.camel-core

      09:13:09,159 | DEBUG | Thread-8         | Activator                        | org.apache.camel.osgi.Activator    96 | Found

       

      entry: META-INF/services/org/apache/camel/language/bean in bundle org.apache.camel.camel-core

      09:13:09,159 | DEBUG | Thread-8         | Activator                        | org.apache.camel.osgi.Activator    96 | Found

       

      entry: META-INF/services/org/apache/camel/language/constant in bundle org.apache.camel.camel-core

      09:13:09,159 | DEBUG | Thread-8         | Activator                        | org.apache.camel.osgi.Activator    96 | Found

       

      entry: META-INF/services/org/apache/camel/language/file in bundle org.apache.camel.camel-core

      09:13:09,159 | DEBUG | Thread-8         | Activator                        | org.apache.camel.osgi.Activator    96 | Found

       

      entry: META-INF/services/org/apache/camel/language/header in bundle org.apache.camel.camel-core

      09:13:09,159 | DEBUG | Thread-8         | Activator                        | org.apache.camel.osgi.Activator    96 | Found

       

      entry: META-INF/services/org/apache/camel/language/simple in bundle org.apache.camel.camel-core

      09:13:09,159 | DEBUG | Thread-8         | Activator                        | org.apache.camel.osgi.Activator    96 | Found

       

      entry: META-INF/services/org/apache/camel/language/xpath in bundle org.apache.camel.camel-core

      09:13:09,159 | DEBUG | Thread-8         | Activator                        | org.apache.camel.osgi.Activator   121 | Found

       

      entry: bundle://70.0:1/META-INF/services/org/apache/camel/TypeConverter in bundle org.apache.camel.camel-core

      09:13:09,159 | DEBUG | Thread-8         | Activator                        | org.apache.camel.osgi.Activator    96 | Found

       

      entry: META-INF/services/org/apache/camel/component/spring-event in bundle org.apache.camel.camel-spring

      09:13:09,159 | DEBUG | Thread-8         | Activator                        | org.apache.camel.osgi.Activator    96 | Found

       

      entry: META-INF/services/org/apache/camel/component/test in bundle org.apache.camel.camel-spring

      09:13:09,159 | DEBUG | Thread-8         | Activator                        | org.apache.camel.osgi.Activator    96 | Found

       

      entry: META-INF/services/org/apache/camel/component/validator in bundle org.apache.camel.camel-spring

      09:13:09,159 | DEBUG | Thread-8         | Activator                        | org.apache.camel.osgi.Activator    96 | Found

       

      entry: META-INF/services/org/apache/camel/component/xslt in bundle org.apache.camel.camel-spring

      09:13:09,159 | DEBUG | Thread-8         | Activator                        | org.apache.camel.osgi.Activator   121 | Found

       

      entry: bundle://72.0:1/META-INF/services/org/apache/camel/TypeConverter in bundle org.apache.camel.camel-spring

      09:13:09,159 | DEBUG | Thread-8         | Activator                        | org.apache.camel.osgi.Activator   179 | actived

       

      Here it looks like the correct packages are found.

       

      What do I need to do in order to find converters in other bundles than my own (the standard converters in camel-core and my custom converters in another bundle)? I have a META-INF/spring/beans.xml that instantiates a bean implementing InitilizingBean and DisposableBean. In the afterPropertiesSet() method I create the route and in the destroy() method I stop the route. The route itself works but no converters are found.

       

      If I run the same code outside of Servicemix (starting the route in a main() function) - everything works fine.

       

      /Bengt