This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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: 17276
    
    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 - iOS Apps
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.
 
It's not a secret anymore!