aspose file tools*
The moose likes Testing and the fly likes Spring + Junit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Spring + Junit" Watch "Spring + Junit" New topic
Author

Spring + Junit

sam backet
Greenhorn

Joined: Sep 02, 2011
Posts: 22

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
internet detective
Marshal

Joined: May 26, 2003
Posts: 29261
    
140

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring + Junit
 
Similar Threads
XML name space error in Spring data JPA hibernate applicationContext.xml
ClassCastException: Error in the WAR
Error in Context xml file - cvc-complex-type.2.4.c:
Junit + ContextConfiguration
Problem in spring mvc configuration