[Red5] java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
Dan Rossi
spam at electroteque.org
Tue Nov 13 02:47:26 PST 2007
All the webapps needed refactoring apart from demoservice. Ive changed
everything i know of to use
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
protected static Logger log = LoggerFactory.getLogger(..);
Still the same.
Ive removed the log4j-over-slf4j-1.4.3.jar just in case of a clash
still nothing so ive put it back, maybe its a build order problem
because it loads fine in eclipse.
I grepped the source and found no results for commons.logging or log4j
or in webapps. I could commit the demo app changes if i can work out
how to configure the login in eclipse.
On 13/11/2007, at 6:13 PM, Dan Rossi wrote:
> From the logback documentation ive been also doing this in my webapp
> but i havent added it to the build as yet
>
> import org.slf4j.LoggerFactory;
> import ch.qos.logback.classic.Logger;
>
> private static final Logger log =
> (Logger)LoggerFactory.getLogger(Application.class.getName());
>
> What i dont get is its loading find in eclipse.
>
> On 13/11/2007, at 5:39 PM, Dan Rossi wrote:
>
>> I have my webapp which is doing access logging using logback
>> classes so they are imported there, ive just used what the manual
>> said.
>>
>> This is in the demoservice class but still causes and error only
>> when i run red5 via commandline, its the only app being loaded.
>>
>> import org.slf4j.Logger;
>> import org.slf4j.LoggerFactory;
>>
>> protected static Logger log =
>> LoggerFactory.getLogger(DemoService.class);
>>
>> 2656 [main] ERROR o.s.web.context.ContextLoader - Context
>> initialization failed
>> org.springframework.beans.factory.BeanCreationException: Error
>> creating bean with name 'demoService.service' defined in
>> ServletContext resource [/WEB-INF/red5-web.xml]: Instantiation of
>> bean failed; nested exception is java.lang.NoClassDefFoundError:
>> org/slf4j/LoggerFactory
>>
>> On 13/11/2007, at 5:18 PM, Mondain wrote:
>>
>>> Dan,
>>> If you dont stick to straight slf4j you are asking for issues...
>>> If there is a particular app that is causing problems then let us
>>> know and it will be fixed. I would ask that you look at the wiki
>>> entry on logging that I wrote before importing any logging classes
>>> directly.
>>>
>>> Paul
>>>
>>> On Nov 12, 2007 9:40 PM, Dan Rossi <spam at electroteque.org> wrote:
>>> ive noticed some apps dont import logback directly here is how
>>> importing
>>>
>>> import org.slf4j.LoggerFactory;
>>> import ch.qos.logback.classic.Logger;
>>>
>>> although even
>>>
>>> import org.slf4j.Logger;
>>> import org.slf4j.LoggerFactory;
>>>
>>> breaks
>>>
>>> On 13/11/2007, at 2:41 PM, Dan Rossi wrote:
>>>
>>>> Has anyone managed to build and run svn trunk via command line ?
>>>> ITs
>>>> still showing this error even after refactoring everything.
>>>>
>>>> On 13/11/2007, at 2:41 AM, Dan Rossi wrote:
>>>>
>>>>> just confirming none of the webapps is loading any log4j settings.
>>>>>
>>>>> On 13/11/2007, at 2:26 AM, Dan Rossi wrote:
>>>>>
>>>>>> Yes looks like even after a refactor the error is still there
>>>>>> and the
>>>>>> jar is definitely there also. Its only running properly in
>>>>>> eclipse
>>>>>> right now which is bizarre so i cant delpoy this as yet.
>>>>>>
>>>>>> On 12/11/2007, at 11:51 PM, Kevin Jardine wrote:
>>>>>>
>>>>>>> I get the same problem and therefore am unable to start Red5
>>>>>>> using
>>>>>>> red5.sh
>>>>>>>
>>>>>>> --
>>>>>>> Kevin Jardine
>>>>>>> Radagast Solutions
>>>>>>>
>>>>>>> Internet campaign advice and magic
>>>>>>> http://radagast.biz
>>>>>>>
>>>>>>> YIM: kevinjardine
>>>>>>> Skype: kevinjardine
>>>>>>> Eml: kevin at radagast.biz
>>>>>>> Tel: +31 (0)6 25581608
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Red5 mailing list
>>>>>>> Red5 at osflash.org
>>>>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Red5 mailing list
>>>>>> Red5 at osflash.org
>>>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Red5 mailing list
>>>>> Red5 at osflash.org
>>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>
>>>>
>>>> _______________________________________________
>>>> Red5 mailing list
>>>> Red5 at osflash.org
>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>
>>>
>>> _______________________________________________
>>> Red5 mailing list
>>> Red5 at osflash.org
>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>
>>>
>>>
>>>
>>> --
>>> It is difficult to free fools from the chains they revere. -
>>> Voltaire _______________________________________________
>>> Red5 mailing list
>>> Red5 at osflash.org
>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5 at osflash.org
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20071113/bc113dc2/attachment.html
More information about the Red5
mailing list