Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception when trying to run a test with Spring runner

 
Soheil Tayari
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using Spring 3.0.5 and I want to inject some properties using spring into my test classes. I'm using SpringJUnit4ClassRunner to run the tests and perform the injection. But I get an exception when I try to run the test. It seems that the exception has already been reported (here) but has been closed and it's not helping me much. Here's the stack trace:


Any idea?
 
Shashank Ag
Ranch Hand
Posts: 88
Java Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looking at stack trace it seems as if problem is due to some old version spring jars in your classpath.
 
Soheil Tayari
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shashank Ag wrote:Looking at stack trace it seems as if problem is due to some old version spring jars in your classpath.

All my jars are version 3.0.5. I got no older jar.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic