Uploaded image for project: 'ServiceMix 4'
  1. ServiceMix 4
  2. SMX4-1471

'org.w3c.dom' exposed by org.apache.servicemix.specs.jaxp-api-1.4 conflicts with org.apache.felix.framework

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • Bundles, specs
    • None
    • <groupId>org.apache.felix</groupId>
      <artifactId>org.apache.felix.framework</artifactId>
      <version>4.2.1</version>

    Description

      I'm trying to use org.apache.servicemix.bundles.freemarker/2.3.19_1 that requires packages that is only exposed by org.apache.servicemix.specs.jaxp-api.
      I'm getting this error:

      ERROR: Bundle org.apache.servicemix.bundles.freemarker [16] Error starting mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker/2.3.19_1 (org.osgi.framework.BundleException: Uses constraint violation. Unable to resolve bundle revision org.apache.servicemix.bundles.freemarker [16.0] because it is exposed to package 'org.w3c.dom' from bundle revisions org.apache.servicemix.specs.jaxp-api-1.4 [17.0] and org.apache.felix.framework [0] via two dependency chains.

      Chain 1:
      org.apache.servicemix.bundles.freemarker [16.0]
      import: (osgi.wiring.package=org.w3c.dom)

      export: osgi.wiring.package=org.w3c.dom
      org.apache.servicemix.specs.jaxp-api-1.4 [17.0]

      Chain 2:
      org.apache.servicemix.bundles.freemarker [16.0]
      import: (osgi.wiring.package=javax.swing.tree)

      export: osgi.wiring.package=javax.swing.tree; uses:=org.w3c.dom
      export: osgi.wiring.package=org.w3c.dom
      org.apache.felix.framework [0])

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            cvgaviao Cristiano GaviĆ£o
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: