异常--Error creating bean with name 'org.springframework.context.annotation.internalAsyncAnnotationPro

本文主要是介绍异常--Error creating bean with name 'org.springframework.context.annotation.internalAsyncAnnotationPro,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

一月 17, 2018 9:35:48 上午 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:springmvcthird' did not find a matching property.
一月 17, 2018 9:35:48 上午 org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version:        Apache Tomcat/8.0.28
一月 17, 2018 9:35:48 上午 org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built:          Oct 7 2015 18:25:21 UTC
一月 17, 2018 9:35:48 上午 org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number:         8.0.28.0
一月 17, 2018 9:35:48 上午 org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name:               Windows 8
一月 17, 2018 9:35:48 上午 org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version:            6.2
一月 17, 2018 9:35:48 上午 org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture:          amd64
一月 17, 2018 9:35:48 上午 org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home:             D:\Program Files\Java\jdk1.7.0_17\jre
一月 17, 2018 9:35:48 上午 org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version:           1.7.0_17-b02
一月 17, 2018 9:35:48 上午 org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor:            Oracle Corporation
一月 17, 2018 9:35:48 上午 org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE:         E:\Javacode\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
一月 17, 2018 9:35:48 上午 org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME:         D:\tomcat\apache-tomcat-8.0.28-windows-x64\apache-tomcat-8.0.28
一月 17, 2018 9:35:48 上午 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:3871
一月 17, 2018 9:35:48 上午 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=E:\Javacode\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
一月 17, 2018 9:35:48 上午 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=D:\tomcat\apache-tomcat-8.0.28-windows-x64\apache-tomcat-8.0.28
一月 17, 2018 9:35:48 上午 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=E:\Javacode\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
一月 17, 2018 9:35:48 上午 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=D:\tomcat\apache-tomcat-8.0.28-windows-x64\apache-tomcat-8.0.28\endorsed
一月 17, 2018 9:35:48 上午 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Xms256m
一月 17, 2018 9:35:48 上午 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Xmx512m
一月 17, 2018 9:35:48 上午 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -XX:PermSize=256m
一月 17, 2018 9:35:48 上午 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -XX:MaxPermSize=256M
一月 17, 2018 9:35:48 上午 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=UTF-8
一月 17, 2018 9:35:48 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Java\jdk1.7.0_17\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:/Program Files/Java/jdk1.7.0_17/bin/../jre/bin/server;D:/Program Files/Java/jdk1.7.0_17/bin/../jre/bin;D:/Program Files/Java/jdk1.7.0_17/bin/../jre/lib/amd64;D:\Java\apache-maven-3.3.9-bin\apache-maven-3.3.9\bin;C:\shortPath\apache-cxf-2.5.9\bin;D:\Program Files\Java\jdk1.7.0_17\bin;D:\Program Files\Java\jdk1.7.0_17\jre\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\; D:\Program Files\TortoiseSVN\bin;D:\Java\apache-maven-3.3.9-bin\apache-maven-3.3.9\bin;C:\Program Files (x86)\Vim\vim72;C:\Program Files (x86)\MySQL\MySQL Utilities 1.3.4\;C:\Program Files\PuTTY\;d:\Program Files (x86)\SSH Communications Security\SSH Secure Shell;D:\软件\学习软件\JavaEE\eclipse-jee-mars-1-win32-x86_64\eclipse;;.
一月 17, 2018 9:35:48 上午 org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
一月 17, 2018 9:35:48 上午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
一月 17, 2018 9:35:48 上午 org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-nio-8009"]
一月 17, 2018 9:35:48 上午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
一月 17, 2018 9:35:48 上午 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2399 ms
一月 17, 2018 9:35:49 上午 org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
一月 17, 2018 9:35:49 上午 org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.0.28
一月 17, 2018 9:35:52 上午 org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
一月 17, 2018 9:35:52 上午 org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
一月 17, 2018 9:35:52 上午 org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
一月 17, 2018 9:35:56 上午 org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.annotation.internalAsyncAnnotationProcessor': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/aopalliance/aop/Adviceat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:532)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:741)at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4738)at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5181)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)at java.util.concurrent.FutureTask.run(FutureTask.java:166)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:722)
Caused by: java.lang.NoClassDefFoundError: org/aopalliance/aop/Adviceat org.springframework.scheduling.annotation.AsyncAnnotationBeanPostProcessor.setBeanFactory(AsyncAnnotationBeanPostProcessor.java:78)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeAwareMethods(AbstractAutowireCapableBeanFactory.java:1506)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1474)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)... 20 more
Caused by: java.lang.ClassNotFoundException: org.aopalliance.aop.Adviceat org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1333)at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167)... 24 more一月 17, 2018 9:35:56 上午 org.apache.catalina.core.StandardContext startInternal
SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file
一月 17, 2018 9:35:56 上午 org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/springmvcthird] startup failed due to previous errors
一月 17, 2018 9:35:56 上午 org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
一月 17, 2018 9:35:56 上午 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8080"]
一月 17, 2018 9:35:56 上午 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-nio-8009"]
一月 17, 2018 9:35:56 上午 org.apache.catalina.startup.Catalina start
INFO: Server startup in 7220 ms


