Springside4 startup error, springside4 startup Error

Source: Internet
Author: User

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:



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.