It's not a secret anymore!*
The moose likes Spring and the fly likes org.springframework.web.context.ContextLoader - Context initialization failed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "org.springframework.web.context.ContextLoader - Context initialization failed " Watch "org.springframework.web.context.ContextLoader - Context initialization failed " New topic
Author

org.springframework.web.context.ContextLoader - Context initialization failed

Frank VanOor
Ranch Hand

Joined: Jun 18, 2004
Posts: 49
I'm using Tomcat 6.0.16 with Spring 3.0.
When Tomcat starts, the following exception occurs




applicationContext.xml:




Many thanks for help,
Swaroop Kunduru
Ranch Hand

Joined: May 22, 2006
Posts: 33
I think you should place the spring framework jars in your application classpath. Could you list the jars(Libraries) you are using in your application?

Regards,

Swaroop Kunduru.


Regards,
Swaroop Kunduru
Frank VanOor
Ranch Hand

Joined: Jun 18, 2004
Posts: 49
Please find enclosed pom.xml, thanks




Frank VanOor
Ranch Hand

Joined: Jun 18, 2004
Posts: 49
Solved this exception.
Reason was that there was an old jar still laying around in the Target directory: Spring.2.03.jar. No idea where this came from. I never used this version of Spring.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Frank VanOor wrote:Solved this exception.
Reason was that there was an old jar still laying around in the Target directory: Spring.2.03.jar. No idea where this came from. I never used this version of Spring.


Usually stuff like that happens from a third party jar file that has a dependency in their pom that points to that jar. Then you have to have an <exclude> in your pom for the <dependency> of the third party jar.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
jQuery in Action, 2nd edition
 
subject: org.springframework.web.context.ContextLoader - Context initialization failed
 
Similar Threads
Error in adding Spring security
Configuration problem:
Spring Tomcat Application - Startup Problems
Unable to locate Spring NamespaceHandler for XML schema namespace