Severity: Error Configuring Application Listener of Class Org.springframework.web.context.ContextLoaderListenerjava.lang.ClassNotFoundException: Org.springframework.web.context.ContextLoaderListenerat Org.apache.catalina.loader.WebappClassLoader.loadClass ( webappclassloader.java:1678) at Org.apache.catalina.loader.WebappClassLoader.loadClass (Webappclassloader.java : 1523) at Org.apache.catalina.core.DefaultInstanceManager.loadClass (defaultinstancemanager.java:415) at Org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged (defaultinstancemanager.java:397) at Org.apache.catalina.core.DefaultInstanceManager.newInstance (defaultinstancemanager.java:118) at Org.apache.catalina.core.StandardContext.listenerStart (standardcontext.java:4660) at Org.apache.catalina.core.standardcontext$1.call (standardcontext.java:5226) at Org.apache.catalina.core.standardcontext$1.call (standardcontext.java:5221) at java.util.concurrent.futuretask$ Sync.innerrun (futuretask.java:303) at Java.util.concurrent.FutureTasK.run (futuretask.java:138) at Java.util.concurrent.threadpoolexecutor$worker.runtask (ThreadPoolExecutor.java:886 ) at Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:908) at Java.lang.Thread.run ( thread.java:662) Problem Description:
Project for MAVEN Engineering, the Contextloaderlistener class is located in the Spring-web-4.1.7.release.jar package. Check maven's Pom.xml, dependency introduced normal. In the project Maven dependencies view, it is also possible to see that the Spring-web-3.1.0.release.jar package is introduced in the normal.
cause of error:
Enter the deployment path to Tomcat. Metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ under the check, After the discovery of the project deployment, the Lib directory is not generated under the Web-inf folder, and normally a Lib directory is generated and all dependent jar packages of the project are deployed to that directory.
Solution:
1. Right click on the project-select Properties
Select Deployment Assembly, click the Add button on the right, and select Java Build Path in the pop-up window Entries
2. Click Next to select Maven Dependencies
3. Click Finish, and you can see that maven dependencies has been added to the Web application structure.
After the operation, redeploy the project, no longer error. Then we go to the. Metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ directory, found in the project Web-inf directory automatically generated Lib directory, And all the dependent jar packages have been deployed. The problem is therefore resolved.
New Import Project under MAVEN error: Java.lang.ClassNotFoundException:ContextLoaderL