Camel Development with red hat Jboss Fuse elab - 8 REST DSL Lab

Latest response

Error executing Camel Development with red hat Jboss Fuse elab - 8 REST DSL Lab

on step 2.4. Deploy application to JBoss Fuse
I get the follwing error message:
Error executing command: Error installing bundles:
Unable to start bundle
file:/home/fabricads/Dev/Projects/camel-labs-0.7-solution/8_REST_DSL/routing/target/routing-1.0.jar:
Unresolved constraint in bundle fuse-lab [275]: Unable to resolve 275.0:
missing requirement [275.0] osgi.wiring.package;
(&(osgi.wiring.package=org.apache.camel.component.jackson)(version>=2.15.0)(!(version>=3.0.0)))

how can i solve?

Responses

The Karaf container is telling you that you have a missing dependency: the camel-jackson component is not installed in the container, but you need it for your demo. You can install it quite easily using the features:install command as follows:

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

This kind of error message is quite common in the context of OSGi. If you forget to add a dependency to the container, OSGi is unable to finish wiring up your bundle, and you get an error message like the one above (OSGi does not attempt to install missing dependencies automatically). If you are lucky and the dependency is already packaged as a Karaf feature, it is relatively easy to fix the problem with the 'features:install' command. Sometimes, though, you might have to do a bit of searching to find a missing bundle.

I also have an error with this REST DSL Lab, but on step 3 where i need to make some PUT request to http://localhost:9200/blog/XXXX, but i get a "Connection refused" error

Any ideas on how can I solve this?

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.