jspeclipse-junom2em2e-wtp

How to get rid of "javax.servlet.jsp.PageContext cannot be resolved to a type" in jsp page with Eclipse?


I have this weird error in a .jsp page in eclipse:

javax.servlet.jsp.PageContext cannot be resolved to a type

My project is a maven project imported into "as an existing maven project" into juno with m2e and m2e-wtp plugins installed.

Is this a bug of the m2e plugins ? If yes, what's a possible workaround to get rid of this error (and the red mark in the workspace explorer) ?

Otherwise, do I need to "tell" to maven that my project contains jsp pages ? And hopefully, the m2e plugin will add the right library to the classpath. If yes, how ?

enter image description here


Solution

  • After upgrading to Kepler and updating all plugins, the issue disapeared. It was probably a bug.