[
https://issues.apache.org/jira/browse/SMX4-1471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13667430#comment-13667430
]
Freeman Fang commented on SMX4-1471:
------------------------------------
Hi,
Ok, this is't a servicemix issue then.
Servicemix just wrap a bundle and that bundle is valid in this case. There are
always bundles export same packages and you need take care of how to use it.
That said, you can endorse jaxp-api bundle or edit felix, to comment out
org.w3c.dom from system bundle 0.
Freeman
> 'org.w3c.dom' exposed by org.apache.servicemix.specs.jaxp-api-1.4 conflicts
> with org.apache.felix.framework
> -----------------------------------------------------------------------------------------------------------
>
> Key: SMX4-1471
> URL: https://issues.apache.org/jira/browse/SMX4-1471
> Project: ServiceMix 4
> Issue Type: Bug
> Components: Bundles, specs
> Environment: <groupId>org.apache.felix</groupId>
> <artifactId>org.apache.felix.framework</artifactId>
> <version>4.2.1</version>
>
> Reporter: Cristiano Gavião
> Assignee: Freeman Fang
>
> 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])
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira