Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Trying to HelloWorld with Spring IoC

 
Flavio Ortellao
Greenhorn
Posts: 6
Eclipse IDE Linux Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3479
Clojure Mac Objective C
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add this to you pom.xml
 
Flavio Ortellao
Greenhorn
Posts: 6
Eclipse IDE Linux Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic