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