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

Ceki Gülcü ceki at qos.ch
Thu Aug 25 16:26:32 CEST 2011


Where is slf4j-api.jar located?

On 25/08/2011 4:21 PM, BAKHTI Mohammed wrote:
> 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


More information about the Logback-user mailing list