IntelliJ Java IDE
The moose likes Other Application Frameworks and the fly likes Spring's ContextLoaderListener fails to start in Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Other Application Frameworks
Reply Bookmark "Spring Watch "Spring New topic
Author

Spring's ContextLoaderListener fails to start in Tomcat

James Adams
Ranch Hand

Joined: Sep 12, 2003
Posts: 188
I have a Spring MVC web application which no longer starts successfully on Tomcat (I have come back to this code after a couple of months, it ran OK before). The trouble seems to be with the ContextLoaderListener which I have specified in the web.xml.

I have the following in my web.xml



When I have the above in my web.xml I get an error when starting the web application, and the only error message I can find in Tomcat tells me this:


SEVERE: Error listenerStart


If I have the above commented out then the web application starts fine when I restart Tomcat.

I do have the spring-1.2.3.jar in my webapp's WEB-INF/lib directory, so the ContextLoaderListener class should be found OK. I can't think of where else to look for clues, can anyone turn on the light for me?

I am using the latest Tomcat and Spring 1.2.3.

Thanks in advance for any insight!


--James
 
 
subject: Spring's ContextLoaderListener fails to start in Tomcat
 
Threads others viewed
No WebApplicationContext found: no ContextLoaderListener registered?
Getting error----NoContextLoaderListener registered
Enabling Spring Logging
Spring: Getting web ContextLoaderListener to start without a Servlet...
SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoade
IntelliJ Java IDE