msgbartop
Various ramblings-on, mostly about Red5
msgbarbottom

01 Oct 08 Red5 Admin

I just spent many hours trying to get the Admin (demo) application working properly; it was quite painful. Trying to get JNDI and Spring to cooperate in an Embedded Tomcat instance is not what I call fun, but I have it working alright for now. There still seem to be some underlying classloader issues in the server, because I cannot self-contain the web applications. No matter how I configure the server or application, there are always jars that must be in the shared lib directory; if anyone has any experience with this I would love to hear it.  So without further rambling, here are the steps to take to get it working:

1. Obtain the admin war or use my archive

2. Unzip the archive into the webapps directory (red5/webapps/admin)

3. Move the following jars to your shared lib directory (red5/lib)

  • derby-10.4.2.0.jar
  • jasper-el-6.0.18.jar
  • el-api.jar
  • simple-jndi-0.11.4.1.jar
  • spring-jdbc-2.5.5.jar
  • spring-orm-2.5.5.jar
  • spring-tx-2.5.5.jar

4. Restart Red5

5. Go to http://localhost:5080/admin/register.html to add new users

I hope this helps those of you new to red5, since I know it can be difficult to get things going at times. :)

Here is my test version zipped for your convenience: admin_10012008.zip (1.02Mb)

Tags: , , , , , , , , ,



Reader's Comments

  1. |

    This just isn’t working, I tried the help dialog that shows up on red server, and did my restart. Still the same error message about moving; * derby-10.4.2.0.jar * spring-jdbc-2.5.5.jar * spring-tx-2.5.5.jar

    Still the same error message.

    What am I doing wrong?

    I moved /opt/red5/webapps/admin/WEB-INF/lib:
    * derby-10.4.2.0.jar
    * spring-jdbc-2.5.5.jar
    * spring-tx-2.5.5.jar

    to /opt/red5/lib.

    These files do not exist, at least not in the /opt/red5/webapps/admin/WEB-INF/lib folder:

    * el-api.jar
    * simple-jndi-0.11.4.1.jar
    * spring-orm-2.5.5.jar
    * jasper-el-6.0.18.jar

    I just can’t find a way to fix it. Once I have the admin console I can run a server from it, as I know nothing about red5 I have no Idea what I am doing!

  2. |

    Hi Paul,

    Thank you for your post and info on this issue. Getting the admin panel to work seems to be my only remaining issue. I followed your steps listed, but encountered the same issue as Russell in that I could not locate all of the jar files you indicated to move to the common lib (same files identified in Russell’s post). I did a complete search of the Red5 directory, and could not locate them.

    I am receiving http 500 errors on both the admin and register pages. (following truncated for post)
    ————-
    On /admin/
    ————-
    HTTP Status 500 -

    exception
    javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/el/ExpressionFactoryImpl
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:275)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    org.red5.logging.LoggerContextFilter.doFilter(LoggerContextFilter.java:70)

    root cause
    java.lang.NoClassDefFoundError: org/apache/el/ExpressionFactoryImpl

    root cause
    java.lang.ClassNotFoundException: org.apache.el.ExpressionFactoryImpl

    —————–
    On register.html
    —————–
    HTTP Status 500 –

    exception
    javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/el/ExpressionFactoryImpl

    root cause
    java.lang.NoClassDefFoundError: org/apache/el/ExpressionFactoryImpl

    root cause
    java.lang.ClassNotFoundException: org.apache.el.ExpressionFactoryImpl

    ———————————–
    I’m completely out of ideas, and I don’t know enough about java to troubleshoot. Should you have any ideas, I’ll gladly try them!

    Thanks!

    Cheers,
    Bill

  3. |

    I have exactly the same problem.

    Server: Windows 2008 32-bit

    I have copied:

    derby-10.4.2.0.jar
    simple-jndi-0.11.4.1.jar
    spring-jdbc-2.5.5.jar
    spring-orm-2.5.5.jar
    spring-tx-2.5.5.jar

    into the red5\lib folder, but I can’t find

    * el-api.jar
    * jasper-el-6.0.18.jar

    So I’m doing a bit better than Russel, but still not quite there.

  4. |

    OK I’ve got it working now, only by downloading those two missing .jar files from

    http://tomcat.apache.org/dev/dist/m2-repository/org/apache/tomcat/jasper-el/6.0.18/

    and

    http://www.java2s.com/Code/Jar/Tomcat/Downloadelapijar.htm

    This doesn’t seem to be an ideal situation, but at least I can get the admin interface running.

  5. |

    I did all that, moved the files, added the two new ones and now I haven’t got any error dispayed on the admin page, but the admin page doesn’t fire, instead, I still have :

    An error has occured and you may be here because you are loading the admin demo application for the first time.

    You may be required to do the following and then restart the server to load the application correctly for the mean time.

    The following instructions are adapted from Paul Gregoire’s Blog Article

    I just spent many hours trying to get the Admin (demo) application working properly; it was quite painful. Trying to get JNDI and Spring to cooperate in an Embedded Tomcat instance is not what I call fun, but I have it working alright for now. There still seem to be some underlying classloader issues in the server, because I cannot self-contain the web applications. No matter how I configure the server or application, there are always jars that must be in the shared lib directory; if anyone has any experience with this I would love to hear it. So without further rambling, here are the steps to take to get it working:

    1. Move the following jars from your webapps lib directory red5/webapps/admin/WEB-INF/lib to your shared lib directory (red5/lib)

    * derby-10.4.2.0.jar
    * spring-jdbc-2.5.5.jar
    * spring-tx-2.5.5.jar

    4. Restart Red5

    5. Go to http://localhost:5080/admin/register.html to add new users

    I hope this helps those of you new to red5, since I know it can be difficult to get things going at times.

    Any idea ?

  6. |

    Can someone explain to me what a context is and how it works or fits into red5. Thanks!

  7. |

    @bob have a look at this link: http://jira.red5.org/confluence/display/docs/Chapter+11.+Create+new+applications+in+Red5

  8. |

    Hello, my name is Carlos Lavín and I’m rookie in RED5; I am with the 0.9.1 version of RED5. I have installed it in my computer, and I have been running their demo applications perfectly, but there is one that I can’t. When I want to use the adminPanel application, it ask me for server address, user and pasword, I have been looking in the configuration files in red5 and I found in the conf directory, the file realm.proporties the user and the password. I used it, and in the address server I put:
    rtmp://localhost/admin/ but it sas me:
    “NetconnectionConnect.Faild”
    why can’t I use the adminPanel application? Do it needs anything additional? some program…

  9. |

    i installed red5. I am getting the default page but and i am able to install the installer from http://localhosts:5080/installer directory but it does not include admin. All other demos directories are created under webapps folder, however, non of them can be run. Did any of you go the demos to work if so can you post how? I tried download demo .war files and jar -xvf demofile.war. Still i cannot seems to see any of the demos. Am i missing any .jar files or have corrupt folders? How come when i point browser to such as http://localhosts:5080/SOSample i only get a 404 error.

    Will following current recomendation fix i am getting 404 error? It seems this might fix the admin panel only. What about other demos (such as SOSample)?

    Please help thank. I have been very frustrated to get with current installation unable to get the demos working and testing server going.

  10. |

    Yestedday I installed red5 successfully, I can use rmtp for live streaming as well but I am not able to login on administrator page any idea ?

  11. |

    Hello faced idenichnoy problem that occurs, your archive is not available for download



Leave a Comment


Fatal error: Call to undefined function akismet_counter() in C:\xampp\htdocs\paulgregoireblog\wp-content\themes\googlechrome\footer.php on line 9