WebLogic JSP compilation error for Struts <logic> taglib (ToolFailureException). (Doc ID 1273096.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Weblogic Server - Version: 10.3.3 and later   [Release: and later ]
Information in this document applies to any platform.

Symptoms

When attempting to compile JSP files that contains struts taglib, you will notice the below error in the logs:
weblogic.utils.compiler.ToolFailureException: jspc failed with errors :weblogic.servlet.jsp.CompilationException: menu-error.jsp:7:24: The method setValue(String) in the type CompareTagBase is not applicable for the arguments (int)
<logic:equal value="<%=AdminAuthAction.ADMIN_MENU_RELOAD%>" name="__ADMIN__MENU__">
^-^

at weblogic.servlet.jsp.jspc20.runBodyInternal(jspc20.java:454)
at weblogic.servlet.jsp.jspc20.runJspc(jspc20.java:223)
at weblogic.servlet.jsp.JspcInvoker.compile(JspcInvoker.java:236)
at weblogic.application.compiler.AppcUtils.compileWAR(AppcUtils.java:376)
at weblogic.application.compiler.WARModule.compile(WARModule.java:245)
at weblogic.application.compiler.flow.SingleModuleCompileFlow.proecessModule(SingleModuleCompileFlow.java:18)
at weblogic.application.compiler.flow.SingleModuleFlow.compile(SingleModuleFlow.java:36)
at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
at weblogic.application.compiler.WARCompiler.compile(WARCompiler.java:29)
at weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:112)
at weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:37)
at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
at weblogic.application.compiler.Appc.runBody(Appc.java:198)
at weblogic.utils.compiler.Tool.run(Tool.java:158)
at weblogic.utils.compiler.Tool.run(Tool.java:115)
at weblogic.application.compiler.Appc.main(Appc.java:257)
at weblogic.appc.main(appc.java:14)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms