JSP compilation issue

Solution Verified - Updated -

Issue

When using JSP tag like below in application:

<m:today otherInputAttribs="onchange=\"submitTest('<%=WebConstants.REFRESH%>', null)\" ${disabled} "myCustomTag="exampleValue"/>

The following error is showing in JBoss server log when one try to access the jsp in browser after deployment:

ERROR [io.undertow.request] (default task-1) UT005023: Exception handling request to /kitchensink-jsp/reproducer.jsp: org.apache.jasper.JasperException: /reproducer.jsp (JBWEB004251: An error occurred at line: 39 column: 30) JBWEB004195: According to TLD or attribute directive in tag file, attribute otherInputAttribs does not accept any expressions
    at io.undertow.jsp@2.0.11.Final-redhat-00001//org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:45)
    at io.undertow.jsp@2.0.11.Final-redhat-00001//org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:276)
    at io.undertow.jsp@2.0.11.Final-redhat-00001//org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:107)
    at io.undertow.jsp@2.0.11.Final-redhat-00001//org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1214)
    at io.undertow.jsp@2.0.11.Final-redhat-00001//org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:855)
    at io.undertow.jsp@2.0.11.Final-redhat-00001//org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1535)
    at io.undertow.jsp@2.0.11.Final-redhat-00001//org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2375)
    at io.undertow.jsp@2.0.11.Final-redhat-00001//org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2427)
    at io.undertow.jsp@2.0.11.Final-redhat-00001//org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2433)
    at io.undertow.jsp@2.0.11.Final-redhat-00001//org.apache.jasper.compiler.Node$Root.accept(Node.java:464)
    at io.undertow.jsp@2.0.11.Final-redhat-00001//org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2375)
    at io.undertow.jsp@2.0.11.Final-redhat-00001//org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1834)
    at io.undertow.jsp@2.0.11.Final-redhat-00001//org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:218)
    at io.undertow.jsp@2.0.11.Final-redhat-00001//org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
    at io.undertow.jsp@2.0.11.Final-redhat-00001//org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
    at io.undertow.jsp@2.0.11.Final-redhat-00001//org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)
    at io.undertow.jsp@2.0.11.Final-redhat-00001//org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:652)
    at io.undertow.jsp@2.0.11.Final-redhat-00001//org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
    at io.undertow.jsp@2.0.11.Final-redhat-00001//org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)
    at io.undertow.jsp@2.0.11.Final-redhat-00001//org.apache.jasper.servlet.JspServlet.service(JspServlet.java:347)
    at javax.servlet.api@2.0.0.Final-redhat-00001//javax.servlet.http.HttpServlet.service(HttpServlet.java:590)
    at io.undertow.servlet@2.2.19.SP2-redhat-00001//io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
    at io.undertow.servlet@2.2.19.SP2-redhat-00001//io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
    at io.undertow.jsp@2.0.11.Final-redhat-00001//io.undertow.jsp.JspFileHandler.handleRequest(JspFileHandler.java:32)
    at io.undertow.servlet@2.2.19.SP2-redhat-00001//io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)

And the application is not working as expected.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.4.7

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