JBWEB004135: Equal symbol expected
Issue
- Previously on WebLogic, our JSP pages included a JSTL tag that included an attribute without any specified value so that it was handled as an implicit true boolean:
<form:input ... autofocus />
- Moving to EAP 7, this now fails to compile with the following error:
org.apache.jasper.JasperException: /mypage.jsp (JBWEB004251: An error occurred at line: 163 column: 143) JBWEB004135: Equal symbol expected
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:45)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:276)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:91)
at org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:221)
at org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:167)
at org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:158)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1265)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1487)
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1686)
at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1035)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1305)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1487)
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1686)
at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1035)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1305)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1487)
at org.apache.jasper.compiler.Parser.parse(Parser.java:143)
at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:223)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:102)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:200)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:652)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:347)
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.