Wednesday 27 April 2016

JBoss Fuse: OSGI bundle deployment error ( 'json-jackson' could not be created)



JBoss Fuse: OSGI bundle deployment error ( 'json-jackson' could not be created)

During Jboss Fuse deployment ( of OSGI bundle) you may get errors at runtime. For example

java.lang.IllegalArgumentException: Data format 'json-jackson' could not be created. Ensure that the data format is valid and the associated Camel component is present on the classpath

This is because of any specific feature is not installed , in this case it is json-jackson. Search this specific feature in the karaf container executing 'features' command in Fuse CLI.

JBossFuse:karaf@root> features:list |grep camel-jackson
[uninstalled  ] [2.15.1.redhat-621084 ] camel-jackson


Solution: This clearly indicates that above feature is not installed. Install this feature as below.

JBossFuse:karaf@root> features:install camel-jackson

Now redeploy your application.