Technote

(troubleshooting)
A servlet error relating to a custom tag attribute is shown in SystemOut.log after reaching a JSP page
Problem(Abstract)
After migration from WebSphere Commerce 5.6 or 5.6.1 to 6.0, the following error shows up when you reach a JSP page, such as a header JSP file:

WebApp E SRVE0026E: [Servlet Error]-[JSPG0228E: Exception caught while translating /ConsumerDirect/include/HeaderFooter/Head.jsp: error in statically included file
/Michele/include/JSTLEnvironmentSetup.jspf(37,1) --> JSPG0124E: Custom tag attribute value cannot be runtime expression. value: "[${CommandContext.locale}]"
Cause From the error, in the JSTLEnvironmentSetup.jspf, the line complaining is:
<c:set var="locale" value="${CommandContext.locale}" scope="page" />

but this line is fine. Instead, the JSP page that includes the JSTLEnvironmentSetup.jspf contains the problem.

The URI path for the taglib contains an incorrect path, which is used in earlier versions, such as WebSphere Commerce 5.6 :

<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>

NOTE: This technote is related to another error which describes a servlet exception that may also be seen. The resolution for that exception is at the following link :
http://www-1.ibm.com/support/docview.wss?uid=swg21247776 Resolving the problem These taglib URI paths are used in earlier versions and the JSTL written in JSP files in WebSphere Commerce 6 are not compatible with earlier versions, so the paths should be changed:
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>


Update all of your JSP files to reflect the new path to prevent the error message.
Cross Reference information
Segment Product Component Platform Version Edition
Commerce WebSphere Commerce Enterprise Migration AIX, i5/OS, Linux, Solaris, Windows 6.0, 6.0.0.1
Commerce WebSphere Commerce Business Edition Migration AIX, i5/OS, Linux, Solaris, Windows 6.0, 6.0.0.1
Commerce WebSphere Commerce Professional Migration AIX, i5/OS, Linux, Solaris, Windows 6.0, 6.0.0.1
Commerce WebSphere Commerce - Express Migration AIX, i5/OS, Linux, Solaris, Windows 6.0, 6.0.0.1
Commerce WebSphere Commerce Developer Enterprise Migration AIX, i5/OS, Linux, Solaris, Windows 6.0, 6.0.0.1
Commerce WebSphere Commerce Developer Business Edition Migration AIX, i5/OS, Linux, Solaris, Windows 6.0, 6.0.0.1
Commerce WebSphere Commerce Developer Professional Migration AIX, i5/OS, Linux, Solaris, Windows 6.0, 6.0.0.1
Commerce WebSphere Commerce Developer Express Migration AIX, i5/OS, Linux, Solaris, Windows 6.0, 6.0.0.1
   

Document Information

Current web document: http://www.ibm.com/support/docview.wss?uid=swg21252647