Error creating Bean with Name ' Shirofilter ': Requested Bean was currently in Creation:is there an unresolvable circular re Ference?

Source: Internet
Author: User

When Ssm+shiro+maven is integrated, Tomcat runs an error because it forgets to add annotations on the service layer and the DAO layer's implementation class, plus it's OK. Record it

Related Cause:org.springframework.beans.factory.BeanCurrentlyInCreationException:Error creating bean with Name ' Shirofilter ': Requested Bean is currently in Creation:is there an unresolvable circular reference?
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:472)
At Org.springframework.beans.factory.support.abstractbeanfactory$1.getobject (abstractbeanfactory.java:303)
At Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:230)
At Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:299)
At Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:199)
At Org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors ( postprocessorregistrationdelegate.java:232)
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 : 434)
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:5157)
At Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5680)
At Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:145)
At Org.apache.catalina.core.ContainerBase.addChildInternal (containerbase.java:1017)
At Org.apache.catalina.core.ContainerBase.addChild (containerbase.java:993)
At Org.apache.catalina.core.StandardHost.addChild (standardhost.java:652)
At ORG.APACHE.CATALINA.STARTUP.HOSTCONFIG.MANAGEAPP (hostconfig.java:1900)
At Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
At Sun.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:57)
At Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:43)
At Java.lang.reflect.Method.invoke (method.java:601)
At Org.apache.tomcat.util.modeler.BaseModelMBean.invoke (basemodelmbean.java:301)
At Com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke (defaultmbeanserverinterceptor.java:819)
At Com.sun.jmx.mbeanserver.JmxMBeanServer.invoke (jmxmbeanserver.java:791)
At Org.apache.catalina.mbeans.MBeanFactory.createStandardContext (mbeanfactory.java:618)
At Org.apache.catalina.mbeans.MBeanFactory.createStandardContext (mbeanfactory.java:565)
At Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
At Sun.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:57)
At Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:43)
At Java.lang.reflect.Method.invoke (method.java:601)
At Org.apache.tomcat.util.modeler.BaseModelMBean.invoke (basemodelmbean.java:301)
At Com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke (defaultmbeanserverinterceptor.java:819)
At Com.sun.jmx.mbeanserver.JmxMBeanServer.invoke (jmxmbeanserver.java:791)
At Javax.management.remote.rmi.RMIConnectionImpl.doOperation (rmiconnectionimpl.java:1486)
At javax.management.remote.rmi.rmiconnectionimpl.access$300 (rmiconnectionimpl.java:96)
At Javax.management.remote.rmi.rmiconnectionimpl$privilegedoperation.run (rmiconnectionimpl.java:1327)
At Javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation (rmiconnectionimpl.java:1419)
At Javax.management.remote.rmi.RMIConnectionImpl.invoke (rmiconnectionimpl.java:847)
At Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
At Sun.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:57)
At Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:43)
At Java.lang.reflect.Method.invoke (method.java:601)
At Sun.rmi.server.UnicastServerRef.dispatch (unicastserverref.java:322)
At Sun.rmi.transport.transport$1.run (transport.java:177)
At Sun.rmi.transport.transport$1.run (transport.java:174)
At java.security.AccessController.doPrivileged (Native Method)
At Sun.rmi.transport.Transport.serviceCall (transport.java:173)
At Sun.rmi.transport.tcp.TCPTransport.handleMessages (tcptransport.java:553)
At Sun.rmi.transport.tcp.tcptransport$connectionhandler.run0 (tcptransport.java:808)
At Sun.rmi.transport.tcp.tcptransport$connectionhandler.run (tcptransport.java:667)
At Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1110)
At Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:603)
At Java.lang.Thread.run (thread.java:722)

Error creating Bean with Name ' Shirofilter ': Requested Bean was currently in Creation:is there an unresolvable circular re Ference?

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.