Report exception when Project starts
1, exception information
Info: Initializing Spring root Webapplicationcontext
2017-09-07 17:20:44 [Org.springframework.web.context.ContextLoader.initWebApplicationContext (Contextloader.java : 189)]-[info] Root Webapplicationcontext:initialization started
2017-09-07 17:20:45 [Org.springframework.context.support.AbstractApplicationContext.prepareRefresh ( abstractapplicationcontext.java:411)]-[info] refreshing o[email protected]4436414:display name [Root Webapplicationcontext]; startup Date [Thu Sep 17:20:45 CST 2017]; Root of context Hierarchy
2017-09-07 17:20:45 [Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions ( xmlbeandefinitionreader.java:323)]-[info] Loading XML Bean definitions from class path resource [Applicationcontext.xml ]
2017-09-07 17:20:45 [Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions ( xmlbeandefinitionreader.java:323)]-[info] Loading XML Bean definitions from class path resource [Meta-inf/cxf/cxf.xml]
2017-09-07 17:20:45 [Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions ( xmlbeandefinitionreader.java:323)]-[info] Loading XML Bean definitions from class path resource [meta-inf/cxf/ Cxf-extension-soap.xml]
2017-09-07 17:20:45 [Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions ( xmlbeandefinitionreader.java:323)]-[info] Loading XML Bean definitions from class path resource [meta-inf/cxf/ Cxf-servlet.xml]
2017-09-07 17:20:45 [Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions ( xmlbeandefinitionreader.java:323)]-[info] Loading XML Bean definitions from class path resource [Config/spring/legal_ Person_datasource.xml]
2017-09-07 17:20:46 [Org.springframework.web.context.ContextLoader.initWebApplicationContext (Contextloader.java : 215)]-[error] Context initialization failed
Org.springframework.beans.factory.parsing.BeanDefinitionParsingException:Configuration problem:failed to import Bean definitions from relative location [Config/spring/legal_person_datasource.xml]
Offending Resource:class path resource [applicationcontext.xml]; Nested exception is org.springframework.beans.factory.BeanDefinitionStoreException:Unexpected exception parsing XML Document from class path resource [Config/spring/legal_person_datasource.xml]; Nested exception is Java.lang.IllegalStateException:AnnotationAwareAspectJAutoProxyCreator are only available on Java 1.5 and higher
At Org.springframework.beans.factory.parsing.FailFastProblemReporter.error (failfastproblemreporter.java:68)
At Org.springframework.beans.factory.parsing.ReaderContext.error (readercontext.java:85)
At Org.springframework.beans.factory.parsing.ReaderContext.error (readercontext.java:76)
At Org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource ( defaultbeandefinitiondocumentreader.java:201)
At Org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement ( defaultbeandefinitiondocumentreader.java:147)
At Org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions ( defaultbeandefinitiondocumentreader.java:132)
At Org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions ( defaultbeandefinitiondocumentreader.java:92)
At Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions ( xmlbeandefinitionreader.java:507)
At Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions ( xmlbeandefinitionreader.java:398)
At Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions ( xmlbeandefinitionreader.java:342)
At Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions ( xmlbeandefinitionreader.java:310)
At Org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions ( abstractbeandefinitionreader.java:143)
At Org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions ( abstractbeandefinitionreader.java:178)
At Org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions ( abstractbeandefinitionreader.java:149)
At Org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions ( xmlwebapplicationcontext.java:124)
At Org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions ( xmlwebapplicationcontext.java:92)
At Org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory ( abstractrefreshableapplicationcontext.java:123)
At Org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory ( abstractapplicationcontext.java:422)
At Org.springframework.context.support.AbstractApplicationContext.refresh (abstractapplicationcontext.java:352)
At Org.springframework.web.context.ContextLoader.createWebApplicationContext (contextloader.java:255)
At Org.springframework.web.context.ContextLoader.initWebApplicationContext (contextloader.java:199)
At Com.zjhcsoft.common.spring.listener.SingleContextListener.contextInitialized (singlecontextlistener.java:34)
At Org.apache.catalina.core.StandardContext.listenerStart (standardcontext.java:5003)
At Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5517)
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:652)
At Org.apache.catalina.startup.HostConfig.deployDirectory (hostconfig.java:1263)
At Org.apache.catalina.startup.hostconfig$deploydirectory.run (hostconfig.java:1948)
At Java.util.concurrent.executors$runnableadapter.call (executors.java:511)
At Java.util.concurrent.FutureTask.run (futuretask.java:266)
At Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1142)
At Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:617)
At Java.lang.Thread.run (thread.java:745)
caused by:org.springframework.beans.factory.BeanDefinitionStoreException:Unexpected exception parsing XML document From class path resource [Config/spring/legal_person_datasource.xml]; Nested exception is Java.lang.IllegalStateException:AnnotationAwareAspectJAutoProxyCreator are only available on Java 1.5 and higher
At Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions ( xmlbeandefinitionreader.java:420)
At Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions ( xmlbeandefinitionreader.java:342)
At Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions ( xmlbeandefinitionreader.java:310)
At Org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource ( defaultbeandefinitiondocumentreader.java:190)
... More
caused By:java.lang.IllegalStateException:AnnotationAwareAspectJAutoProxyCreator is only available on Java 1.5 and high Er
At Org.springframework.aop.config.AopConfigUtils.getAspectJAnnotationAutoProxyCreatorClassIfPossible ( aopconfigutils.java:134)
At Org.springframework.aop.config.AopConfigUtils.registerAspectJAnnotationAutoProxyCreatorIfNecessary ( AOPCONFIGUTILS.JAVA:99)
At Org.springframework.aop.config.AopNamespaceUtils.registerAspectJAnnotationAutoProxyCreatorIfNecessary ( AOPNAMESPACEUTILS.JAVA:71)
At Org.springframework.aop.config.AspectJAutoProxyBeanDefinitionParser.parse ( ASPECTJAUTOPROXYBEANDEFINITIONPARSER.JAVA:41)
At Org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse (namespacehandlersupport.java:69)
At Org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement ( beandefinitionparserdelegate.java:1297)
At Org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement ( beandefinitionparserdelegate.java:1287)
At Org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions ( defaultbeandefinitiondocumentreader.java:135)
At Org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions ( defaultbeandefinitiondocumentreader.java:92)
At Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions ( xmlbeandefinitionreader.java:507)
At Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions ( xmlbeandefinitionreader.java:398)
... More
September 07, 2017 5:20:46 pm Org.apache.catalina.core.StandardContext listenerstart
Severity: Exception sending context initialized event to listener instance of class Com.zjhcsoft.common.spring.listener.SingleC Ontextlistener
Org.springframework.beans.factory.parsing.BeanDefinitionParsingException:Configuration problem:failed to import Bean definitions from relative location [Config/spring/legal_person_datasource.xml]
Offending Resource:class path resource [applicationcontext.xml]; Nested exception is org.springframework.beans.factory.BeanDefinitionStoreException:Unexpected exception parsing XML Document from class path resource [Config/spring/legal_person_datasource.xml]; Nested exception is Java.lang.IllegalStateException:AnnotationAwareAspectJAutoProxyCreator are only available on Java 1.5 and higher
At Org.springframework.beans.factory.parsing.FailFastProblemReporter.error (failfastproblemreporter.java:68)
At Org.springframework.beans.factory.parsing.ReaderContext.error (readercontext.java:85)
At Org.springframework.beans.factory.parsing.ReaderContext.error (readercontext.java:76)
At Org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource ( defaultbeandefinitiondocumentreader.java:201)
At Org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement ( defaultbeandefinitiondocumentreader.java:147)
At Org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions ( defaultbeandefinitiondocumentreader.java:132)
At Org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions ( defaultbeandefinitiondocumentreader.java:92)
At Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions ( xmlbeandefinitionreader.java:507)
At Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions ( xmlbeandefinitionreader.java:398)
At Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions ( xmlbeandefinitionreader.java:342)
At Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions ( xmlbeandefinitionreader.java:310)
At Org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions ( abstractbeandefinitionreader.java:143)
At Org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions ( abstractbeandefinitionreader.java:178)
At Org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions ( abstractbeandefinitionreader.java:149)
At Org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions ( xmlwebapplicationcontext.java:124)
At Org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions ( xmlwebapplicationcontext.java:92)
At Org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory ( abstractrefreshableapplicationcontext.java:123)
At Org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory ( abstractapplicationcontext.java:422)
At Org.springframework.context.support.AbstractApplicationContext.refresh (abstractapplicationcontext.java:352)
At Org.springframework.web.context.ContextLoader.createWebApplicationContext (contextloader.java:255)
At Org.springframework.web.context.ContextLoader.initWebApplicationContext (contextloader.java:199)
At Com.zjhcsoft.common.spring.listener.SingleContextListener.contextInitialized (singlecontextlistener.java:34)
At Org.apache.catalina.core.StandardContext.listenerStart (standardcontext.java:5003)
At Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5517)
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:652)
At Org.apache.catalina.startup.HostConfig.deployDirectory (hostconfig.java:1263)
At Org.apache.catalina.startup.hostconfig$deploydirectory.run (hostconfig.java:1948)
At Java.util.concurrent.executors$runnableadapter.call (executors.java:511)
At Java.util.concurrent.FutureTask.run (futuretask.java:266)
At Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1142)
At Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:617)
At Java.lang.Thread.run (thread.java:745)
caused by:org.springframework.beans.factory.BeanDefinitionStoreException:Unexpected exception parsing XML document From class path resource [Config/spring/legal_person_datasource.xml]; Nested exception is Java.lang.IllegalStateException:AnnotationAwareAspectJAutoProxyCreator are only available on Java 1.5 and higher
At Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions ( xmlbeandefinitionreader.java:420)
At Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions ( xmlbeandefinitionreader.java:342)
At Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions ( xmlbeandefinitionreader.java:310)
At Org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource ( defaultbeandefinitiondocumentreader.java:190)
... More
caused By:java.lang.IllegalStateException:AnnotationAwareAspectJAutoProxyCreator is only available on Java 1.5 and high Er
At Org.springframework.aop.config.AopConfigUtils.getAspectJAnnotationAutoProxyCreatorClassIfPossible ( aopconfigutils.java:134)
At Org.springframework.aop.config.AopConfigUtils.registerAspectJAnnotationAutoProxyCreatorIfNecessary ( AOPCONFIGUTILS.JAVA:99)
At Org.springframework.aop.config.AopNamespaceUtils.registerAspectJAnnotationAutoProxyCreatorIfNecessary ( AOPNAMESPACEUTILS.JAVA:71)
At Org.springframework.aop.config.AspectJAutoProxyBeanDefinitionParser.parse ( ASPECTJAUTOPROXYBEANDEFINITIONPARSER.JAVA:41)
At Org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse (namespacehandlersupport.java:69)
At Org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement ( beandefinitionparserdelegate.java:1297)
At Org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement ( beandefinitionparserdelegate.java:1287)
At Org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions ( defaultbeandefinitiondocumentreader.java:135)
At Org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions ( defaultbeandefinitiondocumentreader.java:92)
At Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions ( xmlbeandefinitionreader.java:507)
At Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions ( xmlbeandefinitionreader.java:398)
... More
September 07, 2017 5:20:46 pm Org.apache.catalina.core.StandardContext startinternal
Critical: One or more listeners failed to start. Full details would be found in the appropriate container log file
September 07, 2017 5:20:46 pm Org.apache.catalina.core.StandardContext startinternal
Severity: Context [/hzgoveg] startup failed due to previous errors
September 07, 2017 5:20:46 pm Org.apache.catalina.core.ApplicationContext Log
Info: Closing Spring root Webapplicationcontext
September 07, 2017 5:20:46 pm Org.apache.catalina.startup.HostConfig deploydirectory
Information: Deployment of Web application directory D:\apache-tomcat-7.0.64\webapps\hzgoveg have finished in 7,353 MS
September 07, 2017 5:20:46 pm Org.apache.catalina.startup.HostConfig deploydirectory
Info: Deploying Web application Directory D:\apache-tomcat-7.0.64\webapps\manager
September 07, 2017 5:20:46 pm Org.apache.catalina.startup.TldConfig Execute
Info: At least one JAR is scanned for TLDs yet contained no TLDs. Enable debug logging for the logger for a complete list of JARs that were scanned and no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
September 07, 2017 5:20:46 pm Org.apache.catalina.startup.HostConfig deploydirectory
Information: Deployment of Web application directory D:\apache-tomcat-7.0.64\webapps\manager have finished in 281 ms
September 07, 2017 5:20:46 pm Org.apache.coyote.AbstractProtocol start
Info: Starting Protocolhandler ["http-bio-8080"]
September 07, 2017 5:20:46 pm Org.apache.coyote.AbstractProtocol start
Info: Starting Protocolhandler ["ajp-bio-8009"]
September 07, 2017 5:20:46 pm Org.apache.catalina.startup.Catalina start
Info: Server Startup in 9507 MS
2, on the code
Load does not move <aop:aspectj-autoproxy/> this,
3, Reasons for thinking:
3.1 may be insufficient jar package, less SOP package, resulting in the inability to load this tag (loading tag is loading a class), and then add, the result is not
3.2 may be a conflict with a place, after checking the Java 1.8 and ASPECTJ conflicts, the computer installed 1.7 and 1.8 two versions, but do not uninstall clean 1.8, in the C-drive System32 there will be 1.8,
Even if the javahome of the environment variable is changed, the 1.8 version is displayed. After unloading, only 1.7, the project is working properly.
Report exception: Annotationawareaspectjautoproxycreator is only available on Java 1.5 and higher