The method getServletConfig() is undefined for the type index_jsp

Solution Unverified - Updated -

Issue

  • We try to set our jsp page to a custom class via the extends flag:
<%@ page extends="com.package.CustomJSP"%>
  • This results in the following error on EAP 7:
org.apache.jasper.JasperException: JBWEB004062: Unable to compile class for JSP: 

JBWEB004061: An error occurred at line: 89 in the generated java file
The method getServletConfig() is undefined for the type index_jsp

Environment

  • JBoss Enterprise Application Platform (EAP) 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content