title: java.lang.AbstractMethodError: javax.servlet.jsp.JspFactory.getJspApplicationContext
body: <p>I have a Spring 3 / Tomcat7 / Servlet 2.4 application that includes a jsp servlet.  The application builds and runs on Eclipse / Tomcat, but fails when deployed on a stand alone server.  The Exception is:</p>
  
  <pre><code>SEVERE: Servlet.service() for servlet jsp threw exception
  java.lang.AbstractMethodError: javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;
      at org.apache.jasper.compiler.Validator$ValidateVisitor.&lt;init&gt;(Validator.java:515)
      at org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1817)
      at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:217)
  </code></pre>
  
  <p>So far, I have established that "AbstractMethodError" indicates possible incompatibilities between compiled and deployed versions of a method(?).  </p>
  
  <p>Also, I am including jstl version 1.1.2 in the pom - I am wondering if something is going on here with org.apache.jasper.compiler and compatability with Tomcat?</p>
  
  <p>javax.servlet.ServletContext in included in the jstl jar however if I exclude this in the pom the exception still persists</p>
  
  <p>I am building with Java 1.7 and running with the same.</p>
  
  <p>Any help appreciated.....</p>