Org. springframework. web. context. ContextLoaderListener solution,
Recently deployed ssm project in tomcat. When tomcat is started, the org. springframework. web. context. ContextLoaderListener error is reported.
Severe: Error Processing ing application listener of class org. springframework. web. context. contextLoaderListenerjava. lang. classNotFoundException: org. springframework. web. context. contextLoaderListener at org. apache. catalina. loader. webappClassLoaderBase. loadClass (WebappClassLoaderBase. java: 1892) at org. apache. catalina. loader. webappClassLoaderBase. loadClass (WebappClassLoaderBase. java: 1735) at org. apache. catalina. core. defaultInstanceManager. loadClass (DefaultInstanceManager. java: 495) at org. apache. catalina. core. defaultInstanceManager. loadClassMaybePrivileged (DefaultInstanceManager. java: 477) at org. apache. catalina. core. defaultInstanceManager. newInstance (defainstinstancemanager. java: 113) at org. apache. catalina. core. standardContext. listenerStart (StandardContext. java: 5026) at org. apache. catalina. core. standardContext. startInternal (StandardContext. java: 5633) at org. apache. catalina. util. lifecycleBase. start (LifecycleBase. java: 145) at org. apache. catalina. core. containerBase. addChildInternal (ContainerBase. java: 1009) at org. apache. catalina. core. containerBase. addChild (ContainerBase. java: 985) at org. apache. catalina. core. standardHost. addChild (StandardHost. java: 652) at org. apache. catalina. startup. hostConfig. deployDirectory (HostConfig. java: 1296) at org. apache. catalina. startup. hostConfig $ DeployDirectory. run (HostConfig. java: 2038) at java. util. concurrent. executors $ RunnableAdapter. call (Executors. java: 471) at java. util. concurrent. futureTask. run (FutureTask. java: 262) at java. util. concurrent. threadPoolExecutor. runWorker (ThreadPoolExecutor. java: 1145) at java. util. concurrent. threadPoolExecutor $ Worker. run (ThreadPoolExecutor. java: 615) at java. lang. thread. run (Thread. java: 744)
This error is probably because the jar is not in the WEB-INF/lib directory when you confirm that all spring configurations are correct.
My solution is to manually add the jar under the WEB-INF/lib.
In eclipse or myeclipse, right-click the project, click Properties, and enter D
Click Deployment Assembly and take a closer look at whether the WEB-INF directory is missing something?
That's right! The jar package is missing.
Click add and select Java Build Path Entries.
Continue to select Maven Dependencies and click Finish.