[Migration text] possible causes and solutions of error listenerstart

Source: Internet
Author: User

Error listenerstart is often used in spring projects. Spring, as a large factory, requires a wide variety of configuration items. Therefore, due to human reasons, there are often some flaws in the context configuration file, as a result, contextloaderlistener cannot be started, and an error listenerstart error is reported.

There are also a variety of solutions, but first you need to know where the error is, so it is easier if there is an error stack.

This error stack can be used.Code:

New classpathxmlapplicationcontext ("applicationcontext. xml"). getbean ("sessionfactory ");

In this way, spring loads the sessionfactory bean in the configuration file once, And the beans such as the data source are also loaded. Some data links and configuration errors will generate a complete error stack.

Appendix: jspfactory, so that JSP problems cannot be resolved

Some new application servers have the latest jsp-api.jar, And you deploy the project has the old version of the jar package, the server loaded the jar package, but called the latest method, so the error is reported, delete the old version of the jsp-api.jar or use the old version of the application server can be

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.