Springside4 startup error, springside4 startup Error
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 '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 bean 'securitymanager' while setting bean property 'securitymanager'; nested exception is org. springframework. beans. factory. beanCreationException: Error creating bean 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 bean 'shirodbrealm' while setting bean property 'realm'; nested exception is org. springframework. beans. factory. beanCreationException: Error creating bean with name 'shirodbrealm': Injection of autowired dependencies failed; nested exception is org. springframework. beans. factory. beanCreationException
It's amazing. The first thing that comes to mind is that the XML configuration is wrong? Go to D:/eclipse/workspace /. metadata /. plugins/org. eclipse. wst. server. core/tmp0/wtpwebapps/flowers/WEB-INF/classes/applicationContext-shiro.xml, found that the configuration file exists, then the securityManager configuration in the configuration information has an error, or the securityManager or shiroDbRealm-related classes have problems ...... However, the configuration does not seem to be correct. At least this ShiroDbRealm is included in the SpringSide example. It is okay to run the demo and there should be no errors. So why can't classes be loaded ?? In this case, either the class is not written or the class is not compiled into a class file! Follow these steps to compile the project:
Run again. started successfully!
December 30 1:56:45 org. apache. catalina. core. applicationContext log information: Initializing Spring FrameworkServlet 'springservlet 'December 30, 1:56:46, 2014 org. apache. coyote. abstractProtocol start information: Starting ProtocolHandler ["http-nio-80"] December 30, 2014 1:56:46 org. apache. coyote. abstractProtocol start information: Starting ProtocolHandler ["http-nio-8080"] December 30, 2014 1:56:46 org. apache. coyote. abstractProtocol start information: Starting ProtocolHandler ["ajp-nio-8009"] December 30, 2014 1:56:46 org. apache. catalina. startup. catalina start information: Server startup in 13171 MS
PS: At that time, the Eclipse code was too difficult to compile, and the option of automatic compilation was disabled: