New Eclipse configuration servlet always reports 404 Not Found and servlet Class not Found exception solution

Source: Internet
Author: User

Write today based on the servlet and JSP and uploadify asynchronous file upload, the results of the control file upload Uploadservlet class is always unable to run, has been reported 404 Not Found, the console will also throw a servlet class ClassNotFound exception. I wrote a simple test servlet that could not be easily tested, either by Web.xml configuration or by the way the annotations were configured.

This happens when the Eclipse software installs or updates a version.

The solution is to use the Eclipse custom Servlet generation method, right button, New,servlet

As shown in the following illustration:


The servlet generated by this way is not faulty, and the servlet that you configure will be in effect after the servlet is generated in this way ... Very helpless and unreasonable to say, this may be a similar and initialization of the process .... .......

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.