Spring DM OSGI Extender deployment error in JBoss Fuse

Solution Verified - Updated -

Issue

org.osgi.service.resolver.ResolutionException: Uses constraint violation. Unable to resolve resource org.springframework.osgi.extender [org.springframework.osgi.extender/1.2.1] because it exports package 'org.springframework.osgi.extender' and is also exposed to it from resource org.springframework.osgi.extender [org.springframework.osgi.extender/1.2.1] via the following dependency chain:

  org.springframework.osgi.extender [org.springframework.osgi.extender/1.2.1]
    import: (&(osgi.wiring.package=org.springframework.osgi.extensions.annotation)(version>=1.2.1)(version<=1.2.1))
     |
    export: osgi.wiring.package=org.springframework.osgi.extensions.annotation; uses:=org.springframework.osgi.extender
  org.springframework.osgi.extensions.annotations [org.springframework.osgi.extensions.annotations/1.2.1]
    import: (&(osgi.wiring.package=org.springframework.osgi.extender)(version>=1.2.1)(version<=1.2.1))
     |
    export: osgi.wiring.package: org.springframework.osgi.extender
  org.springframework.osgi.extender [org.springframework.osgi.extender/1.2.1]
    at org.apache.felix.resolver.ResolverImpl.checkDynamicPackageSpaceConsistency(ResolverImpl.java:1188)[82:io.fabric8.fabric-agent:1.2.0.redhat-133]
    at org.apache.felix.resolver.ResolverImpl.checkPackageSpaceConsistency(ResolverImpl.java:1086)[82:io.fabric8.fabric-agent:1.2.0.redhat-133]
    at org.apache.felix.resolver.ResolverImpl.checkDynamicPackageSpaceConsistency(ResolverImpl.java:1402)[82:io.fabric8.fabric-agent:1.2.0.redhat-133]
    at org.apache.felix.resolver.ResolverImpl.checkPackageSpaceConsistency(ResolverImpl.java:1086)[82:io.fabric8.fabric-agent:1.2.0.redhat-133]
    at org.apache.felix.resolver.ResolverImpl.checkDynamicPackageSpaceConsistency(ResolverImpl.java:1402)[82:io.fabric8.fabric-agent:1.2.0.redhat-133]
    at org.apache.felix.resolver.ResolverImpl.checkPackageSpaceConsistency(ResolverImpl.java:1086)[82:io.fabric8.fabric-agent:1.2.0.redhat-133]
  • This only occurs in a Fabric Environment. This works fine in Fuse standalone container.

Environment

  • Red Hat JBoss Fuse
    • 6.x
  • Spring-DM

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content