caused By:java.lang.ClassNotFoundException:org.aspectj.lang.annotation.Around

Source: Internet
Author: User

1. Error description

info:2015-05-01 11:12:15[localhost-startstop-1]-Root webapplicationcontext:initialization startedINFO:2015-05-01 11:12:15[LOCALHOST-STARTSTOP-1]-Refreshing Root webapplicationcontext:startup date [Fri May 11:12:15 CST 2015]; Root of Context hierarchyinfo:2015-05-01 11:12:15[localhost-startstop-1]-Loading XML bean definitions from class path re SOURCE [applicationcontext.xml]info:2015-05-01 11:12:15[localhost-startstop-1]-Loading properties file from class Path resource [hibernate.mysql.properties]warn:2015-05-01 11:12:16[localhost-startstop-1]-Exception encountered During context initialization-cancelling Refresh Attemptorg.springframework.beans.factory.BeanCreationException: Error creating Bean with Name ' org.springframework.aop.config.internalAutoProxyCreator ': instantiation of Bean failed; Nested exception is org.springframework.beans.BeanInstantiationException:Could not instantiate Bean class [ Org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProXycreator]: Constructor threw exception; Nested exception is Java.lang.noclassdeffounderror:org/aspectj/lang/annotation/aroundat Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean ( abstractautowirecapablebeanfactory.java:1095) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance ( abstractautowirecapablebeanfactory.java:1040) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( abstractautowirecapablebeanfactory.java:505) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:476) at org.springframework.beans.factory.support.abstractbeanfactory$1. GetObject (abstractbeanfactory.java:302) at Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:229) at Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:298) at Org.springframework.beans.factory.support.AbstractBeanFactory.getBean ( abstractbeanfactory.java:198) at Org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors ( postprocessorregistrationdelegate.java:220) at Org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors ( abstractapplicationcontext.java:615) at Org.springframework.context.support.AbstractApplicationContext.refresh ( abstractapplicationcontext.java:465) at Org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext (contextloader.java:403) At Org.springframework.web.context.ContextLoader.initWebApplicationContext (contextloader.java:306) at Org.springframework.web.context.ContextLoaderListener.contextInitialized (contextloaderlistener.java:106) at Org.apache.catalina.core.StandardContext.listenerStart (standardcontext.java:4994) at Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5492) at Org.apacHe.catalina.util.LifecycleBase.start (lifecyclebase.java:150) at Org.apache.catalina.core.ContainerBase.addChildInternal (containerbase.java:901) at Org.apache.catalina.core.ContainerBase.addChild (containerbase.java:877) at Org.apache.catalina.core.StandardHost.addChild (standardhost.java:649) at Org.apache.catalina.startup.HostConfig.deployDirectory (hostconfig.java:1245) at Org.apache.catalina.startup.hostconfig$deploydirectory.run (hostconfig.java:1895) at Java.util.concurrent.executors$runnableadapter.call (executors.java:471) at Java.util.concurrent.FutureTask.run ( futuretask.java:262) at Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1145) at Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:615) at Java.lang.Thread.run ( thread.java:745) caused by:org.springframework.beans.BeanInstantiationException:Could not instantiate Bean class [ Org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator]: Constructor threw exception; NEsted exception is Java.lang.noclassdeffounderror:org/aspectj/lang/annotation/aroundat Org.springframework.beans.BeanUtils.instantiateClass (beanutils.java:163) at Org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate ( simpleinstantiationstrategy.java:89) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean ( abstractautowirecapablebeanfactory.java:1088) ... Morecaused By:java.lang.noclassdeffounderror:org/aspectj/lang/annotation/aroundat Org.springframework.aop.aspectj.annotation.reflectiveaspectjadvisorfactory.<clinit> ( reflectiveaspectjadvisorfactory.java:74) at Org.springframework.aop.aspectj.annotation.annotationawareaspectjautoproxycreator.<init> ( annotationawareaspectjautoproxycreator.java:53) at Sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method) at Sun.reflect.NativeConstructorAccessorImpl.newInstance (nativeconstructoraccessorimpl.java:57) at Sun.reflect.DelegatingConstructorAccessorIMpl.newinstance (delegatingconstructoraccessorimpl.java:45) at Java.lang.reflect.Constructor.newInstance ( constructor.java:526) at Org.springframework.beans.BeanUtils.instantiateClass (beanutils.java:147) ... Morecaused By:java.lang.ClassNotFoundException:org.aspectj.lang.annotation.Aroundat Org.apache.catalina.loader.WebappClassLoader.loadClass (webappclassloader.java:1720) at Org.apache.catalina.loader.WebappClassLoader.loadClass (webappclassloader.java:1571) ... moreerror:2015-05-01 11:12:16[localhost-startstop-1]-Context initialization Failedorg.springframework.beans.factory.BeanCreationException:Error creating bean with Name ' Org.springframework.aop.config.internalAutoProxyCreator ': Instantiation of Bean failed; Nested exception is org.springframework.beans.BeanInstantiationException:Could not instantiate Bean class [ Org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator]: Constructor threw exception; Nested exception is java.lang.NoClassDefFoundError: Org/aspectj/lang/annotation/aroundat Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean ( abstractautowirecapablebeanfactory.java:1095) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance ( abstractautowirecapablebeanfactory.java:1040) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( abstractautowirecapablebeanfactory.java:505) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:476) at org.springframework.beans.factory.support.abstractbeanfactory$1. GetObject (abstractbeanfactory.java:302) at Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:229) at Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:298) at Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:198) at Org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors ( postprocessorregistrationdelegate.java:220) at Org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors ( abstractapplicationcontext.java:615) at Org.springframework.context.support.AbstractApplicationContext.refresh ( abstractapplicationcontext.java:465) at Org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext (contextloader.java:403) At Org.springframework.web.context.ContextLoader.initWebApplicationContext (contextloader.java:306) at Org.springframework.web.context.ContextLoaderListener.contextInitialized (contextloaderlistener.java:106) at Org.apache.catalina.core.StandardContext.listenerStart (standardcontext.java:4994) at Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5492) at Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:150) at Org.apache.catalina.core.ContAinerbase.addchildinternal (containerbase.java:901) at Org.apache.catalina.core.ContainerBase.addChild ( containerbase.java:877) at Org.apache.catalina.core.StandardHost.addChild (standardhost.java:649) at Org.apache.catalina.startup.HostConfig.deployDirectory (hostconfig.java:1245) at Org.apache.catalina.startup.hostconfig$deploydirectory.run (hostconfig.java:1895) at Java.util.concurrent.executors$runnableadapter.call (executors.java:471) at Java.util.concurrent.FutureTask.run ( futuretask.java:262) at Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1145) at Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:615) at Java.lang.Thread.run ( thread.java:745) caused by:org.springframework.beans.BeanInstantiationException:Could not instantiate Bean class [ Org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator]: Constructor threw exception; Nested exception is Java.lang.noclassdeffounderror:org/aspectj/lang/annotation/aroundat org.Springframework.beans.BeanUtils.instantiateClass (beanutils.java:163) at Org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate ( simpleinstantiationstrategy.java:89) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean ( abstractautowirecapablebeanfactory.java:1088) ... Morecaused By:java.lang.noclassdeffounderror:org/aspectj/lang/annotation/aroundat Org.springframework.aop.aspectj.annotation.reflectiveaspectjadvisorfactory.<clinit> ( reflectiveaspectjadvisorfactory.java:74) at Org.springframework.aop.aspectj.annotation.annotationawareaspectjautoproxycreator.<init> ( annotationawareaspectjautoproxycreator.java:53) at Sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method) at Sun.reflect.NativeConstructorAccessorImpl.newInstance (nativeconstructoraccessorimpl.java:57) at Sun.reflect.DelegatingConstructorAccessorImpl.newInstance (delegatingconstructoraccessorimpl.java:45) at Java.lang.reflect.constructor.nEwinstance (constructor.java:526) at Org.springframework.beans.BeanUtils.instantiateClass (beanutils.java:147) ... Morecaused By:java.lang.ClassNotFoundException:org.aspectj.lang.annotation.Aroundat Org.apache.catalina.loader.WebappClassLoader.loadClass (webappclassloader.java:1720) at Org.apache.catalina.loader.WebappClassLoader.loadClass (webappclassloader.java:1571) ... May 01, 2015 11:12:16 am org.apache.catalina.core.StandardContext listenerstart Serious: Exception Sending context Initia Lized event to listener instance of class Org.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.BeanCreationException: Error creating Bean with Name ' org.springframework.aop.config.internalAutoProxyCreator ': instantiation of Bean failed; Nested exception is org.springframework.beans.BeanInstantiationException:Could not instantiate Bean class [ Org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator]: Constructor threw exception; Nested ExceptiOn is Java.lang.noclassdeffounderror:org/aspectj/lang/annotation/aroundat Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean ( abstractautowirecapablebeanfactory.java:1095) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance ( abstractautowirecapablebeanfactory.java:1040) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( abstractautowirecapablebeanfactory.java:505) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:476) at org.springframework.beans.factory.support.abstractbeanfactory$1. GetObject (abstractbeanfactory.java:302) at Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:229) at Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:298) at Org.springframework.beans.factory. Support. Abstractbeanfactory.getbean (abstractbeanfactory.java:198) at Org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors ( postprocessorregistrationdelegate.java:220) at Org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors ( abstractapplicationcontext.java:615) at Org.springframework.context.support.AbstractApplicationContext.refresh ( abstractapplicationcontext.java:465) at Org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext (contextloader.java:403) At Org.springframework.web.context.ContextLoader.initWebApplicationContext (contextloader.java:306) at Org.springframework.web.context.ContextLoaderListener.contextInitialized (contextloaderlistener.java:106) at Org.apache.catalina.core.StandardContext.listenerStart (standardcontext.java:4994) at Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5492) at Org.apache.catalina.util.LifecycleBase.start (Lifecyclebase.java: @ org.apache.catalina.core.ContainerBase.addChildInternal (containerbase.java:901) at Org.apache.catalina.core.ContainerBase.addChild (containerbase.java:877) at Org.apache.catalina.core.StandardHost.addChild (standardhost.java:649) at Org.apache.catalina.startup.HostConfig.deployDirectory (hostconfig.java:1245) at Org.apache.catalina.startup.hostconfig$deploydirectory.run (hostconfig.java:1895) at Java.util.concurrent.executors$runnableadapter.call (executors.java:471) at Java.util.concurrent.FutureTask.run ( futuretask.java:262) at Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1145) at Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:615) at Java.lang.Thread.run ( thread.java:745) caused by:org.springframework.beans.BeanInstantiationException:Could not instantiate Bean class [ Org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator]: Constructor threw exception; Nested exception is java.lang.noclassdeffounderror:org/Aspectj/lang/annotation/aroundat Org.springframework.beans.BeanUtils.instantiateClass (beanutils.java:163) at Org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate ( simpleinstantiationstrategy.java:89) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean ( abstractautowirecapablebeanfactory.java:1088) ... Morecaused By:java.lang.noclassdeffounderror:org/aspectj/lang/annotation/aroundat Org.springframework.aop.aspectj.annotation.reflectiveaspectjadvisorfactory.<clinit> ( reflectiveaspectjadvisorfactory.java:74) at Org.springframework.aop.aspectj.annotation.annotationawareaspectjautoproxycreator.<init> ( annotationawareaspectjautoproxycreator.java:53) at Sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method) at Sun.reflect.NativeConstructorAccessorImpl.newInstance (nativeconstructoraccessorimpl.java:57) at Sun.reflect.DelegatingConstructorAccessorImpl.newInstance (Delegatingconstructoraccessorimpl.java:) at Java.lang.reflect.Constructor.newInstance (constructor.java:526) at Org.springframework.beans.BeanUtils.instantiateClass (beanutils.java:147) ... Morecaused By:java.lang.ClassNotFoundException:org.aspectj.lang.annotation.Aroundat Org.apache.catalina.loader.WebappClassLoader.loadClass (webappclassloader.java:1720) at Org.apache.catalina.loader.WebappClassLoader.loadClass (webappclassloader.java:1571) ... May 01, 2015 11:12:16 am com.sun.faces.config.ConfigureListener contextinitialized Info: Initialize the context '/springmvch ' of Mojarr A 2.0.3 (FCS b03) May 01, 2015 11:12:16 am com.sun.faces.spi.InjectionProviderFactory CreateInstance info: JSF1048: postconst Ruct/predestroy comments. The Managedbeans method labeled with these comments will indicate that the comment has been processed.  May 01, 2015 11:12:17 am org.apache.catalina.core.StandardContext startinternal severity: Error listenerstart May 01, 2015 11:12:17 Morning Org.apache.catalina.core.StandardContext startinternal serious: Context [/springmvch] startup failed due to previous errors May 01, 2015 11:12:17 am org.apache.catalina.core.ApplicAtioncontext Log Info: Closing Spring root Webapplicationcontext May 01, 2015 11:12:17 AM Org.apache.catalina.loader.WebappClassLoader Checkthreadlocalmapforleaks Serious: The Web application [/SPRINGMVCH] Created a ThreadLocal with key of type [com.sun.faces.util.util$1] (value [[email protected]]) and a value of type [j AVA.UTIL.HASHMAP] (value [{com.sun.faces.patterncache={=}}]) but failed-to-remove it when the Web application was Stoppe  D. Threads is going to be renewed

2. Cause of error

Missing "Aspectjrt.jar"


3. Solutions

Import "Aspectjrt.jar" into the Lib directory

caused By:java.lang.ClassNotFoundException:org.aspectj.lang.annotation.Around

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.