Spring Framework
  1. Spring Framework
  2. SPR-9843

Add migration instructions regarding component-scanning against "org" base package

    Details

    • Last commented by a User:
      false

      Description

      Convert to spring version 3.2 M1. Got the below exception during deployment, Application Server : Weblogic 10.3.2 , 10.3.5

      Oct 1, 2012 12:07:32 PM org.springframework.web.servlet.FrameworkServlet initServletBean
      INFO: FrameworkServlet 'spring': initialization started
      Oct 1, 2012 12:07:32 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
      INFO: Refreshing WebApplicationContext for namespace 'spring-servlet': startup date [Mon Oct 01 12:07:32 IST 2012]; root of context hierarchy
      Oct 1, 2012 12:07:32 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
      INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/spring-servlet.xml]
      Oct 1, 2012 12:07:45 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
      INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/common-context.xml]
      Oct 1, 2012 12:07:46 PM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
      INFO: Bean 'schedulingConfiguration' of type [class org.springframework.scheduling.annotation.SchedulingConfiguration$$EnhancerByCGLIB$$109c4520] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
      Oct 1, 2012 12:07:46 PM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
      INFO: Bean 'proxyAsyncConfiguration' of type [class org.springframework.scheduling.annotation.ProxyAsyncConfiguration$$EnhancerByCGLIB$$2b16986] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
      Oct 1, 2012 12:07:46 PM org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons
      INFO: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1041110: defining beans [proxyCachingConfiguration,loadTimeWeavingConfiguration,schedulingConfiguration,proxyAsyncConfiguration,proxyTransactionManagementConfiguration,delegatingWebMvcConfiguration,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0,org.springframework.web.servlet.handler.MappedInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0,org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,org.springframework.web.servlet.view.InternalResourceViewResolver#0,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0,org.springframework.cache.config.internalCacheAdvisor,cacheOperationSource,cacheInterceptor,loadTimeWeaver,org.springframework.context.annotation.internalScheduledAnnotationProcessor,org.springframework.context.annotation.internalAsyncAnnotationProcessor,org.springframework.transaction.config.internalTransactionAdvisor,transactionAttributeSource,transactionInterceptor,requestMappingHandlerMapping,viewControllerHandlerMapping,beanNameHandlerMapping,resourceHandlerMapping,defaultServletHandlerMapping,requestMappingHandlerAdapter,mvcConversionService,mvcValidator,httpRequestHandlerAdapter,simpleControllerHandlerAdapter,handlerExceptionResolver]; root of factory hierarchy
      Oct 1, 2012 12:07:46 PM org.springframework.web.servlet.FrameworkServlet initServletBean
      SEVERE: Context initialization failed
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.annotation.internalAsyncAnnotationProcessor' defined in class path resource [org/springframework/scheduling/annotation/ProxyAsyncConfiguration.class]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.springframework.scheduling.annotation.AsyncAnnotationBeanPostProcessor org.springframework.scheduling.annotation.ProxyAsyncConfiguration.asyncAdvisor()] threw exception; nested exception is java.lang.IllegalArgumentException: @EnableAsync annotation metadata was not injected
      	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:581)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1015)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
      	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
      	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
      	at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:733)
      	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:454)
      	at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:634)
      	at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:591)
      	at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:648)
      	at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:511)
      	at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:452)
      	at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133)
      	at javax.servlet.GenericServlet.init(GenericServlet.java:241)
      	at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
      	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      	at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
      	at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
      	at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
      	at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539)
      	at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1985)
      	at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1959)
      	at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1878)
      	at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
      	at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
      	at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
      	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
      	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      	at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
      	at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
      	at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
      	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
      	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      	at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
      	at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
      	at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
      	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      	at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
      	at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)
      	at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
      	at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
      	at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
      	at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
      	at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
      	at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
      	at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
      	at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
      	at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
      	at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
      	at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
      	at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
      	at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
      	at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
      	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      	at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
      Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.springframework.scheduling.annotation.AsyncAnnotationBeanPostProcessor org.springframework.scheduling.annotation.ProxyAsyncConfiguration.asyncAdvisor()] threw exception; nested exception is java.lang.IllegalArgumentException: @EnableAsync annotation metadata was not injected
      	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)
      	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:570)
      	... 59 more
      Caused by: java.lang.IllegalArgumentException: @EnableAsync annotation metadata was not injected
      	at org.springframework.util.Assert.notNull(Assert.java:112)
      	at org.springframework.scheduling.annotation.ProxyAsyncConfiguration.asyncAdvisor(ProxyAsyncConfiguration.java:45)
      	at org.springframework.scheduling.annotation.ProxyAsyncConfiguration$$EnhancerByCGLIB$$2b16986.CGLIB$asyncAdvisor$0(<generated>)
      	at org.springframework.scheduling.annotation.ProxyAsyncConfiguration$$EnhancerByCGLIB$$2b16986$$FastClassByCGLIB$$477b5c38.invoke(<generated>)
      	at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)
      	at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:280)
      	at org.springframework.scheduling.annotation.ProxyAsyncConfiguration$$EnhancerByCGLIB$$2b16986.asyncAdvisor(<generated>)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:149)
      	... 60 more
      <Oct 1, 2012 12:07:46 PM IST> <Error> <HTTP> <BEA-101216> <Servlet: "spring" failed to preload on startup in Web application: "SpringDemo10".
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.annotation.internalAsyncAnnotationProcessor' defined in class path resource [org/springframework/scheduling/annotation/ProxyAsyncConfiguration.class]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.springframework.scheduling.annotation.AsyncAnnotationBeanPostProcessor org.springframework.scheduling.annotation.ProxyAsyncConfiguration.asyncAdvisor()] threw exception; nested exception is java.lang.IllegalArgumentException: @EnableAsync annotation metadata was not injected
      	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:581)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1015)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
      	Truncated. see log file for complete stacktrace
      Caused By: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.springframework.scheduling.annotation.AsyncAnnotationBeanPostProcessor org.springframework.scheduling.annotation.ProxyAsyncConfiguration.asyncAdvisor()] threw exception; nested exception is java.lang.IllegalArgumentException: @EnableAsync annotation metadata was not injected
      	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)
      	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:570)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1015)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
      	Truncated. see log file for complete stacktrace
      Caused By: java.lang.IllegalArgumentException: @EnableAsync annotation metadata was not injected
      	at org.springframework.util.Assert.notNull(Assert.java:112)
      	at org.springframework.scheduling.annotation.ProxyAsyncConfiguration.asyncAdvisor(ProxyAsyncConfiguration.java:45)
      	at org.springframework.scheduling.annotation.ProxyAsyncConfiguration$$EnhancerByCGLIB$$2b16986.CGLIB$asyncAdvisor$0(<generated>)
      	at org.springframework.scheduling.annotation.ProxyAsyncConfiguration$$EnhancerByCGLIB$$2b16986$$FastClassByCGLIB$$477b5c38.invoke(<generated>)
      	at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)
      	Truncated. see log file for complete stacktrace
      > 
      <Oct 1, 2012 12:07:46 PM IST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1349073444834' for task '24'. Error is: 'weblogic.application.ModuleException: [HTTP:101216]Servlet: "spring" failed to preload on startup in Web application: "SpringDemo10".
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.annotation.internalAsyncAnnotationProcessor' defined in class path resource [org/springframework/scheduling/annotation/ProxyAsyncConfiguration.class]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.springframework.scheduling.annotation.AsyncAnnotationBeanPostProcessor org.springframework.scheduling.annotation.ProxyAsyncConfiguration.asyncAdvisor()] threw exception; nested exception is java.lang.IllegalArgumentException: @EnableAsync annotation metadata was not injected
      	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:581)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1015)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
      	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
      	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
      	at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:733)
      	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:454)
      	at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:634)
      	at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:591)
      	at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:648)
      	at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:511)
      	at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:452)
      	at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133)
      	at javax.servlet.GenericServlet.init(GenericServlet.java:241)
      	at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
      	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      	at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
      	at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
      	at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
      	at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539)
      	at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1985)
      	at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1959)
      	at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1878)
      	at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
      	at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
      	at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
      	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
      	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      	at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
      	at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
      	at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
      	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
      	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      	at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
      	at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
      	at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
      	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      	at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
      	at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)
      	at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
      	at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
      	at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
      	at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
      	at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
      	at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
      	at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
      	at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
      	at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
      	at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
      	at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
      	at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
      	at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
      	at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
      	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      	at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
      Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.springframework.scheduling.annotation.AsyncAnnotationBeanPostProcessor org.springframework.scheduling.annotation.ProxyAsyncConfiguration.asyncAdvisor()] threw exception; nested exception is java.lang.IllegalArgumentException: @EnableAsync annotation metadata was not injected
      	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)
      	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:570)
      	... 59 more
      Caused by: java.lang.IllegalArgumentException: @EnableAsync annotation metadata was not injected
      	at org.springframework.util.Assert.notNull(Assert.java:112)
      	at org.springframework.scheduling.annotation.ProxyAsyncConfiguration.asyncAdvisor(ProxyAsyncConfiguration.java:45)
      	at org.springframework.scheduling.annotation.ProxyAsyncConfiguration$$EnhancerByCGLIB$$2b16986.CGLIB$asyncAdvisor$0(<generated>)
      	at org.springframework.scheduling.annotation.ProxyAsyncConfiguration$$EnhancerByCGLIB$$2b16986$$FastClassByCGLIB$$477b5c38.invoke(<generated>)
      	at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)
      	at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:280)
      	at org.springframework.scheduling.annotation.ProxyAsyncConfiguration$$EnhancerByCGLIB$$2b16986.asyncAdvisor(<generated>)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:149)
      	... 60 more
      '
      weblogic.application.ModuleException: [HTTP:101216]Servlet: "spring" failed to preload on startup in Web application: "SpringDemo10".
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.annotation.internalAsyncAnnotationProcessor' defined in class path resource [org/springframework/scheduling/annotation/ProxyAsyncConfiguration.class]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.springframework.scheduling.annotation.AsyncAnnotationBeanPostProcessor org.springframework.scheduling.annotation.ProxyAsyncConfiguration.asyncAdvisor()] threw exception; nested exception is java.lang.IllegalArgumentException: @EnableAsync annotation metadata was not injected
      	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:581)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1015)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
      	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
      	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
      	at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:733)
      	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:454)
      	at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:634)
      	at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:591)
      	at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:648)
      	at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:511)
      	at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:452)
      	at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133)
      	at javax.servlet.GenericServlet.init(GenericServlet.java:241)
      	at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
      	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      	at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
      	at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
      	at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
      	at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539)
      	at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1985)
      	at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1959)
      	at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1878)
      	at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
      	at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
      	at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
      	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
      	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      	at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
      	at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
      	at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
      	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
      	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      	at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
      	at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
      	at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
      	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      	at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
      	at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)
      	at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
      	at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
      	at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
      	at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
      	at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
      	at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
      	at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
      	at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
      	at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
      	at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
      	at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
      	at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
      	at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
      	at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
      	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      	at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
      Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.springframework.scheduling.annotation.AsyncAnnotationBeanPostProcessor org.springframework.scheduling.annotation.ProxyAsyncConfiguration.asyncAdvisor()] threw exception; nested exception is java.lang.IllegalArgumentException: @EnableAsync annotation metadata was not injected
      	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)
      	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:570)
      	... 59 more
      Caused by: java.lang.IllegalArgumentException: @EnableAsync annotation metadata was not injected
      	at org.springframework.util.Assert.notNull(Assert.java:112)
      	at org.springframework.scheduling.annotation.ProxyAsyncConfiguration.asyncAdvisor(ProxyAsyncConfiguration.java:45)
      	at org.springframework.scheduling.annotation.ProxyAsyncConfiguration$$EnhancerByCGLIB$$2b16986.CGLIB$asyncAdvisor$0(<generated>)
      	at org.springframework.scheduling.annotation.ProxyAsyncConfiguration$$EnhancerByCGLIB$$2b16986$$FastClassByCGLIB$$477b5c38.invoke(<generated>)
      	at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)
      	at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:280)
      	at org.springframework.scheduling.annotation.ProxyAsyncConfiguration$$EnhancerByCGLIB$$2b16986.asyncAdvisor(<generated>)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:149)
      	... 60 more
      
      	at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1510)
      	at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
      	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
      	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      	at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
      	Truncated. see log file for complete stacktrace
      Caused By: java.lang.IllegalArgumentException: @EnableAsync annotation metadata was not injected
      	at org.springframework.util.Assert.notNull(Assert.java:112)
      	at org.springframework.scheduling.annotation.ProxyAsyncConfiguration.asyncAdvisor(ProxyAsyncConfiguration.java:45)
      	at org.springframework.scheduling.annotation.ProxyAsyncConfiguration$$EnhancerByCGLIB$$2b16986.CGLIB$asyncAdvisor$0(<generated>)
      	at org.springframework.scheduling.annotation.ProxyAsyncConfiguration$$EnhancerByCGLIB$$2b16986$$FastClassByCGLIB$$477b5c38.invoke(<generated>)
      	at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)
      	Truncated. see log file for complete stacktrace
      > 
      <Oct 1, 2012 12:07:46 PM IST> <Error> <Deployer> <BEA-149202> <Encountered an exception while attempting to commit the 1 task for the application 'SpringDemo10'.> 
      <Oct 1, 2012 12:07:46 PM IST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'SpringDemo10'.> 
      <Oct 1, 2012 12:07:46 PM IST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
      weblogic.application.ModuleException: [HTTP:101216]Servlet: "spring" failed to preload on startup in Web application: "SpringDemo10".
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.annotation.internalAsyncAnnotationProcessor' defined in class path resource [org/springframework/scheduling/annotation/ProxyAsyncConfiguration.class]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.springframework.scheduling.annotation.AsyncAnnotationBeanPostProcessor org.springframework.scheduling.annotation.ProxyAsyncConfiguration.asyncAdvisor()] threw exception; nested exception is java.lang.IllegalArgumentException: @EnableAsync annotation metadata was not injected
      	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:581)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1015)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
      	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
      	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
      	at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:733)
      	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:454)
      	at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:634)
      	at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:591)
      	at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:648)
      	at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:511)
      	at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:452)
      	at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133)
      	at javax.servlet.GenericServlet.init(GenericServlet.java:241)
      	at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
      	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      	at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
      	at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
      	at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
      	at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539)
      	at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1985)
      	at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1959)
      	at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1878)
      	at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
      	at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
      	at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
      	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
      	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      	at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
      	at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
      	at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
      	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
      	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      	at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
      	at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
      	at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
      	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      	at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
      	at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)
      	at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
      	at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
      	at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
      	at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
      	at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
      	at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
      	at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
      	at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
      	at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
      	at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
      	at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
      	at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
      	at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
      	at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
      	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      	at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
      Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.springframework.scheduling.annotation.AsyncAnnotationBeanPostProcessor org.springframework.scheduling.annotation.ProxyAsyncConfiguration.asyncAdvisor()] threw exception; nested exception is java.lang.IllegalArgumentException: @EnableAsync annotation metadata was not injected
      	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)
      	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:570)
      	... 59 more
      Caused by: java.lang.IllegalArgumentException: @EnableAsync annotation metadata was not injected
      	at org.springframework.util.Assert.notNull(Assert.java:112)
      	at org.springframework.scheduling.annotation.ProxyAsyncConfiguration.asyncAdvisor(ProxyAsyncConfiguration.java:45)
      	at org.springframework.scheduling.annotation.ProxyAsyncConfiguration$$EnhancerByCGLIB$$2b16986.CGLIB$asyncAdvisor$0(<generated>)
      	at org.springframework.scheduling.annotation.ProxyAsyncConfiguration$$EnhancerByCGLIB$$2b16986$$FastClassByCGLIB$$477b5c38.invoke(<generated>)
      	at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)
      	at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:280)
      	at org.springframework.scheduling.annotation.ProxyAsyncConfiguration$$EnhancerByCGLIB$$2b16986.asyncAdvisor(<generated>)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:149)
      	... 60 more
      
      	at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1510)
      	at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
      	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
      	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      	at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
      	Truncated. see log file for complete stacktrace
      Caused By: java.lang.IllegalArgumentException: @EnableAsync annotation metadata was not injected
      	at org.springframework.util.Assert.notNull(Assert.java:112)
      	at org.springframework.scheduling.annotation.ProxyAsyncConfiguration.asyncAdvisor(ProxyAsyncConfiguration.java:45)
      	at org.springframework.scheduling.annotation.ProxyAsyncConfiguration$$EnhancerByCGLIB$$2b16986.CGLIB$asyncAdvisor$0(<generated>)
      	at org.springframework.scheduling.annotation.ProxyAsyncConfiguration$$EnhancerByCGLIB$$2b16986$$FastClassByCGLIB$$477b5c38.invoke(<generated>)
      	at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)
      	Truncated. see log file for complete stacktrace
      > 
      

      Even created simple web project with no controllers just simple spring configuration file with 3.2M1 jars , still get same error during deployment

        Activity

        Hide
        Wilson Chen added a comment -

        Can you check the base-package in <context:component-scan base-package="..." /> in your spring context xml?

        I came across the same error yesterday but it turned out that the base-package in my project is set to "org" that causes the spring container scans the whole package tree under org including "org.springframework". But once I corrected the base-package to "org.wilson" (only contains my project's source) the error is no more and my project runs like a charm.

        Show
        Wilson Chen added a comment - Can you check the base-package in <context:component-scan base-package="..." /> in your spring context xml? I came across the same error yesterday but it turned out that the base-package in my project is set to "org" that causes the spring container scans the whole package tree under org including "org.springframework". But once I corrected the base-package to "org.wilson" (only contains my project's source) the error is no more and my project runs like a charm.
        Hide
        WangBo added a comment -

        thanks,I found the problem's location just like u ,but i didn't found the reason.

        Show
        WangBo added a comment - thanks,I found the problem's location just like u ,but i didn't found the reason.
        Hide
        Chris Beams added a comment -

        Phil, could you take a look at this?

        Show
        Chris Beams added a comment - Phil, could you take a look at this?
        Hide
        Architect added a comment -

        I got the same issue as informed by Wilson. Thank you very much and sorry for being late to follow up on my comment

        Show
        Architect added a comment - I got the same issue as informed by Wilson. Thank you very much and sorry for being late to follow up on my comment
        Hide
        Chris Beams added a comment -

        While this issue technically represents a regression, I am resolving it here as a documentation issue. Scanning against the unqualified "org" base package is generally not recommended anyway, and this issue is the only record we've seen of it causing an actual issue for folks.

        As described in the new migration section in the reference documentation, the root cause is that Spring Framework 3.1 ships with @Component classes for the first time @Configuration classes to be specific, and when scanning against "org", this can cause a conflict. Further qualify the base-package or use an exclude-filter to work around this issue.

        commit b8f223c404db419927d4f9763d71e10ca38d37dd
        Author: Chris Beams <cbeams@vmware.com>
        Commit: Chris Beams <cbeams@vmware.com>
        
            Add 3.1 migration section to reference docs
            
            Address error raised when using component-scan against the unqualified
            "org" base package.
            
            Issue: SPR-9843
        
        Show
        Chris Beams added a comment - While this issue technically represents a regression, I am resolving it here as a documentation issue. Scanning against the unqualified "org" base package is generally not recommended anyway, and this issue is the only record we've seen of it causing an actual issue for folks. As described in the new migration section in the reference documentation, the root cause is that Spring Framework 3.1 ships with @Component classes for the first time @Configuration classes to be specific, and when scanning against "org", this can cause a conflict. Further qualify the base-package or use an exclude-filter to work around this issue. commit b8f223c404db419927d4f9763d71e10ca38d37dd Author: Chris Beams <cbeams@vmware.com> Commit: Chris Beams <cbeams@vmware.com> Add 3.1 migration section to reference docs Address error raised when using component-scan against the unqualified "org" base package. Issue: SPR-9843

          People

          • Assignee:
            Chris Beams
            Reporter:
            Architect
            Last updater:
            Chris Beams
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 15 weeks ago