This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Spring and the fly likes Error configuring  Spring ContextLoader Listener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Error configuring  Spring ContextLoader Listener" Watch "Error configuring  Spring ContextLoader Listener" New topic

Error configuring Spring ContextLoader Listener

Deepanjali Reddy

Joined: Jan 23, 2011
Posts: 6

I was trying to setup a new project using spring 3.1.0, Eclipse Helios and Tomcat 6. I am not using maven / ant.
I created a dynamic web project in eclipse and added all spring libraries to the project as "external jars".

I have added spring configuration in web.xml as mentioned below.

The project built successfully with all spring classes and when I started tomcat, the below exception is thrown.

I suspect tomcat is not identifying spring libraries.
one solution is already suggested by group members which requires maven.
could somebody just let me know if it is possible to fix this problem without using maven / ant?

Thanks in advance.

Mark Spritzler

Joined: Feb 05, 2001
Posts: 17271

Yes, include the Spring jars into your classpath for Tomcat. Either by including them in your war's lib directory, or putting them in your TOmcat lib directory, but I recommend including them in your war.


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Deepanjali Reddy

Joined: Jan 23, 2011
Posts: 6
Thanks Mark.
After adding the jars to war , tomcat identified spring libraries and started without errors.

I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Error configuring Spring ContextLoader Listener
It's not a secret anymore!