Running 'feature:install camel-juel' fails due to missing requirement

Talend Version       6.4.1

Summary

 
Additional Versions  
Product ESB
Component Runtime
Problem Description

Running the command feature:install camel-juel fails with the following error:

Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=camel-juel; type=karaf.feature; version="[2.17.6,2.17.6]"; filter:="(&(osgi.identity=camel-juel)(type=karaf.feature)(version>=2.17.6)(version<=2.17.6))" [caused by: Unable to resolve camel-juel/2.17.6: missing requirement [camel-juel/2.17.6] osgi.identity; osgi.identity=org.apache.camel.camel-juel; type=osgi.bundle; version="[2.17.6,2.17.6]"; resolution:=mandatory [caused by: Unable to resolve org.apache.camel.camel-juel/2.17.6: missing requirement [org.apache.camel.camel-juel/2.17.6] osgi.wiring.package; filter:="(&(osgi.wiring.package=javax.el)(version>=2.0.0)(!(version>=3.0.0)))"]] 
Problem root cause Known defect
Solution or Workaround

Upgrade to version 7.0.1 (or above).

 

Alternatively, a workaround is to edit the Runtime Camel feature definition to trigger proper dependency resolution on feature install:

  1. Open the file RUNTIME-HOME/system/org/apache/camel/karaf/apache-camel/2.17.6/apache-camel-2.17.6-features.xml in a text editor.
  2. Find the beginning of the feature declaration for camel-juel at line 963.
  3. Modify the feature declaration by adding the first two bundle declarations as shown below:

    <feature name='camel-juel' version='2.17.6' resolver='(obr)' start-level='50'> 
    <feature version='2.17.6'>camel-core</feature> 
    <feature>war</feature> 
    <bundle dependency='true'>mvn:javax.el/javax.el-api/2.2.5</bundle> 
    <bundle dependency='true'>mvn:org.glassfish.web/javax.el/2.2.5</bundle> 
    <bundle dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.juel/2.1.3_1</bundle>
    <bundle>mvn:org.apache.camel/camel-juel/2.17.6</bundle> 
    </feature> 
  4. Save and restart the runtime.

 

JIRA ticket number  
Version history
Revision #:
4 of 4
Last update:
‎05-10-2018 03:20 PM
Updated by:
 
Labels (3)