[slf4j-user] java.lang.NoSuchFieldError: name @org.slf4j.impl.SimpleLogger

Ceki Gulcu listid at qos.ch
Tue Sep 23 18:29:22 CEST 2008


Hello John,

I suspect this problem is caused by mixing  mixing different versions of slf4j 
artifacts. For example,   if you are using slf4j-api-1.5.3.jar you should also 
use slf4j-simple-1.5.3.jar, using slf4j-simple-1.4.2.jar will not work.


Bailo, John wrote:
> I am using the /openws/ library.
> 
> When I attempt to instantiate the /HttpServeletRequestAdapter/ an 
> exception is thrown from the *slf4j* logger.  
> 
> My servlet is being debugged in Eclipse using a *JBoss* runtime.
> 
> I am having trouble understanding the origins of this error.    
> 
> Are there any special setup or security considerations for running 
> /slf4j/ with JBoss.
> 
> 
> This is error in full:
> 
>  
> 
> 2008-09-18 13:15:58,314 ERROR 
> [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/saml3].[sevlet3]] 
> Allocate exception for servlet sevlet3
> 
> java.lang.NoSuchFieldError: name
> 
>      at org.slf4j.impl.SimpleLogger.<init>(SimpleLogger.java:83)
> 
>      at 
> org.slf4j.impl.SimpleLoggerFactory.getLogger(SimpleLoggerFactory.java:67)
[snip]


-- 
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch



More information about the slf4j-user mailing list