[logback-user] org.slf4j.helpers.NOPLogger cannot be cast to ch.qos.logback.classic.Logger

BAKHTI Mohammed onlymed at hotmail.com
Thu Aug 25 16:21:30 CEST 2011


Hi Ceki, 

That's exactelly what it says : 

my architecture is like this : 

Tomcat container ------> axis2 war container ---> My service .AAR .

The logback jars are in my .AAR 

Thanks for help 

> Date: Thu, 25 Aug 2011 15:45:17 +0200
> From: ceki at qos.ch
> To: logback-user at qos.ch
> Subject: Re: [logback-user] org.slf4j.helpers.NOPLogger cannot be cast to ch.qos.logback.classic.Logger
> 
> Hello Mohammed,
> 
> What does SLF4J print on the console. Does it mention defaulting to the 
> nop-implementation?
> 
> On 25/08/2011 3:21 PM, BAKHTI Mohammed wrote:
> >
> > Hello,
> >
> > I got a problem when trying to deploy an application into Tomcat
> >
> > i got this exception : org.slf4j.helpers.NOPLogger cannot be cast to
> > ch.qos.logback.classic.Logger
> >
> >
> > and the line in my code is : ch.qos.logback.classic.Logger
> > applicationLogger = (Logger)
> > org.slf4j.LoggerFactory.getLogger("my.logger.name");
> >
> > any idea ?
> >
> > Thanks
> -- 
> QOS.ch, main sponsor of cal10n, logback and slf4j open source projects, 
> is looking to hire talented software developers. For further details, 
> see http://logback.qos.ch/job.html
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/listinfo/logback-user
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/logback-user/attachments/20110825/10ce0f62/attachment.html>


More information about the Logback-user mailing list