-1
當我在Eclipse Neon中創建JSP頁面時,出現以下錯誤消息:「在Java構建路徑中未找到超類」javax.servlet.http.HttpServlet「由目標運行時集無法解析
"The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path"
當我創建一個Servlet以下錯誤消息出現:
"The import javax.faces cannot be resolved"
其他的答案爲「相同」的問題,說有一個共同的根源:對目標運行時是在項目屬性選中。據此我選擇了Glassfish 4服務器。我可以在Java Resources \ Libraries \ Glassfish Libraries中看到servlet-api.jar。 該servlet錯誤消息消失了,但是其中的JSP仍然存在。我怎麼能消失呢?
不知道,但這可能有幫助! http://stackoverflow.com/questions/10961916/error-package-javax-faces-bean-does-not-exist-at-import-javax-faces-bean-manag – npat89