Java exception The type javax.servlet.http.HttpServletRequest cannot be resolved

Source: Internet
Author: User

The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required. class files. The meaning of this error is not clear, perhaps, MyEclipse will not automatically find this package Servlet.jar, even in the corresponding project/webroot/web-inf/lib inside, and it is strange that the error is always at the front of the code (the first line position)

Workaround: Add the relevant class jar package to your classpath (right click on a jar package--build path--config build path ...---liberary---add external jar library), join here Servelet-api.jar (This package can be found in the Eclipse/plugins directory, other similar errors are resolved in the same way) to Classpath, OK.

Java exception The type javax.servlet.http.HttpServletRequest cannot be resolved

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.