The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path

前端 未结 17 1876
醉话见心
醉话见心 2020-12-24 02:32

I\'m a beginner and learning spring and hibernate (utilizing maven in project)and came across this problem and got stuck here. tried finding solution but ended up no where.

17条回答
  •  庸人自扰
    2020-12-24 03:28

    I too received the same error as quoted below:

    The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path.

    I followed these steps to resolve the issue:

    1. Right Click on Project
    2. Select Properties
    3. Select Project Facets
    4. Select Apache Tomcat as Runtime server
    5. Click OK

提交回复
热议问题