Skip to main content

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

I think you should post that question to the Equinox mailing list.

IIRC javax.annotation is provided by the JRE as of Java 1.7 and we
removed the javax.annotation bundle from Eclipse. To remain compatible
Equinox is reexporting the JRE bundle with the 1.2 version. This was
supposed to work without issues but the Equinox people might fill in
the details why is is causing issues for you.

Best regards, Lars

On Sat, May 21, 2016 at 11:39 AM, Duft Markus
<Markus.Duft@xxxxxxxxxxxxxxxx> wrote:
>> 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
>
> _______________________________________________
> eclipse-dev mailing list
> eclipse-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/eclipse-dev



-- 
Eclipse Platform UI and e4 project co-lead
CEO vogella GmbH

Haindaalwisch 17a, 22395 Hamburg
Amtsgericht Hamburg: HRB 127058
Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel
USt-IdNr.: DE284122352
Fax (040) 5247 6322, Email: lars.vogel@xxxxxxxxxxx, Web: http://www.vogella.com


Back to the top