Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipse-dev] Fwd: Uses Conflict

> Hey,
>
>  
>
> I’m trying out Neon RC1 as target and am hitting a kind of strange uses conflict I cannot figure out. It looks like this:
>
>  
>
> !ENTRY com.wamas.platform.rest 4 0 2016-05-20 08:02:35.086
>
> !MESSAGE FrameworkEvent ERROR
>
> !STACK 

Hey,

 

I’m trying out Neon RC1 as target and am hitting a kind of strange uses conflict I cannot figure out. It looks like this:

 

!ENTRY com.wamas.platform.rest 4 0 2016-05-20 08:02:35.086

!MESSAGE FrameworkEvent ERROR

!STACK 0

org.osgi.framework.BundleException: Could not resolve module: com.wamas.platform.rest [41]

  Bundle was not resolved because of a uses contraint violation.

  org.osgi.service.resolver.ResolutionException: Uses constraint violation. Unable to resolve resource com.wamas.platform.rest [osgi.identity; osgi.identity="com.wamas.platform.rest"; type="osgi.bundle"; version:Version="5.5.3.qualifier"; singleton:="true"] because it is exposed to package 'javax.annotation' from resources org.eclipse.osgi [osgi.identity; osgi.identity="org.eclipse.osgi"; type="osgi.bundle"; version:Version="3.11.0.v20160427-2120"; singleton:="true"] and javax.annotation [osgi.identity; osgi.identity="javax.annotation"; type="osgi.bundle"; version:Version="1.2.0.v201602091430"] via two dependency chains.

 

Chain 1:

  com.wamas.platform.rest [osgi.identity; osgi.identity="com.wamas.platform.rest"; type="osgi.bundle"; version:Version="5.5.3.qualifier"; singleton:="true"]

    require: (osgi.wiring.bundle=org.eclipse.core.runtime)

     |

    provide: osgi.wiring.bundle: org.eclipse.core.runtime

  org.eclipse.osgi [osgi.identity; osgi.identity="org.eclipse.osgi"; type="osgi.bundle"; version:Version="3.11.0.v20160427-2120"; singleton:="true"]

 

Chain 2:

  com.wamas.platform.rest [osgi.identity; osgi.identity="com.wamas.platform.rest"; type="osgi.bundle"; version:Version="5.5.3.qualifier"; singleton:="true"]

    require: (&(osgi.wiring.bundle=org.glassfish.jersey.media.jersey-media-json-jackson)(bundle-version>=2.22.2))

     |

    provide: osgi.wiring.bundle; bundle-version:Version="2.22.2"; osgi.wiring.bundle="org.glassfish.jersey.media.jersey-media-json-jackson"

  org.glassfish.jersey.media.jersey-media-json-jackson [osgi.identity; osgi.identity="org.glassfish.jersey.media.jersey-media-json-jackson"; type="osgi.bundle"; version:Version="2.22.2"]

    import: (&(osgi.wiring.package=org.glassfish.jersey.internal.util)(&(version>=2.22.0)(!(version>=3.0.0))))

     |

    export: osgi.wiring.package=org.glassfish.jersey.internal.util; uses:=jersey.repackaged.com.google.common.base

  org.glassfish.jersey.core.jersey-common [osgi.identity; osgi.identity="org.glassfish.jersey.core.jersey-common"; type="osgi.bundle"; version:Version="2.22.2"]

    import: (&(osgi.wiring.package=jersey.repackaged.com.google.common.base)(&(version>=2.22.0)(!(version>=3.0.0))))

     |

    export: osgi.wiring.package=jersey.repackaged.com.google.common.base; uses:=javax.annotation

  org.glassfish.jersey.bundles.repackaged.jersey-guava [osgi.identity; osgi.identity="org.glassfish.jersey.bundles.repackaged.jersey-guava"; type="osgi.bundle"; version:Version="2.22.2"]

    import: (&(osgi.wiring.package=javax.annotation)(&(version>=1.2.0)(!(version>=2.0.0))))

     |

    export: osgi.wiring.package: javax.annotation

  javax.annotation [osgi.identity; osgi.identity="javax.annotation"; type="osgi.bundle"; version:Version="1.2.0.v201602091430"]

       at org.eclipse.osgi.container.Module.start(Module.java:444)

       at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1620)

       at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1599)

       at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1571)

       at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1514)

       at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)

       at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

       at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

 

I can understand chain 2. There /is/ a bundle called javax.annotation that exports javax.annotation (1.2.0). The problem for me is chain 1. It says that my bundle is exposed to javax.annotation from the org.eclipse.osgi bundle, but that bundle has no mention of anything like it. Any Idea what’s happening and how to resolve it?

 

Side note: In this case I’m using Neon as target, but Mars.2 as IDE, if that’d make any difference (don’t think so...) :)

 

Cheers, Thanks in advance,

Markus

 

--

Mit freundlichen Grüßen / Best regards

 

Markus Duft | Software Architect

SSI SCHÄFER | Salomon Automation GmbH | Friesachstraße 15 | 8114 Friesach bei Graz | Austria

Phone +43 3127 200-575 | Fax +43 3127 200-22

markus.duft@xxxxxxxxxxxxxxxx

Website | Blog | YouTube | Facebook

 

Salomon Automation GmbH | Friesachstrasse 15 | 8114 Friesach bei Graz | Austria
Registered Office: Friesach bei Graz | Commercial Register: 49324 K | VAT no. ATU28654300
Commercial Court: Landesgericht für Zivilrechtssachen Graz

Back to the top