Tomcat Error: Wrapper cannot find servlet class ...

Source: Internet
Author: User

When Tomcat publishes the project, it enters the correct address in the browser and encounters the following issues:

HTTP Status 500-

Javax.servlet.ServletException:Wrapper cannot find servlet class XXX or a class it depends on

....

....

Java.lang.ClassNotFoundException:xxx

....

...

Problem Analysis:

is the <servle-mapping> and <servlet-class> content in the Web. xml file misconfigured?

1. Are the two name consistent 2. The configured class does not have a 3.servlet class that is not compiled so that the servlet class cannot be found;

method: View the class file of the Servlet class under the project's class directory to see if the compilation exists.

There is usually a class file that does not exist for compilation.

Solution:

Eclipse opens project->bulid automatically, and then deploys the release, and if there are no other errors, it will work properly after compilation.

Tomcat Error: Wrapper cannot find servlet class ...

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.