[Red5] Red5 0.9.1: Failed to load webapplication context class when starting new app

421 views
Skip to first unread message

etienne

unread,
May 7, 2010, 10:03:12 AM5/7/10
to red5
Hello,

I get the following error when starting my application (developped
under Red5 0.7).
Do you have any idea what should be changed, please?
What kind of info do you need?

Exception in thread "Launcher:/" java.lang.RuntimeException: Failed to
load webapplication context class.
at org.red5.server.tomcat.TomcatLoader$1.run(TomcatLoader.java:579)
Caused by: java.lang.ClassNotFoundException: org/springframework/web/
context/support/XmlWebApplicationContext
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.red5.server.tomcat.TomcatLoader$1.run(TomcatLoader.java:576)
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Dedicated RTMPT
server configuration was not specified
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Dedicated RTMPS
server configuration was not specified
Bootstrap complete
Exception in thread "Launcher:/firstApp" java.lang.RuntimeException:
Failed to load webapplication context class.
at org.red5.server.tomcat.TomcatLoader$1.run(TomcatLoader.java:579)
Caused by: java.lang.ClassNotFoundException: org/springframework/web/
context/support/XmlWebApplicationContext
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.red5.server.tomcat.TomcatLoader$1.run(TomcatLoader.java:576)
Exception in thread "Launcher:/installer" java.lang.RuntimeException:
Failed to load webapplication context class.
at org.red5.server.tomcat.TomcatLoader$1.run(TomcatLoader.java:579)
Caused by: java.lang.ClassNotFoundException: org/springframework/web/
context/support/XmlWebApplicationContext
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.red5.server.tomcat.TomcatLoader$1.run(TomcatLoader.java:576)

Dominick Accattato

unread,
May 7, 2010, 10:59:03 AM5/7/10
to red5in...@googlegroups.com
I used to see that error before I fixed the WarDeployer. Are you deploying a war file? Also, I believe that you have a classpath issue. In other words, I think that you have spring jar files in both the webapp's lib directory and also in the top level lib directory. If your'e using Jedai, you might want to make sure all your spring files are in the top level directory.

etienne

unread,
May 10, 2010, 6:27:26 AM5/10/10
to red5
Hello Dominick,

here is the result from my search in my root directory of Red5:
9 results found for Spring:

c:\Red5\red5-0.9.1\doc\api\org\red5\spring
c:\Red5\red5-0.9.1\src\doc\red5\spring
c:\Red5\red5-0.9.1\lib\spring-asm-3.0.0.jar
c:\Red5\red5-0.9.1\lib\spring-beans-3.0.0.jar
c:\Red5\red5-0.9.1\lib\spring-context-3.0.0.jar
c:\Red5\red5-0.9.1\lib\spring-context-support-3.0.0.jar
c:\Red5\red5-0.9.1\lib\spring-core-3.0.0.jar
c:\Red5\red5-0.9.1\lib\spring-expression-3.0.0.jar
c:\Red5\red5-0.9.1\lib\spring-web-3.0.0.jar

It seems that all my spring jar are located in my top root lib
directory.

In the Webapps dir, I did not find any spring jar.

There is surely a classpath issue, but I admit that I am not that
familliar with this kind of system configuration...

I hope that you or someone aware could unlight me about this subject.

Thank you.

Regards,
Etienne.
Reply all
Reply to author
Forward
0 new messages