problems installing Red 5 on SLES 11

26 views
Skip to first unread message

Eric Bullock

unread,
Nov 7, 2010, 8:17:27 AM11/7/10
to red5
I am attempting to get Red5 up and running on a SLES VM, where I have
my Web stack running. This is SLES 11 SP1 running on AMD 64 bit
hardware.

• Installed Java 6 SDK (x_86, update 22)
• Installed Ant 1.07
• Installed Subversion (x_86, 1.6.13)

• Created a few sym links and set some environment variables as
follows:

> ln -s /usr/java/latest /usr/local/jdk
> ln -s /usr/java/latest/jre /usr/local/jre
> rm /usr/bin/java
> ln -s /usr/java/latest/bin/java /usr/bin/java
> export JAVA_HOME=/usr/java/latest/

• Checked out the latest revision of Red5 (4157) and compiled with Ant

> ant prepare
> ant dist

• This process completed successfully with no errors or warnings.
• Moved Red5 into /opt/red5
• Proceeded to start up Red 5.

> cd /opt/red5/dist
> ./red5.sh &

• Everything is fine during the startup until it hits this part:

Root: /opt/red5/dist
Deploy type: bootstrap

(lots of lines here…no errors or warning messages)

• Then at the end:

Setting default logging context: default
java.lang.ClassCastException: org.slf4j.impl.Log4jMDCAdapter cannot be
cast to ch.qos.logback.classic.util.LogbackMDCAdapter
at ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:
133)
at
ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:
469)
at ch.qos.logback.classic.Logger.filterAndLog_1(Logger.java:443)
at ch.qos.logback.classic.Logger.info(Logger.java:633)
at org.red5.server.Launcher.launch(Launcher.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.red5.server.Bootstrap.bootStrap(Bootstrap.java:135)
at org.red5.server.Bootstrap.main(Bootstrap.java:50)
Bootstrap complete


• If i do:

> ps aux | grep red5

...I see that Red5 is not running.

:|

Everything was going so well up until this point! Any ideas what could
be happening? I appreciate any input from the community on this.

Thanks!

Hugo Flambó

unread,
Nov 7, 2010, 10:23:07 AM11/7/10
to red5in...@googlegroups.com
I think for what I#ve seen on the list that this behavior can appear
when red5.jar is loaded first than logback (sl4j)

You must garantee that sl4j jars are read first than red5 jars from
waht Paul have written in some post.. to be honest I never went into
this issue...


Regards

Eric Bullock

unread,
Nov 8, 2010, 11:38:45 AM11/8/10
to red5
I'll do a bit of research on that then...I'm not sure how to make
certain jars load before others.

Thank you for the post!

Cheers...

Mondain

unread,
Nov 8, 2010, 11:47:23 AM11/8/10
to red5in...@googlegroups.com
So long as you dont have any of the logback jars specified in the "-cp" entry of your startup script, the red5 launcher will take care of this for you (placing red5.jar at the beginning).

Paul

Eric Bullock

unread,
Nov 8, 2010, 12:00:04 PM11/8/10
to red5
OK...did a bit of poking around and found some references to
logback.groovy. Remembered an error about this early on in the
bootstrap process. These are the first two lines:

11:55:19,421 |-INFO in ch.qos.logback.classic.LoggerContext[default] -
Could NOT find resource [logback.groovy]
11:55:19,422 |-INFO in ch.qos.logback.classic.LoggerContext[default] -
Could NOT find resource [logback-test.xml]

Is this a dependency I need to install in order to get Red5 to start?

Cheers...

Eric Bullock

unread,
Nov 8, 2010, 12:18:42 PM11/8/10
to red5
This is the line in my startup script with the -cp entry:

exec "$JAVA" "$JYTHON" -Dred5.root="${RED5_HOME}" $JAVA_OPTS -cp "$
{RED5_CLASSPATH}" "$RED5_MAINCLASS" $RED5_OPTS

Eric Bullock

unread,
Nov 10, 2010, 3:52:45 PM11/10/10
to red5
Tried using the latest revision from trunk (4160) and got the same
error about slf4j:

java.lang.ClassCastException: org.slf4j.impl.Log4jMDCAdapter cannot be
cast to ch.qos.logback.classic.util.LogbackMDCAdapter

>:(

Mondain

unread,
Nov 10, 2010, 4:56:24 PM11/10/10
to red5in...@googlegroups.com
Red5 doesn't utilize those classes as far as I can recall, so I'm not sure why they would be displayed unless your application uses them. Make sure your application logging is setup as documented here: http://wiki.red5.org/wiki/Documentation/Tutorials/LoggingSetup

Hugo Flambó

unread,
Nov 11, 2010, 3:54:36 AM11/11/10
to red5in...@googlegroups.com
I've made a quick test and happens to me also with last code from
trunk and nothing custom as been added... only tomcat plugin + jars
and oflademo plugin...

Console Log is appended... (will remove plugins folder to check if
this is the problem and post back)


Regards


Deploy type: bootstrap
Logback selector: org.red5.logging.LoggingContextSelector
09:53:26,889 |-INFO in ch.qos.logback.classic.LoggerContext[default] -


Could NOT find resource [logback.groovy]

09:53:26,889 |-INFO in ch.qos.logback.classic.LoggerContext[default] -


Could NOT find resource [logback-test.xml]

09:53:26,903 |-INFO in ch.qos.logback.classic.LoggerContext[default] -
Found resource [logback.xml] at
[file:/home/hflambo/red5-svn/red5-server-read-only/dist/conf/logback.xml]
09:53:26,905 |-WARN in ch.qos.logback.classic.LoggerContext[default] -
Resource [logback.xml] occurs multiple times on the classpath.
09:53:26,905 |-WARN in ch.qos.logback.classic.LoggerContext[default] -
Resource [logback.xml] occurs at
[file:/home/hflambo/red5-svn/red5-server-read-only/dist/conf/logback.xml]
09:53:26,905 |-WARN in ch.qos.logback.classic.LoggerContext[default] -
Resource [logback.xml] occurs at
[file:/home/hflambo/red5-svn/red5-server-read-only/dist/conf/logback.xml]
09:53:27,630 |-INFO in
ch.qos.logback.classic.joran.action.ConfigurationAction - debug
attribute not set
09:53:27,734 |-INFO in ch.qos.logback.core.joran.action.AppenderAction
- About to instantiate appender of type
[ch.qos.logback.core.ConsoleAppender]
09:53:27,741 |-INFO in ch.qos.logback.core.joran.action.AppenderAction
- Naming appender as [CONSOLE]
09:53:27,815 |-INFO in
ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming
default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for
[encoder] property
09:53:27,815 |-INFO in
ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Pushing
component [encoder] on top of the object stack.
09:53:27,930 |-INFO in ch.qos.logback.core.joran.action.AppenderAction
- About to instantiate appender of type
[ch.qos.logback.core.FileAppender]
09:53:27,931 |-INFO in ch.qos.logback.core.joran.action.AppenderAction
- Naming appender as [FILE]
09:53:27,933 |-INFO in
ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming
default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for
[encoder] property
09:53:27,933 |-INFO in
ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Pushing
component [encoder] on top of the object stack.
09:53:28,015 |-INFO in ch.qos.logback.core.FileAppender[FILE] - File
property is set to [log/red5.log]
09:53:28,042 |-INFO in ch.qos.logback.core.joran.action.AppenderAction
- About to instantiate appender of type
[ch.qos.logback.core.FileAppender]
09:53:28,042 |-INFO in ch.qos.logback.core.joran.action.AppenderAction
- Naming appender as [ERRORFILE]
09:53:28,044 |-INFO in
ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Pushing
component [filter] on top of the object stack.
09:53:28,047 |-INFO in
ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming
default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for
[encoder] property
09:53:28,047 |-INFO in
ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Pushing
component [encoder] on top of the object stack.
09:53:28,048 |-INFO in ch.qos.logback.core.FileAppender[ERRORFILE] -
File property is set to [log/error.log]
09:53:28,048 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- ROOT level set to WARN
09:53:28,048 |-INFO in
ch.qos.logback.core.joran.action.AppenderRefAction - Attaching
appender named [CONSOLE] to Logger[ROOT]
09:53:28,102 |-INFO in
ch.qos.logback.core.joran.action.AppenderRefAction - Attaching
appender named [FILE] to Logger[ROOT]
09:53:28,102 |-INFO in
ch.qos.logback.core.joran.action.AppenderRefAction - Attaching
appender named [ERRORFILE] to Logger[ROOT]
09:53:28,103 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.Launcher] to true
09:53:28,103 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.Launcher level set to INFO
09:53:28,103 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.io] to true
09:53:28,103 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.io level set to INFO
09:53:28,103 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.logging.DerbyLogInterceptor] to true
09:53:28,103 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.logging.DerbyLogInterceptor level set to WARN
09:53:28,103 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server] to true
09:53:28,103 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server level set to WARN
09:53:28,103 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.Client] to true
09:53:28,103 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.Client level set to INFO
09:53:28,103 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.api.stream.support] to true
09:53:28,103 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.api.stream.support level set to INFO
09:53:28,103 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.cache] to true
09:53:28,103 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.cache level set to WARN
09:53:28,103 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.jmx] to true
09:53:28,103 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.jmx level set to WARN
09:53:28,103 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.messaging.InMemoryPushPushPipe] to true
09:53:28,103 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.messaging.InMemoryPushPushPipe level set to INFO
09:53:28,103 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.net] to true
09:53:28,103 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.net level set to INFO
09:53:28,103 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.net.rtmpt.RTMPTServlet] to true
09:53:28,103 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.net.rtmpt.RTMPTServlet level set to WARN
09:53:28,103 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.net.servlet] to true
09:53:28,103 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.net.servlet level set to WARN
09:53:28,103 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.net.proxy] to true
09:53:28,103 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.net.proxy level set to INFO
09:53:28,103 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.net.remoting] to true
09:53:28,103 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.net.remoting level set to WARN
09:53:28,103 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.net.rtmp] to true
09:53:28,103 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.net.rtmp level set to WARN
09:53:28,104 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.net.rtmp.RTMPHandler] to true
09:53:28,104 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.net.rtmp.RTMPHandler level set to INFO
09:53:28,104 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.net.rtmp.BaseRTMPHandler] to true
09:53:28,104 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.net.rtmp.BaseRTMPHandler level set to OFF
09:53:28,104 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.net.rtmp.codec] to true
09:53:28,104 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.net.rtmp.codec level set to INFO
09:53:28,104 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.net.rtmp.RTMPMinaIoHandler] to true
09:53:28,104 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.net.rtmp.RTMPMinaIoHandler level set to OFF
09:53:28,104 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.net.rtmp.RTMPMinaTransport] to true
09:53:28,104 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.net.rtmp.RTMPMinaTransport level set to INFO
09:53:28,104 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.net.rtmp.status] to true
09:53:28,104 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.net.rtmp.status level set to INFO
09:53:28,104 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.net.rtmpt] to true
09:53:28,104 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.net.rtmpt level set to WARN
09:53:28,104 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.persistence] to true
09:53:28,104 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.persistence level set to WARN
09:53:28,104 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.script] to true
09:53:28,104 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.script level set to WARN
09:53:28,104 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.service] to true
09:53:28,104 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.service level set to INFO
09:53:28,104 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.so] to true
09:53:28,104 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.so level set to WARN
09:53:28,104 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.stream] to true
09:53:28,104 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.stream level set to INFO
09:53:28,104 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.stream.consumer] to true
09:53:28,104 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.stream.consumer level set to WARN
09:53:28,104 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.net.mrtmp] to true
09:53:28,104 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.net.mrtmp level set to WARN
09:53:28,104 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.net.mrtmp.codec] to true
09:53:28,104 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.net.mrtmp.codec level set to WARN
09:53:28,104 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.apache.mina] to true
09:53:28,105 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.apache.mina level set to WARN
09:53:28,105 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.apache.mina.filter] to true
09:53:28,105 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.apache.mina.filter level set to WARN
09:53:28,105 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.adapter.MultiThreadedApplicationAdapter] to
true
09:53:28,105 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.adapter.MultiThreadedApplicationAdapter level set to
INFO
09:53:28,105 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.apache.commons] to true
09:53:28,105 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.apache.commons level set to WARN
09:53:28,105 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [httpclient] to true
09:53:28,105 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- httpclient level set to WARN
09:53:28,105 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.tomcat] to true
09:53:28,105 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.tomcat level set to INFO
09:53:28,105 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.apache.catalina] to true
09:53:28,105 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.apache.catalina level set to INFO
09:53:28,105 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.apache.catalina.loader] to true
09:53:28,105 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.apache.catalina.loader level set to INFO
09:53:28,105 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.apache.catalina.realm] to true
09:53:28,105 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.apache.catalina.realm level set to WARN
09:53:28,105 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.apache.catalina.session] to true
09:53:28,105 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.apache.catalina.session level set to WARN
09:53:28,105 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.apache.jasper] to true
09:53:28,105 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.apache.jasper level set to INFO
09:53:28,105 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.apache.tomcat] to true
09:53:28,105 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.apache.tomcat level set to INFO
09:53:28,105 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.apache.tomcat.util.net] to true
09:53:28,105 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.apache.tomcat.util.net level set to WARN
09:53:28,105 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.apache.coyote.http11] to true
09:53:28,105 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.apache.coyote.http11 level set to INFO
09:53:28,105 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.springframework] to true
09:53:28,105 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.springframework level set to INFO
09:53:28,105 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.springframework.beans.factory] to true
09:53:28,105 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.springframework.beans.factory level set to INFO
09:53:28,105 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.springframework.beans.factory.xml] to true
09:53:28,106 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.springframework.beans.factory.xml level set to WARN
09:53:28,106 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.springframework.ui.context.support] to true
09:53:28,106 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.springframework.ui.context.support level set to WARN
09:53:28,106 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.springframework.web.context] to true
09:53:28,106 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.springframework.web.context level set to INFO
09:53:28,106 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.springframework.web.context.support] to true
09:53:28,106 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.springframework.web.context.support level set to WARN
09:53:28,106 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.quartz] to true
09:53:28,106 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.quartz level set to WARN
09:53:28,106 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [net.sf.ehcache] to true
09:53:28,106 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- net.sf.ehcache level set to INFO
09:53:28,106 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [ch.qos] to true
09:53:28,106 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- ch.qos level set to WARN
09:53:28,106 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.red5.server.jetty] to true
09:53:28,106 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.red5.server.jetty level set to DEBUG
09:53:28,106 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.mortbay] to true
09:53:28,106 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.mortbay level set to DEBUG
09:53:28,106 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity
of logger [org.eclipse.jetty] to true
09:53:28,106 |-INFO in ch.qos.logback.classic.joran.action.LevelAction
- org.eclipse.jetty level set to DEBUG

