0 Replies Latest reply: Sep 12, 2013 7:29 PM by user2226836 RSS

    NoClassDefFoundError - DelegatingIntroductionInterceptor

    user2226836

      Hi,

       

      Wrote a spring3 application in eclipse and "run on server" =>weblogic 12 domain.

      When i try to inject a aop based proxy into a controller i am getting below error only on weblogic (works fine on websphere etc).

      From eclipse i can see this class in spring-aop-3.2.4.RELEASE.jar (which i have included in WEB-INF/lib directory, so the class and jar is there in classpath.

      Any help is greatly appreciated.

       

      Error:

      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dashboardController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.citi.cbol.entities.context.CustomerProfile com.citi.cbol.apps.dashboard.controllers.DashboardController.customerProfile; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.citi.cbol.entities.context.CustomerProfile] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.inject.Inject()}

      Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customerProfile' defined in BeanDefinition defined in file [C:\software\workspaces\cbol\cbol\WebContent\WEB-INF\classes\com\citi\cbol\entities\context\CustomerProfile.class]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/aop/support/DelegatingIntroductionInterceptor

      Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customerProfile' defined in BeanDefinition defined in file [C:\software\workspaces\cbol\cbol\WebContent\WEB-INF\classes\com\citi\cbol\entities\context\CustomerProfile.class]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/aop/support/DelegatingIntroductionInterceptor

        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:288)

       

       

      Code:

      @Component

      @Scope(value="session", proxyMode=ScopedProxyMode.TARGET_CLASS)

      public class CustomerProfile {

      ---------

      ---------

      ---------

       

       

      @Controller

      public class SignonController {

        @Inject

        private CustomerProfile customerProfile;

       

       

       

      Thank you