File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Trying to HelloWorld with Spring IoC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Trying to HelloWorld with Spring IoC" Watch "Trying to HelloWorld with Spring IoC" New topic
Author

Trying to HelloWorld with Spring IoC

Flavio Ortellao
Greenhorn

Joined: Feb 01, 2011
Posts: 6

Im getting an exception When runing the line .04 in this method:


I have TestAppConfig declared this way


The exception I have is this


And my pom.xml is this


I think it's something related to dependencies, but I didn't found a way to solve it. Any ideas?
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Add this to you pom.xml
Flavio Ortellao
Greenhorn

Joined: Feb 01, 2011
Posts: 6

Hussein Baghdadi wrote:Add this to you pom.xml


It worked! Thanks a lot!

Do you know if it is because the use of annotation based app context? I was watching another spring 3 project, which doesn't use that dependency. But its app context is entirely in xml
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

I'm not a "Spring Samurai" but it looks like you have to include CGLib manually if you are going to use an annotation based application context.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Trying to HelloWorld with Spring IoC