• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

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

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using Tomcat 6.0.16 with Spring 3.0.
When Tomcat starts, the following exception occurs




applicationContext.xml:




Many thanks for help,
 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Frank VanOor
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please find enclosed pom.xml, thanks




 
Frank VanOor
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
ranger
Posts: 17344
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
I promise I will be the best, most loyal friend ever! All for this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!