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

camel-dozer has conflicting OSGi javax.el bundles

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.9.0, 3.10.0
    • 3.11.0
    • camel-dozer, karaf, osgi
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: