Hi,

I think that you still have Camel 2.7.0 bundle present.

I advice to update the etc/org.apache.karaf.features.cfg file to update the 
featuresRepositories and featuresBoot with Camel 2.7.2.

Regards
JB




On Fri 10/06/11 08:50 , ychawla  wrote::

Hello All,
I am trying to get Camel 2.7.2 running in ServiceMix 4.3.0.  I ran a series
of OSGi installs:

osgi:install -s mvn:org.slf4j/log4j-over-slf4j/1.6.1
osgi:install -s mvn:org.slf4j/slf4j-api/1.6.1
osgi:install -s mvn:org.apache.camel/camel-core/2.7.2
osgi:install -s mvn:org.apache.camel/camel-cxf/2.7.2
osgi:install -s mvn:org.apache.felix/org.apache.felix.eventadmin/

Once I try to start my camel OSGi bundle, I get the following error:

Exception in thread "SpringOsgiExtenderThread-18"
org.apache.camel.RuntimeCamelException: java.lang.ClassCastException:
org.apache.camel.impl.osgi.Activator$BundleTypeConverterLoader cannot be
cast to org.apache.camel.spi.TypeConverterLoader
        at
org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1139)
        at
org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCamelContext.java:971)
        at
org.apache.camel.impl.DefaultCamelContext.getTypeConverterRegistry(DefaultCamelContext.java:986)
        at
org.apache.camel.impl.DefaultCamelContext.forceLazyInitialization(DefaultCamelContext.java:1911)
        at
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1403)
        at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1321)
        at
org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:164)
        at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)
        at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)
        at
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1299)
        at
org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:203)
        at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:101)
        at
org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:237)
        at
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
        at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
        at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
        at
org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)
        at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)
        at
org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
        at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
        at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)
        at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.ClassCastException:
org.apache.camel.impl.osgi.Activator$BundleTypeConverterLoader cannot be
cast to org.apache.camel.spi.TypeConverterLoader
        at
org.apache.camel.core.osgi.OsgiTypeConverter.addingService(OsgiTypeConverter.java:53)
        at
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:896)
        at
org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261)
        at
org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:184)
        at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:339)
        at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:273)
        at
org.apache.camel.core.osgi.OsgiTypeConverter.doStart(OsgiTypeConverter.java:71)
        at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)
        at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)
        at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52)
        at
org.apache.camel.impl.DefaultCamelContext.startServices(DefaultCamelContext.java:1593)
        at
org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:884)
        at
org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCamelContext.java:969)

Any ideas?  

Thanks,
Yogesh

--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-2-7-2-in-ServiceMix-4-3-0-tp4475368p4475368.html
Sent from the Camel - Users mailing list archive at Nabble.com.



Reply via email to