Which version of ServiceMix are you using?
For the ServicemMix 4.0.x , we don't support the coexistence of Camel 1.x and Camel 2.0 due to the version conflict.
From the stack trace I guess there are some camel 1.x bundle install, can you try to uninstall them before you install Camel 2.0 ?
Well, it seems Camel 1.x came with ServiceMix 4.0 because I download same from Fuse website.
I have uninstall camel-core, camel-osgi, camel-spring from the osgi lists in servicemix but I can still see (in the features list) camel is installed - even though camel was not listed in the osgi bundles available.
I tried to install camel from fuse repository (install -s mvn:org.apache.camel/camel-core/2.x-fuse-SNAPSHOT) but its not installing because it requires a bundle. See err below:
ERROR CommandLineExecutionFailed: org.apache.geronimo.gshell.command.CommandExce
ption: org.osgi.framework.BundleException: Unresolved constraint in bundle 170:
How do I upgrade the current 1.6 version to 2.0?
Edited by: lekkie on Nov 19, 2009 11:47 AM
You gotta install this jar as well
Its required by Camel 2.1. However in pure Camel 2.0 it should not be required.
And I believe its provided out of the box in the SMX 4.1 release as SMX itself also leverages it.
And as nijiang writes. SMX 4.0 does not support Camel 2.0.
This has been resolved.
Run this to resolve
install -s mvn:org.fusesource.commonman/commons-management/1.0
Just a quick NOTE.
As you replace the camel version of SMX 4.0 with 2.0, you will face an issue that servicemix-camel component will not work any more.
That is because that version of servicemix-camel component still use Camel 1.x.
How can I upgrade it to the 2.0 version, or is there a Fuse ESB version that has camel 2.0 innit?