Setting default logging context: default

java.lang.ClassCastException: org.slf4j.impl.Log4jMDCAdapter cannot be
cast to ch.qos.logback.classic.util.LogbackMDCAdapter

at ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:133)
at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:469)
at ch.qos.logback.classic.Logger.filterAndLog_1(Logger.java:443)
at ch.qos.logback.classic.Logger.info(Logger.java:633)
at org.red5.server.Launcher.launch(Launcher.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


at java.lang.reflect.Method.invoke(Method.java:597)
at org.red5.server.Bootstrap.bootStrap(Bootstrap.java:135)
at org.red5.server.Bootstrap.main(Bootstrap.java:50)
Bootstrap complete

Hugo Flambó

unread,
Nov 11, 2010, 3:55:52 AM11/11/10
to red5in...@googlegroups.com
Nop,

Same problem withowt plugins folder...

Regards

Eric Bullock

unread,
Nov 11, 2010, 9:00:42 AM11/11/10
to red5
I haven't done any setup on the application side...yet. Shouldn't Red5
just run right out of the box? I did this easily enough on CentOS but
am really struggling with SLES 11.

I am (obviously) not a developer or Linux guru but am learning as I go
along.

Eric Bullock

unread,
Nov 11, 2010, 9:16:56 AM11/11/10
to red5
Backed off to r4156 and got a whole bunch of NEW errors!


webserver:/opt/red5 # [ERROR] [main] org.red5.server.jmx.JMXAgent - {}
java.io.IOException: Cannot bind to URL [rmi://:9999/red5]:
javax.naming.ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Connection refused to host: 67.215.65.132;
nested exception is:
java.net.ConnectException: Connection timed out]
at
javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:
804) ~[na:1.6.0_22]
at
javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:
417) ~[na:1.6.0_22]
at org.red5.server.jmx.JMXAgent.init(JMXAgent.java:363)
~[red5.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:
1.6.0_22]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39) ~[na:1.6.0_22]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25) ~[na:1.6.0_22]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_22]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:
1544) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:
1485) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:
1417) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:
519) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:
456) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291) [spring-beans-3.0.4.jar:
3.0.4.RELEASE]
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:
222) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:
288) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
190) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:
580) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:
895) [spring-context-3.0.4.jar:3.0.4.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:
425) [spring-context-3.0.4.jar:3.0.4.RELEASE]
at
org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:
140) [spring-context-3.0.4.jar:3.0.4.RELEASE]
at
org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:
94) [spring-context-3.0.4.jar:3.0.4.RELEASE]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method) [na:1.6.0_22]
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39) [na:1.6.0_22]
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
27) [na:1.6.0_22]
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
[na:1.6.0_22]
at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:
126) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:
108) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:
280) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:
1003) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:
907) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:
485) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:
456) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291) [spring-beans-3.0.4.jar:
3.0.4.RELEASE]
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:
222) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:
288) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
190) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:
580) [spring-beans-3.0.4.jar:3.0.4.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:
895) [spring-context-3.0.4.jar:3.0.4.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:
425) [spring-context-3.0.4.jar:3.0.4.RELEASE]
at org.red5.server.Launcher.launch(Launcher.java:64) [red5.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:
1.6.0_22]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39) ~[na:1.6.0_22]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25) ~[na:1.6.0_22]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_22]
at org.red5.server.Bootstrap.bootStrap(Bootstrap.java:135)
[boot.jar:na]
at org.red5.server.Bootstrap.main(Bootstrap.java:50) [boot.jar:na]
Caused by: javax.naming.ServiceUnavailableException: null
at
com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:
126) ~[na:1.6.0_22]
at
com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:
208) ~[na:1.6.0_22]
at javax.naming.InitialContext.bind(InitialContext.java:400) ~[na:
1.6.0_22]
at
javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:
625) ~[na:1.6.0_22]
at
javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:
412) ~[na:1.6.0_22]
... 44 common frames omitted
Caused by: java.rmi.ConnectException: Connection refused to host:
67.215.65.132; nested exception is:
java.net.ConnectException: Connection timed out
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
~[na:1.6.0_22]
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:
198) ~[na:1.6.0_22]
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:
184) ~[na:1.6.0_22]
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322) ~[na:
1.6.0_22]
at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source) ~[na:
1.6.0_22]
at
com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:
120) ~[na:1.6.0_22]
... 48 common frames omitted
Caused by: java.net.ConnectException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:
1.6.0_22]
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) ~[na:
1.6.0_22]
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:
195) ~[na:1.6.0_22]
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) ~[na:
1.6.0_22]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) ~[na:
1.6.0_22]
at java.net.Socket.connect(Socket.java:529) ~[na:1.6.0_22]
at java.net.Socket.connect(Socket.java:478) ~[na:1.6.0_22]
at java.net.Socket.<init>(Socket.java:375) ~[na:1.6.0_22]
at java.net.Socket.<init>(Socket.java:189) ~[na:1.6.0_22]
at
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:
22) ~[na:1.6.0_22]
at
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:
128) ~[na:1.6.0_22]
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
~[na:1.6.0_22]
... 53 common frames omitted

