本文主要是介绍异常--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的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!