解决方案:

缺少jar包,添加aopalliance-1.0.jar即可






这篇关于异常--Error creating bean with name 'org.springframework.context.annotation.internalAsyncAnnotationPro的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1061191

相关文章

mysql出现ERROR 2003 (HY000): Can‘t connect to MySQL server on ‘localhost‘ (10061)的解决方法

《mysql出现ERROR2003(HY000):Can‘tconnecttoMySQLserveron‘localhost‘(10061)的解决方法》本文主要介绍了mysql出现... 目录前言:第一步:第二步:第三步:总结:前言:当你想通过命令窗口想打开mysql时候发现提http://www.cpp

Java异常架构Exception(异常)详解

《Java异常架构Exception(异常)详解》:本文主要介绍Java异常架构Exception(异常),具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录1. Exception 类的概述Exception的分类2. 受检异常(Checked Exception)

Java报NoClassDefFoundError异常的原因及解决

《Java报NoClassDefFoundError异常的原因及解决》在Java开发过程中,java.lang.NoClassDefFoundError是一个令人头疼的运行时错误,本文将深入探讨这一问... 目录一、问题分析二、报错原因三、解决思路四、常见场景及原因五、深入解决思路六、预http://www

一文带你深入了解Python中的GeneratorExit异常处理

《一文带你深入了解Python中的GeneratorExit异常处理》GeneratorExit是Python内置的异常,当生成器或协程被强制关闭时,Python解释器会向其发送这个异常,下面我们来看... 目录GeneratorExit:协程世界的死亡通知书什么是GeneratorExit实际中的问题案例

Spring 中使用反射创建 Bean 实例的几种方式

《Spring中使用反射创建Bean实例的几种方式》文章介绍了在Spring框架中如何使用反射来创建Bean实例,包括使用Class.newInstance()、Constructor.newI... 目录1. 使用 Class.newInstance() (仅限无参构造函数):2. 使用 Construc

Java捕获ThreadPoolExecutor内部线程异常的四种方法

《Java捕获ThreadPoolExecutor内部线程异常的四种方法》这篇文章主要为大家详细介绍了Java捕获ThreadPoolExecutor内部线程异常的四种方法,文中的示例代码讲解详细,感... 目录方案 1方案 2方案 3方案 4结论方案 1使用 execute + try-catch 记录

Springboot控制反转与Bean对象的方法

《Springboot控制反转与Bean对象的方法》文章介绍了SpringBoot中的控制反转(IoC)概念,描述了IoC容器如何管理Bean的生命周期和依赖关系,它详细讲解了Bean的注册过程,包括... 目录1 控制反转1.1 什么是控制反转1.2 SpringBoot中的控制反转2 Ioc容器对Bea

解决java.lang.NullPointerException问题(空指针异常)

《解决java.lang.NullPointerException问题(空指针异常)》本文详细介绍了Java中的NullPointerException异常及其常见原因,包括对象引用为null、数组元... 目录Java.lang.NullPointerException(空指针异常)NullPointer

在 Spring Boot 中使用 @Autowired和 @Bean注解的示例详解

《在SpringBoot中使用@Autowired和@Bean注解的示例详解》本文通过一个示例演示了如何在SpringBoot中使用@Autowired和@Bean注解进行依赖注入和Bean... 目录在 Spring Boot 中使用 @Autowired 和 @Bean 注解示例背景1. 定义 Stud

关于Spring @Bean 相同加载顺序不同结果不同的问题记录

《关于Spring@Bean相同加载顺序不同结果不同的问题记录》本文主要探讨了在Spring5.1.3.RELEASE版本下,当有两个全注解类定义相同类型的Bean时,由于加载顺序不同,最终生成的... 目录问题说明测试输出1测试输出2@Bean注解的BeanDefiChina编程nition加入时机总结问题说明