Mondain

unread,
Nov 11, 2010, 9:45:32 AM11/11/10
to red5in...@googlegroups.com
Whats the difference between SLES and the other Linux variants where Red5 runs out-of-the-box? I SLES placing a log4j or other logger jars inside its system classpath?

Hugo Flambó

unread,
Nov 11, 2010, 11:40:27 AM11/11/10
to red5in...@googlegroups.com
I've made a quick checkout just to check it .. and it happens also to
me on ubuntu Lucid (LTS)... last week I've made the same procedure and
all went right.

ufk

unread,
Nov 14, 2010, 9:09:26 AM11/14/10
to red5
I encountered the exact same problem on ubuntu lucid.
i tried with both openjdk and sun-jdk 1.6.0 and i got the same
results.

any ideas?

On Nov 11, 6:40 pm, Hugo Flambó <hfla...@gmail.com> wrote:
> I've made a quick checkout just to check it .. and it happens also to
> me on ubuntu Lucid (LTS)... last week I've made the same procedure and
> all went right.
>
> On Thu, Nov 11, 2010 at 3:45 PM, Mondain <mond...@gmail.com> wrote:
> > Whats the difference between SLES and the other Linux variants where Red5
> > runs out-of-the-box? I SLES placing a log4j or other logger jars inside its
> > system classpath?
>
> > On Thu, Nov 11, 2010 at 6:16 AM, Eric Bullock <pixelpush...@gmail.com>
> ...
>
> read more »

ufk

unread,
Nov 14, 2010, 9:22:53 AM11/14/10
to red5
i was able to resolve the following issue:

java.lang.ClassCastException: org.slf4j.impl.Log4jMDCAdapter cannot
be
cast to ch.qos.logback.classic.util.LogbackMDCAdapter

by removing logback 0.9.24 from red5/lib directory and installing the
latest version which is 0.9.26.
> ...
>
> read more »

Mondain

unread,
Nov 15, 2010, 5:21:12 PM11/15/10
to red5in...@googlegroups.com
Ok logging should be fixed on trunk r4164. The wrong jars for slf4j were being retrieved from springsource and apparently they don't offer the "over" jars.

Paul
Reply all
Reply to author
Forward
0 new messages