PDA

View Full Version : Could not load Spring application context on tomcat startup


Ajit Raj
Apr 20th, 2007, 08:00 PM
Hi, Group,

I have a web application that is with tapestry and spring framework. The tomcat which runs on a UNIX box starts fine with application. But, after I put the web app on Windows-xp with tomcat 5.5.20/eclipse installed. It failed to start properly with the following error:

Apr 19, 2007 3:59:15 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Apr 19, 2007 3:59:15 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/Sample] startup failed due to previous errors

I looked at the web.xml code and it seems that the following setting caused the above error:

<!-- load Spring application context on startup -->
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListe ner
</listener-class>
</listener>

I appreciate if anyone could let me know where the problem is or I can get more debug info about it.

Thanks,


Ajit

cwilkes
Apr 20th, 2007, 11:22 PM
A "SEVERE: Error filterStart" usually means there's an error with your tomcat installation. The quickest way for you to fix this is to reinstall tomcat after moving your existing installation to another directory. Then compare what the differences.

kantorn
Apr 21st, 2007, 02:00 AM
This is an error I've encountered a few times, and it's just extra annoying as it seems impossible to trace what exactly is wrong.
However, a large percentage of the time I've found out that it is a missing jdbc-driver that causes it. So check that all your dependencies are in the CP.

imraansarwar
Apr 21st, 2007, 04:43 PM
Ajit are you using a filter in your web app that is using Log4j? If yes then simply remove all logging statements from your filter

Imran,