[logback-user] logback error when using in maven project
marni srikanth
marni.srikanth at gmail.com
Tue Mar 19 16:55:05 CET 2013
I have the following files in the WEB-INF/lib. But still get the error.
slf4j-api-1.7.3.jar,logback-classic-1.0.10.jar,logback-core-1.0.10.jar
On Tue, Mar 19, 2013 at 10:49 AM, Ceki Gülcü <ceki at qos.ch> wrote:
> The error indicates that com.zreflect.emyed.whiteboard.**pubsub.EventLoggerAsync
> class is expecting a ch.qos.logback.classic.**LoggerContext, instead it
> obtains a org.slf4j.helpers.**NOPLoggerFactory. This usually occurs when
> some code tries to cast the return value of org.slf4j.LoggerFactory.**getILoggerFactory
> and slf4j is bound to the NOP implementation because no slf4j binding was
> available on the class path. This is usually accompanied with an error
> message. See:
>
> http://slf4j.org/codes.html#**StaticLoggerBinder<http://slf4j.org/codes.html#StaticLoggerBinder>
>
> HTH,
>
>
> On 3/19/2013 2:16 PM, marni srikanth wrote:
>
>> I am getting the following error when i am using maven, jboss 7.1.1. But
>> i don't see when i tested it separately. Is there a fix to it?
>>
>>
>>
>> 17:24:23,675 ERROR [stderr] java.lang.ClassCastException:
>> org.slf4j.helpers.**NOPLoggerFactory cannot be cast to
>> ch.qos.logback.classic.**LoggerContext
>>
>> 17:24:23,681 ERROR [stderr] at
>> com.zreflect.emyed.whiteboard.**pubsub.EventLoggerAsync.**
>> logStart(EventLoggerAsync.**java:116)
>>
>> 17:24:23,683 ERROR [stderr] at
>> com.zreflect.emyed.whiteboard.**pubsub.EventLoggerAsync.**
>> onDisconnect(EventLoggerAsync.**java:62)
>>
>> 17:24:23,684 ERROR [stderr] at
>> org.atmosphere.cpr.**AtmosphereResourceImpl.**onDisconnect(**
>> AtmosphereResourceImpl.java:**817)
>>
>> 17:24:23,686 ERROR [stderr] at
>> org.atmosphere.cpr.**AtmosphereResourceImpl.**notifyListeners(**
>> AtmosphereResourceImpl.java:**761)
>>
>> 17:24:23,688 ERROR [stderr] at
>> org.atmosphere.cpr.**AtmosphereResourceImpl.**notifyListeners(**
>> AtmosphereResourceImpl.java:**742)
>>
>> 17:24:23,690 ERROR [stderr] at
>> org.atmosphere.cpr.**AsynchronousProcessor.**cancelled(**
>> AsynchronousProcessor.java:**601)
>>
>> 17:24:23,691 ERROR [stderr] at
>> org.atmosphere.container.**BlockingIOCometSupport.**cancelled(**
>> BlockingIOCometSupport.java:**172)
>>
>> 17:24:23,693 ERROR [stderr] at
>> org.atmosphere.cpr.**AsynchronousProcessor$1.run(**
>> AsynchronousProcessor.java:**119)
>>
>> 17:24:23,694 ERROR [stderr] at
>> java.util.concurrent.**Executors$RunnableAdapter.**
>> call(Executors.java:441)
>>
>> 17:24:23,696 ERROR [stderr] at
>> java.util.concurrent.**FutureTask$Sync.**innerRunAndReset(FutureTask.**
>> java:317)
>>
>> 17:24:23,698 ERROR [stderr] at
>> java.util.concurrent.**FutureTask.runAndReset(**FutureTask.java:150)
>>
>> 17:24:23,699 ERROR [stderr] at
>> java.util.concurrent.**ScheduledThreadPoolExecutor$**
>> ScheduledFutureTask.access$**101(**ScheduledThreadPoolExecutor.**java:98)
>>
>> 17:24:23,703 ERROR [stderr] at
>> java.util.concurrent.**ScheduledThreadPoolExecutor$**ScheduledFutureTask.
>> **runPeriodic(**ScheduledThreadPoolExecutor.**java:180)
>>
>> 17:24:23,707 ERROR [stderr] at
>> java.util.concurrent.**ScheduledThreadPoolExecutor$**
>> ScheduledFutureTask.run(**ScheduledThreadPoolExecutor.**java:204)
>>
>> 17:24:23,715 ERROR [stderr] at
>> java.util.concurrent.**ThreadPoolExecutor$Worker.**
>> runTask(ThreadPoolExecutor.**java:886)
>>
>> 17:24:23,716 ERROR [stderr] at
>> java.util.concurrent.**ThreadPoolExecutor$Worker.run(**
>> ThreadPoolExecutor.java:908)
>>
>> 17:24:23,718 ERROR [stderr] at java.lang.Thread.run(Thread.**java:662)
>>
>>
>> ______________________________**_________________
>> Logback-user mailing list
>> Logback-user at qos.ch
>> http://mailman.qos.ch/mailman/**listinfo/logback-user<http://mailman.qos.ch/mailman/listinfo/logback-user>
>>
>> ______________________________**_________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://mailman.qos.ch/mailman/**listinfo/logback-user<http://mailman.qos.ch/mailman/listinfo/logback-user>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20130319/abb9a04a/attachment.html>
More information about the Logback-user
mailing list