You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by David Jordan <Da...@sas.com> on 2011/09/21 16:37:55 UTC

SLF4J bindings issue

I am trying to have a build/run environment that supports both TDB and SDB. The latest snapshot versions were using 2 different versions of log4j.
Even after copying the latest version (in TDB) over to the SDB lib directory, I continue to get this message.

     [java] SLF4J: Class path contains multiple SLF4J bindings.
     [java] SLF4J: Found binding in [jar:file:/C:/Documents%20and%20Settings/davjor/My%20Documents/Jena/SDB-1.3.5-SNAPSHOT/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
     [java] SLF4J: Found binding in [jar:file:/C:/Documents%20and%20Settings/davjor/My%20Documents/Jena/TDB-0.8.11-SNAPSHOT/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
     [java] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

David Jordan
Software Developer
SAS Institute Inc.
Health & Life Sciences, Research & Development
Bldg R ▪ Office 4467
600 Research Drive ▪ Cary, NC 27513
Tel: 919 531 1233 ▪ david.jordan@sas.com<ma...@sas.com>
www.sas.com<http://www.sas.com>
SAS® … THE POWER TO KNOW®




Re: SLF4J bindings issue

Posted by Andy Seaborne <an...@apache.org>.
On 21/09/11 15:37, David Jordan wrote:
>
> I am trying to have a build/run environment that supports both TDB and SDB. The latest snapshot versions were using 2 different versions of log4j.
> Even after copying the latest version (in TDB) over to the SDB lib directory, I continue to get this message.
>
>       [java] SLF4J: Class path contains multiple SLF4J bindings.
>       [java] SLF4J: Found binding in [jar:file:/C:/Documents%20and%20Settings/davjor/My%20Documents/Jena/SDB-1.3.5-SNAPSHOT/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>       [java] SLF4J: Found binding in [jar:file:/C:/Documents%20and%20Settings/davjor/My%20Documents/Jena/TDB-0.8.11-SNAPSHOT/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>       [java] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
>
> David Jordan
> Software Developer
> SAS Institute Inc.
> Health&  Life Sciences, Research&  Development

It's not log4j that's the issue but the fact you seem to have two copies 
of slf4j-log4j12 (the implementation of SLF4J over log4j) on the 
classpath.  You shodul have only one, you seem to have two.  Both are v 
1.6.1

Unrelated to the messages above: the different versions for log4j happen 
to be compatible with each other, you can use either (but not both).

	Andy