Facing AopConfigException in a class where @Cacheable is used
posted 2 years ago
Below is the Error which am facing while starting up the server(JBoss) while spring container is trying to create a bean.
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.