Tomcat error: Wrapper cannot find servlet class..., tomcatwrapper

Source: Internet
Author: User

Tomcat error: Wrapper cannot find servlet class..., tomcatwrapper

When tomcat releases the project, enter the correct address in the browser and the following problem occurs:

HTTP Status 500-

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

....

....

Java. lang. ClassNotFoundException: xxx

....

...

Problem Analysis:

Whether the content of <servle-mapping> and <servlet-class> in the web. xml file is configured incorrectly,

1. Whether the two names are consistent 2. Whether the configured class exists 3. Whether the servlet class has not been compiled, so that the servlet class cannot be found;

Method: Check the class file of the servlet class under the class directory of the project to check whether the compilation exists.

There is usually no compiled class file.

Solution:

If Build Automaticlly is not enabled, eclipse enables Project-> Bulid Automatically and re-deploys and releases. If there are no other errors, it can run normally after compilation.

You can also manually click Project -- Build Project to Build a Project upon each release and deployment!

Note: Build Automaticlly is used to automatically Build a project.

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.