Fórum

ClassCastException When Using JSTL Tags in Liferay 7 Spring MVC portlet

Anonymous Anonymous, modificado 7 Anos atrás.

ClassCastException When Using JSTL Tags in Liferay 7 Spring MVC portlet

Regular Member Postagens: 127 Data de Entrada: 16/09/19 Postagens Recentes
Hello i am having difficulties with using custom JSTL Tags in JSP view of portlet.
Originaly portlet (Spring MVC) was designed 6.2, now i try to migrate it to 7.0.
I have updated dependencies among others (javax.servlet.jsp-api 2.1 -> 2.3.0 and javax.servlet-api 2.5 -> 3.1.0) in my application as well as in my tag library (which is included in maven as jar dependecy).

Tag usage:

<commons:portletmessages />


I am using Liferay 7.0 CE GA3

Exception:
javax.portlet.PortletException: org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP
PWC6197: An error occurred at line: 22 in the jsp file: /WEB-INF/jsp/portlet/view.jsp
PWC6199: Generated servlet error: package org.apache.jsp.tag.meta does not exist

javax.servlet.ServletException: java.lang.ClassCastException: com.liferay.taglib.servlet.PageContextWrapper cannot be cast to org.apache.jasper.runtime.PageContextImpl


Any ideas?
thumbnail
David Bougearel, modificado 7 Anos atrás.

RE: ClassCastException When Using JSTL Tags in Liferay 7 Spring MVC portlet

Junior Member Postagens: 54 Data de Entrada: 30/06/16 Postagens Recentes
Hi Thomas,

Did you find any solution related to this issue ?

Thanks,
David.
Tomas Zdara, modificado 7 Anos atrás.

RE: ClassCastException When Using JSTL Tags in Liferay 7 Spring MVC portlet

New Member Mensagem: 1 Data de Entrada: 04/03/14 Postagens Recentes
No, i have not. Are you facing same one?
thumbnail
David Bougearel, modificado 7 Anos atrás.

RE: ClassCastException When Using JSTL Tags in Liferay 7 Spring MVC portlet

Junior Member Postagens: 54 Data de Entrada: 30/06/16 Postagens Recentes
Hi Thomas,

Yes i'm facing the same issue and i have not found yet a solution.

Best regards,
David.
Spa Movy, modificado 6 Anos atrás.

RE: ClassCastException When Using JSTL Tags in Liferay 7 Spring MVC portlet

New Member Postagens: 14 Data de Entrada: 07/04/11 Postagens Recentes
I must say, Liferay 7 is worst version ever..

https://issues.liferay.com/browse/LPS-69410

thumbnail
David Bougearel, modificado 6 Anos atrás.

RE: ClassCastException When Using JSTL Tags in Liferay 7 Spring MVC portlet

Junior Member Postagens: 54 Data de Entrada: 30/06/16 Postagens Recentes
It's fixed in the Liferay DXP SP2 version emoticon