Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » RCP, slf4j and equinox.ds?
RCP, slf4j and equinox.ds? [message #549861] Wed, 28 July 2010 09:15
Kristian Rink is currently offline Kristian RinkFriend
Messages: 36
Registered: July 2009

having a strange situation to deal with, right now: As most of our
(non-Eclipse/OSGi based) Java applications make massive use of slf4j, I
wanted to try the same in an Eclipse RCP application... and failed: In
our RCP app, we also make use of OSGi declarative services (using
equinox.ds bundle), and I have a service in a bundle which depends upon
slf4j-api. The application configuration, as it is supposed to be,
contains both slf4j-api and ch.logback bundles. Generally, it seems to
work, however as soon as the application (runtime?) tries to start the
dynamic service declared in this special bundle, I get an error like

Caused by: java.lang.ClassNotFoundException:
org.slf4j.impl.StaticLoggerBinder at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(
at java.lang.ClassLoader.loadClass( ... 82 more

.... basically telling me that, while starting the service, there is no
slf4j logger implementation in classpath. Oddly enough (not that this
is a really desirable solution), this also does happen while having the
bundle containing the service explicitely depend upon some slf4j
implementation module. So to ask: Am I missing something here? Is
someone eventually using a similar combination of libraries and knows
to provide a few hints how to get out of this?

TIA and all the best,
Previous Topic:runaction introURL in 3.5.2 to support commands instead of actions?
Next Topic:[databinding] ComboViewer with empty/null entry
Goto Forum:

Current Time: Thu Feb 09 07:26:17 GMT 2023

Powered by FUDForum. Page generated in 0.01859 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top