This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 17249
    
    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.
 
Similar Threads
web.xml hard work
s:excelExport Exception in PhaseListener
Listener started twice
web.xml
Spring: Getting web ContextLoaderListener to start without a Servlet...