Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring + Junit  RSS feed

 
sam backet
Greenhorn
Posts: 22
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I want to use the Spring to test classes. But I get the following error. The path is correct.

java.lang.IllegalStateException: Failed to load ApplicationContext

- IDE: Netbeans 7.0.1
- MAVEN 3


TEST


XML
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36406
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is anything else in the stack trace? Usually when Spring can't create a context, it has trouble wiring or injecting something. Also, does Config.java really not have a package name. Putting things in the default package can be unpredictable.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!