Eclipse+git+tomcat Error Server Tomcat v7.0 server at localhost failed to start.

Source: Internet
Author: User
Tags tomcat server

Issue: Server Tomcat v7.0 server at localhost failed to start.



It's from the Internet.

Open the following path under your workspace folder:

<workspace-directory>\.metadata\.plugins\org.eclipse.wst.server.core

Delete inside the temp* folder, I have temp0, may be a tomcat corresponding to a temp bar, not very clear, after the deletion of the restart Eclipse,tomcat can be used.



But it didn't work in me, so I followed the code according to the error message.

The error is caused by:java.lang.NoClassDefFoundError:ServletContextEvent

And then suddenly think of it, just pull a recent version of the program, or completely covered the kind of-git reset hard

As a result, the Tomcat server package that was configured in the previous project is erased.


So can not find servletcontextevent corresponding jar bag, so the error can not start;

Workaround:

Re-draw the server configuration again, as shown in the following figure


Related Article

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.