Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!