severity: Exception sending context initialized event to listener instance of class Org.springframework.web.context.Context Loaderlistener
Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' shirofilter ' defined in URL [ file:/d:/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/flowers/web-inf/ Classes/applicationcontext-shiro.xml]: Cannot resolve reference to beans ' securitymanager ' while setting beans property ' SE Curitymanager '; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' SecurityManager ' defined in URL [file:/d:/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/flowers/web-inf/ Classes/Applicationcontext-shiro. XML]: Cannot resolve reference to beans ' shirodbrealm ' while setting beans property ' realm '; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Shirodbrealm ': Injection of autowired dependencies failed; Nested exception is org.springframework.beans.factory.BeanCreationException
very wonderful wood has, the first thought is that the XML configuration is wrong? Navigate tod:/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/flowers/web-inf/ Classes/Applicationcontext-shiro. XML, the discovery configuration file exists, then it isConfiguration information in securitymanager configuration error, or SecurityManager,shirodbrealm related classes have problems ... But the configuration does not seem to be wrong. At least this S . Hirodbrealm is the Springside example comes with, the demo run is no problem, there should be no error, then why the class can not be loaded?? This is not a class is not written or class is not compiled into a class file Ah! try the following to compile the project:
Run again, start successfully!
December 30, 2014 1:56:45 pm org.apache.catalina.core.ApplicationContext Log info: Initializing Spring frameworkservlet ' Springservlet ' December 30, 2014 1:56:46 pm org.apache.coyote.AbstractProtocol start Info: Starting Protocolhandler [" Http-nio-80 "] December 30, 2014 1:56:46 pm org.apache.coyote.AbstractProtocol start Info: Starting Protocolhandler [" http-nio-8080 "] December 30, 2014 1:56:46 pm org.apache.coyote.AbstractProtocol start Info: Starting Protocolhandler [" ajp-nio-8009 "] December 30, 2014 1:56:46 pm Org.apache.catalina.startup.Catalina Start info: Server Startup in 13171 MS
PS: When Eclipse wrote the code too, it turned off the auto-compile option:
Springside4 Start Error