Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Facing AopConfigException in a class where @Cacheable is used

 
raghav prakasam
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Below is the Error which am facing while starting up the server(JBoss) while spring container is trying to create a bean.

Error:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'workspaceLabelProvider' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Cannot proxy target class because CGLIB2 is not available. Add CGLIB to the class path or specify proxy interfaces.

Below is my applicationContext.xml entry for the bean 'workspaceLabelProvider'



Actually the code is properly working in Weblogic but its not in Jboss 6.0.Even i have included cglib2.2 and cglib-nodep2.2 jars in the project's lib folder.

As well I have tried with the below entries in the context xml too:



Please anyone try to provide me a possible workarounds.
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The newest version of Spring should include this stuff for you. If you are using an older version you need to bring that dependency in explicitly.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic