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!
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
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.
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.
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 ?
Can someone explain to me what a context is and how it works or fits into red5. Thanks!
@bob have a look at this link: http://jira.red5.org/confluence/display/docs/Chapter+11.+Create+new+applications+in+Red5