• 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.
 
That new kid is a freak. Show him this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!