Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Error: javax.servlet.jsp.PageContext cannot be resolved to a type

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 3.52k
    Comment on it

    Running a Maven web project in eclipse was giving errors on jsp pages:

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

    The server was running fine, even the project was running as expected. But eclipse keeps on showing the red crosses on jsp pages.

    It was because the project didnt understand the jsp syntax correctly.

    To remove this error simply add

    <dependency>
    	<groupId>javax.servlet.jsp</groupId>
    	<artifactId>javax.servlet.jsp-api</artifactId>
    	<version>2.2.1</version>
    </dependency>

    After compiling the the errors gone away.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: