Aspectjweaver. jar is missing in Spring.

Source: Internet
Author: User

1. Exception information: org/aspectj/weaver/reflect/ReflectionWorld $ ReflectionWorldException;


2. Cause of exception: the aspectjweaver. jar package is missing. This package is required for spring to integrate the AspectJ LTW scheduler;

3. Solution: add the aspectjweaver. jar package to the project.

Exception Code
Java. lang. NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld $ ReflectionWorldException
At java. lang. Class. getDeclaredMethods0 (Native Method)
At java. lang. Class. privateGetDeclaredMethods (Class. java: 2427)
At java. lang. Class. getDeclaredMethods (Class. java: 1791)
At org. springframework. core. type. StandardAnnotationMetadata. hasAnnotatedMethods (StandardAnnotationMetadata. java: 136)
At org. springframework. context. annotation. ConfigurationClassBeanDefinitionReader. checkConfigurationClassCandidate (ConfigurationClassBeanDefinitionReader. java: 318)
At org. springframework. context. annotation. ConfigurationClassPostProcessor. processConfigBeanDefinitions (ConfigurationClassPostProcessor. java: 175)
At org. springframework. context. annotation. ConfigurationClassPostProcessor. postProcessBeanDefinitionRegistry (ConfigurationClassPostProcessor. java: 144)
At org. springframework. context. support. AbstractApplicationContext. invokeBeanFactoryPostProcessors (AbstractApplicationContext. java: 599)
At org. springframework. context. support. AbstractApplicationContext. refresh (AbstractApplicationContext. java: 407)
At org. springframework. web. context. ContextLoader. createWebApplicationContext (ContextLoader. java: 282)
At org. springframework. web. context. ContextLoader. initWebApplicationContext (ContextLoader. java: 204)
At org. springframework. web. context. ContextLoaderListener. contextInitialized (ContextLoaderListener. java: 47)
At org. apache. catalina. core. StandardContext. listenerStart (StandardContext. java: 4205)
At org. apache. catalina. core. StandardContext. start (StandardContext. java: 4704)
At org. apache. catalina. core. ContainerBase. addChildInternal (ContainerBase. java: 799)
At org. apache. catalina. core. ContainerBase. addChild (ContainerBase. java: 779)
At org. apache. catalina. core. StandardHost. addChild (StandardHost. java: 601)
At org. apache. catalina. startup. HostConfig. deployDirectory (HostConfig. java: 1079)
At org. apache. catalina. startup. HostConfig. deployDirectories (HostConfig. java: 1002)
At org. apache. catalina. startup. HostConfig. deployApps (HostConfig. java: 506)
At org. apache. catalina. startup. HostConfig. start (HostConfig. java: 1315)
At org. apache. catalina. startup. HostConfig. lifecycleEvent (HostConfig. java: 324)
At org. apache. catalina. util. LifecycleSupport. fireLifecycleEvent (LifecycleSupport. java: 142)
At org. apache. catalina. core. ContainerBase. start (ContainerBase. java: 1061)
At org. apache. catalina. core. StandardHost. start (StandardHost. java: 840)
At org. apache. catalina. core. ContainerBase. start (ContainerBase. java: 1053)
At org. apache. catalina. core. StandardEngine. start (StandardEngine. java: 463)
At org. apache. catalina. core. StandardService. start (StandardService. java: 525)
At org. apache. catalina. core. StandardServer. start (StandardServer. java: 754)
At org. apache. catalina. startup. Catalina. start (Catalina. java: 595)
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. apache. catalina. startup. Bootstrap. start (Bootstrap. java: 289)
At org. apache. catalina. startup. Bootstrap. main (Bootstrap. java: 414)
Caused by: java. lang. ClassNotFoundException: org. aspectj. weaver. reflect. ReflectionWorld $ ReflectionWorldException
At org. apache. catalina. loader. WebappClassLoader. loadClass (WebappClassLoader. java: 1680)
At org. apache. catalina. loader. WebappClassLoader. loadClass (WebappClassLoader. java: 1526)
... 36 more
Pom solution code
<Dependency>
<GroupId> org. aspectj </groupId>
<ArtifactId> aspectjweaver </artifactId>
<Version> 1.6.12 </version>
</Dependency>

Related Article

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.