[ 
https://issues.apache.org/jira/browse/DIRSTUDIO-1068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14738783#comment-14738783
 ] 

Richard Evans commented on DIRSTUDIO-1068:
------------------------------------------

With Eclipse Mars 4.5 GA, I see a slightly different error:

Caused by: java.lang.LinkageError: loader constraint violation: when resolving 
method 
"org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;"
 the class loader (instance of 
org/eclipse/osgi/internal/loader/EquinoxClassLoader) of the current class, 
org/slf4j/LoggerFactory, and the class loader (instance of 
org/eclipse/osgi/internal/loader/EquinoxClassLoader) for the method's defining 
class, org/slf4j/impl/StaticLoggerBinder, have different Class objects for the 
type org/slf4j/ILoggerFactory used in the signature
        at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:336)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:284)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:305)
        at org.apache.directory.api.ldap.model.name.Dn.<clinit>(Dn.java:72)
        at 
org.apache.directory.studio.ldapbrowser.core.model.impl.RootDSE.<init>(RootDSE.java:57)
        at 
org.apache.directory.studio.ldapbrowser.core.model.impl.BrowserConnection.<init>(BrowserConnection.java:129)
        at 
org.apache.directory.studio.ldapbrowser.core.BrowserConnectionManager.loadBrowserConnections(BrowserConnectionManager.java:442)
        at 
org.apache.directory.studio.ldapbrowser.core.BrowserConnectionManager.<init>(BrowserConnectionManager.java:89)
        at 
org.apache.directory.studio.ldapbrowser.core.BrowserCorePlugin.start(BrowserCorePlugin.java:82)
        at 
org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
        at 
org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
        ... 154 more

I assume this has the same root cause?

> Bundles are not resolved on Eclipse Mars
> ----------------------------------------
>
>                 Key: DIRSTUDIO-1068
>                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-1068
>             Project: Directory Studio
>          Issue Type: Bug
>          Components: studio-updatesite
>            Reporter: Robert Munteanu
>         Attachments: DIRSTUDIO-1068.patch, eclipse-mars-error.log
>
>
> I have an Eclipse Mars install and installed Directory Studio using the 
> Eclipse Marketplace.
> After the installation is performed I have multiple error FrameworkEvents 
> logged regarding bundle installations. All of them bubble down to a uses 
> constraint violation.
> {noformat} Bundle was not resolved because of a uses contraint violation.
>   org.osgi.service.resolver.ResolutionException: Uses constraint violation. 
> Unable to resolve resource slf4j.api [osgi.identity; 
> osgi.identity="slf4j.api"; type="osgi.bundle"; version:Version="1.7.10"] 
> because it exports package 'org.slf4j.helpers' and is also exposed to it from 
> resource org.slf4j.api [osgi.identity; osgi.identity="org.slf4j.api"; 
> type="osgi.bundle"; version:Version="1.7.2.v20121108-1250"] via the following 
> dependency chain:
>   slf4j.api [osgi.identity; osgi.identity="slf4j.api"; type="osgi.bundle"; 
> version:Version="1.7.10"]
>     import: (&(osgi.wiring.package=org.slf4j.impl)(version>=1.6.0))
>      |
>     export: osgi.wiring.package=org.slf4j.impl; uses:=null
>   org.slf4j.api [osgi.identity; osgi.identity="org.slf4j.api"; 
> type="osgi.bundle"; version:Version="1.7.2.v20121108-1250"]
>     require: 
> (&(osgi.wiring.bundle=ch.qos.logback.classic)(&(bundle-version>=1.0.7)(!(bundle-version>=1.0.8))))
>      |
>     provide: osgi.wiring.bundle; 
> bundle-version:Version="1.0.7.v20121108-1250"; 
> osgi.wiring.bundle="ch.qos.logback.classic"
>   ch.qos.logback.classic [osgi.identity; 
> osgi.identity="ch.qos.logback.classic"; type="osgi.bundle"; 
> version:Version="1.0.7.v20121108-1250"]
>     import: (&(osgi.wiring.package=org.slf4j.helpers)(version>=1.7.0))
>      |{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to