Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16668

camel-dozer has conflicting OSGi javax.el bundles

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.9.0, 3.10.0
    • Fix Version/s: 3.11.0
    • Component/s: camel-dozer, karaf, osgi
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Hello,

      feature camel-dozer uses both these bundles:

      <bundle dependency="true">mvn:javax.el/javax.el-api/3.0.0</bundle><bundle dependency="true">mvn:org.glassfish/javax.el/3.0.0</bundle>

      These bundles both export same packages:

      javax.el
      javax.el.* 

      And leads to javax.el-api restart whenever we start/stop the feature (and therefore can lead to many other features/bundles depending on this bundle/packages).

       

      One fix would be to override headers of glassfish so it exports only com.sun.el.* packages?

      <bundle dependency='true'>wrap:mvn:org.glassfish/javax.el/3.0.0$overwrite=merge&amp;Export-Package=com.sun.el;version=3.0.0,com.sun.el.*;version=3.0.0</bundle> 

       or the inverse, don't export javax.el.*

      <bundle dependency='true'>wrap:mvn:org.glassfish/javax.el/3.0.0$overwrite=merge&amp;Export-Package=!javax.el,!javax.el.*,*</bundle> 

        Attachments

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              jgreffe Julien Greffe
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: