Error about import javax.servlet.* in eclipse

Source: Internet
Author: User
Tags tomcat server

Today in order to debug the servlet I wrote, all of a sudden, found that my site all the servlet is wrong, look carefully, the original is import javax.servlet.* here error.

Then I went online to look up some information, only to find that the original was I reinstalled the Tomcat server a few days ago, is this in addition to the problem?

So I reconfigured to add my newly installed Tomcat server in Eclipse, but the error still occurs, is it not related to the server? But out of careful me, I was re-establishing a project to rewrite a servlet, but this time I was surprised, this time there is no mistake, but the previous site file errors are a lot of. Why is there such a situation?

I thought about it, may be the previous configuration of the server has not been deleted, really did not think wrong, and finally found that all of my previous servers are red forks, only the server just configured is normal. I then replaced all my sites with new servers. All forks are removed, hehe, isn't it very simple?

Let me take a look at the following diagram:

See the whole red fork.

Step Two:



Choose a server without a red fork, you can, is it simple?

Error about import javax.servlet.* in eclipse

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.