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)
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: admin, context, datasource, derby, Java, jndi, resource, simplejndi, tomcat, webapp
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!
View this Comment in:

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
View this Comment in:
