*
The moose likes Spring and the fly likes Problems loading Spring ContextLoaderListener without a servlet. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Problems loading Spring ContextLoaderListener without a servlet." Watch "Problems loading Spring ContextLoaderListener without a servlet." New topic
Author

Problems loading Spring ContextLoaderListener without a servlet.

Philippe Desrosiers
Ranch Hand

Joined: Mar 29, 2006
Posts: 138
I'm trying to write a Spring-configured Quartz scheduler, running under Tomcat 6.x.

The issue I'm having is that my ContextLoaderListener is not firing, and never loads the Spring context.xml. I think this is because there are no servlets configured in my web.xml. Does anyone know a way to fire the listener?

Here's my web.xml:


Any ideas?
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

Maybe there is a typo somewhere, is there anything you notice in the console or logs for Tomcat.

You shouldn't not have to have any Servlet to load the ContextLoaderListener. It actually loads before any servlet would load anyway.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problems loading Spring ContextLoaderListener without a servlet.