ClassNotFoundException error running maven under Eclipse Tomcat

Source: Internet
Author: User

Prism Academy www.prismcollege.com Focus on it online

The following error occurred while deploying the Tomcat MAVEN project today:

Java.lang.ClassNotFoundException:org.springframework.web.context.ContextLoaderListener
At Org.apache.catalina.loader.WebappClassLoader.loadClass (webappclassloader.java:1720)
At Org.apache.catalina.loader.WebappClassLoader.loadClass (webappclassloader.java:1571)
At Org.apache.catalina.core.DefaultInstanceManager.loadClass (defaultinstancemanager.java:506)
At Org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged (defaultinstancemanager.java:488)
At Org.apache.catalina.core.DefaultInstanceManager.newInstance (defaultinstancemanager.java:115)
At Org.apache.catalina.core.StandardContext.listenerStart (standardcontext.java:4932)
At Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5524)
At Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:150)
At Org.apache.catalina.core.containerbase$startchild.call (containerbase.java:1575)
At Org.apache.catalina.core.containerbase$startchild.call (containerbase.java:1565)
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:745)

At first there was no sense of the head, the next look at the configuration, it may be too long without looking at the code problem, Eclipse is a little rusty.

Just set under: Project-Right-click-"Properties-" Deployment Assembly-"Add-" Java Build path*******-"maven*** dependency-" OK.

Re-run tomcat,ok!


Welcome to add QQ Group communication technology issues: 368614849

ClassNotFoundException error running maven under Eclipse Tomcat

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.