MAVEN Project Red exclamation mark +javaweb: Error message the superclass "javax.servlet.http.HttpServlet" Was wasn't found on the Java B

Source: Internet
Author: User
Written yesterday about the solution Javaweb: Error message the superclass "Javax.servlet.http.HttpServlet" was not found on the Java scheme very good to overcome this error, But it doesn't completely solve my problem, and the MAVEN project still has a red exclamation mark. The reason the red exclamation mark exists is that the. Classpath configuration file references a jar package, but the jar does not exist in Lib. The problem that I encountered is a new situation, jar exists in Lib, but still report two errors in the topic. Detailed research found my JAVAEE-API this jar package, although it exists in the local MAVEN library, is the wrong jar (found to be easy to find because it is empty). Solutions such as the following: first to remove the project Maven dependency error Javaee-api.jar (in the Pom file to remove the jar's dependency configuration and then save the jar from the project's Maven dependency), and then to the MAVEN local library to remove the error, and then to the Pom file to the jar dependencies to configure the Save it and you can bring the right jar into the project, and the problem is overcome.

MAVEN Project Red exclamation mark +javaweb: Error message the superclass "javax.servlet.http.HttpServlet" Was wasn't found on the Java B

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.