java.lang.ClassNotFoundException: org.apache.jasper.runtime.JspApplicationContextImpl | jetty:run

Kumar Sambhav picture Kumar Sambhav · Mar 25, 2014 · Viewed 17.5k times · Source

I am getting

java.lang.ClassNotFoundException: org.apache.jasper.runtime.JspApplicationContextImpl

while using jetty:run plugin on a web project.

The issue is occurring only on some machines while working on some !

Java Version Used : 7 Maven Version : 3.1

Relevant dependencies and plugins:-

enter image description here

enter image description here

Answer

Kumar Sambhav picture Kumar Sambhav · Mar 25, 2014

Adding this dependency fixed it :-

      <dependency>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>jsp-2.1</artifactId>
        <version>6.0.0</version>
      </dependency>