You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2019/04/16 09:48:00 UTC

[jira] [Resolved] (CAMEL-13416) Please add camel-core-osgi to Camel Karaf feature repo

     [ https://issues.apache.org/jira/browse/CAMEL-13416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-13416.
---------------------------------
       Resolution: Fixed
         Assignee: Claus Ibsen
    Fix Version/s: 3.0.0-M3
                   3.0.0

In Camel 3.x the modules has been modularized and camel-core-osgi is installed as part of camel-core. For 2.x its as-is, where you need to install camel-blueprint

> Please add camel-core-osgi to Camel Karaf feature repo
> ------------------------------------------------------
>
>                 Key: CAMEL-13416
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13416
>             Project: Camel
>          Issue Type: Improvement
>          Components: karaf, osgi
>    Affects Versions: 2.23.1
>            Reporter: Kamil
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.0.0, 3.0.0-M3
>
>
> I was following this documentation [http://camel.apache.org/karaf.html] in order to make Camel work in Karaf.
> Many tutorials point to this configuration:
> {code:java}
> @Override
> public void start(final BundleContext bundleContext) throws Exception {
>   camelContext = new OsgiDefaultCamelContext(bundleContext);
>   registrationCamelContext = bundleContext.registerService(CamelContext.class, camelContext, null);
>   camelContext.start();
> }
> {code}
> Unfortunately, when I install Camel in karaf:
> {code:java}
> karaf@root> feature:repo-add camel 2.23.1
> {code}
> only camel-core can be installed, while camel-core-osgi is missing.
> Unfortunately camel-core contains only 
> {code:java}
> DefaultCamelContext{code}
> which causes classpath problems in Karaf. For example I import camel-http4, but I get:
> {code:java}
> Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: http4://my.site due to: No component found with scheme: http4
> {code}
> or I import camel-jackson, but I get:
> {code:java}
> Caused by: 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
> {code}
> The solution is to use:
> {code:java}
> OsgiDefaultCamelContext{code}
> which is located in camel-core-osgi, which is unavailable in Camel Karaf repo.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)