Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Orbit » SLF4j Version 1.6.0
SLF4j Version 1.6.0 [message #565609] Fri, 21 May 2010 14:55 Go to next message
Stephan Leicht Vogt is currently offline Stephan Leicht VogtFriend
Messages: 104
Registered: July 2015
Senior Member
Hi
When will the new version of SLF4j be available on orbit? If it helps I could contribute it (although I'm no contributer to orbit).

Thanks and greetings
Stephan Leicht
Re: SLF4j Version 1.6.0 [message #565671 is a reply to message #565609] Sat, 22 May 2010 20:35 Go to previous messageGo to next message
David Williams is currently offline David WilliamsFriend
Messages: 176
Registered: July 2009
Senior Member
Stephan Leicht wrote:
> Hi
> When will the new version of SLF4j be available on orbit? If it helps I
> could contribute it (although I'm no contributer to orbit).
>
> Thanks and greetings
> Stephan Leicht
>

Probably not until (at least) July, as we are stabizing now for June
release. You could as on orbit-dev list, and probably get a more direct
answer from those who contributed version 1.5.11 and others.
Re: SLF4j Version 1.6.0 [message #565977 is a reply to message #565609] Wed, 21 July 2010 05:49 Go to previous messageGo to next message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 486
Registered: July 2009
Location: San Francisco ✈ Germany
Senior Member

Hi Stephan,

Am 21.05.2010 16:55, schrieb Stephan Leicht:
> When will the new version of SLF4j be available on orbit?

As soon as there is a CQ we can add it. Did you open one already?

-Gunnar



--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
Re: SLF4j Version 1.6.0 [message #645503 is a reply to message #565609] Fri, 17 December 2010 14:18 Go to previous messageGo to next message
Christian Schwarz is currently offline Christian SchwarzFriend
Messages: 31
Registered: July 2009
Member
I have a dependency problem with org.slf4j.api_1.6.1 !

[Orbit CQ:4408]
( http://download.eclipse.org/tools/orbit/downloads/drops/S201 01204061544/)

My Plugin depends on org.slf4j.api_1.6.1 an provides the Class "org.slf4j.impl.StaticLoggerBinder". Eclipse detects an a validation problem :
"Missing Constraint: Eclipse-GenericRequire:org.slf4j.impl.StaticLoggerBinder: (&(version>=1.6.0)(!(version>=1.7.0)))".

My Plugin export the package of my StaticLoggerBinder-class like this:
Export-Package: org.slf4j.impl;version="1.6.1";uses:="org.slf4j.spi,org.slf4j.helpers,org.slf4j "

I think here is a dependency cycle. The bundle org.slf4j.api require my "org.slf4j.impl.StaticLoggerBinder" implementation and i depend on the slf4j-bundle.

When i remove the follwing from the MANIFEST.MF everything is fine:
"Eclipse-GenericRequire: org.slf4j.impl.StaticLoggerBinder;selection-filter=(&(ve rsion >=1.6.0)(!(version>=1.7.0))))"


Btw. slf4j_1.5.11 does not have this statement.

How can i fix this Problem ?


icon12.gif  Re: SLF4j Version 1.6.0 [message #646214 is a reply to message #645503] Wed, 22 December 2010 17:16 Go to previous messageGo to next message
Hendy Irawan is currently offline Hendy IrawanFriend
Messages: 58
Registered: July 2009
Location: Bandung, Indonesia
Member

I think there's a valid reason why Orbit's SLF4J is like that.

SLF4J API is "useless" when only itself is installed by p2 (in an Eclipse installation), therefore it requires another bundle (the implementation) to be installed.

In your case, I would suggest using the original SLF4J API bundle from SLF4J, not from Orbit.

You could also try marking your Import-Package of slf4j API as optional.

I guess this is probably a bug, though I'm not sure what is the best way due to SLF4J architecture. Perhaps someone from SLF4J has a better idea how it should be done.
Re: SLF4j Version 1.6.0 [message #646481 is a reply to message #645503] Fri, 24 December 2010 19:16 Go to previous message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 486
Registered: July 2009
Location: San Francisco ✈ Germany
Senior Member

Hi,

Am 17.12.2010 15:18, schrieb Chris:
> My Plugin depends on org.slf4j.api_1.6.1 an provides the Class "org.slf4j.impl.StaticLoggerBinder". Eclipse detects an a validation problem :
> "Missing Constraint: Eclipse-GenericRequire:org.slf4j.impl.StaticLoggerBinder: (&(version>=1.6.0)(!(version>=1.7.0)))".

> How can i fix this Problem ?

Sorry for the late reply but I haven't seen the message until just now.
For a detailed explanation of the bundles please have a look at the
README in CVS.

http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.orbit/ org.slf4j.api/readme-bundles.txt?view=co&root=Tools_Proj ect&pathrev=v1_6_1

Basically, if you want to provide your own SLF4J implementation you need
to create a fragement to slf4j.api bundle. In this fragment you also
need to specify an additional manifest header. This ensures that logging
is actually possible at runtime.

The limitation with the Eclipse-GenericRequire/GenericCapability header
was put in place in order to fix an issue with SLF4J 1.5.x in Helios.
Basically SLF4J was failing horribly when no implementation was around.
They changed it in 1.6. Thus, we might be able to remove that again.
Feel free to open a bug in order to request that removal.

-Gunnar

--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
Previous Topic:Version of iText
Next Topic:Bug 313502 fixed: how to configure the logging (SLF4J/Logback/log4j)
Goto Forum:
  


Current Time: Fri Apr 19 23:07:28 GMT 2024

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

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

Back to the top