Getting ClassCastException on JstlUtils$SpringLocalizationContext in JBoss EAP 6
Issue
When navigating by the pages and it has a JSP with jstl tag is thrown the following error. Example fmt:formarDate
JBWEB000236: Servlet.service() for servlet jsp threw exception: java.lang.ClassCastException: org.springframework.web.servlet.support.JstlUtils$SpringLocalizationContext cannot be cast to java.lang.String
at org.apache.taglibs.standard.tag.common.fmt.BundleSupport.getLocalizationContext(BundleSupport.java:178) [jboss-jstl-api_1.2_spec-1.0.10.Final-redhat-1.jar:1.0.10.Final-redhat-1]
at org.apache.taglibs.standard.tag.common.fmt.SetLocaleSupport.getFormattingLocale(SetLocaleSupport.java:320) [jboss-jstl-api_1.2_spec-1.0.10.Final-redhat-1.jar:1.0.10.Final-redhat-1]
at org.apache.taglibs.standard.tag.common.fmt.FormatDateSupport.doEndTag(FormatDateSupport.java:158) [jboss-jstl-api_1.2_spec-1.0.10.Final-redhat-1.jar:1.0.10.Final-redhat-1]
at org.apache.jsp.searchResultPage_jsp._jspx_meth_fmt_005fformatDate_005f0(searchResultPage_jsp.java:1335)
at org.apache.jsp.searchResultPage_jsp._jspService(searchResultPage_jsp.java:876)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:69) [jbossweb-7.5.21.Final-redhat-2.jar:7.5.21.Final-redhat-2]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2]
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:365) [jbossweb-7.5.21.Final-redhat-2.jar:7.5.21.Final-redhat-2]
Environment
Red Hat JBoss Enterprise Application Platform(EAP) 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
