Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Jigar N Gajjar
RE: ClassCastException after migrating faces version
November 18, 2016 10:47 AM
Answer

Jigar N Gajjar

Rank: Junior Member

Posts: 71

Join Date: December 24, 2009

Recent Posts

I am facing the same issue as this thread: https://web.liferay.com/community/forums/-/message_boards/message/67678964

I cannot figure out how to load journal article.

<div>
<%
JournalArticle article = JournalArticleLocalServiceUtil.getLatestArticleByUrlTitle(themeDisplay.getScopeGroupId(), "chaingeneralaccountinfo", 0);
%>
<liferay-ui:journal-article articleId="<%= article.getArticleId() %>" articleResourcePrimKey="<%= article.getResourcePrimKey() %>" groupId="<%=themeDisplay.getScopeGroupId() %>" languageId="<%=themeDisplay.getLanguageId() %>" showAvailableLocales="<%=false %>" />
</div>

14:11:38,063 ERROR [http-bio-8080-exec-10][IncludeTag:129] Current URL /group/mds/pages/home?p_p_id=BasicSearch_WAR_MDSportlet&p_p_lifecycle=0&p_p_state=pop_up&p_p_mode=help&p_p_col_id=column-1&p_p_col_count=2&yui_patched_v3_11_0_1_1479478289280_1020=1479478295645 generates exception: An exception occurred processing JSP page /html/taglib/ui/journal_article/page.jsp at line 66____63: </c:if>__64: </c:if>__65: __66: <%= RuntimePageUtil.processXML(request, response, articleDisplay.getContent()) %>__67: </c:if>______Stacktrace:
java.lang.ClassCastException: com.liferay.faces.bridge.application.view.internal.BridgeWriteBehindResponseRenderImpl cannot be cast to com.liferay.portlet.RenderResponseImpl
at com.liferay.portal.layoutconfiguration.util.xml.ActionURLLogic.<init>(ActionURLLogic.java:39)
at com.liferay.portal.layoutconfiguration.util.RuntimePageImpl.processXML(RuntimePageImpl.java:153)
at com.liferay.portal.layoutconfiguration.util.RuntimePageUtil.processXML(RuntimePageUtil.java:77)
at org.apache.jsp.html.taglib.ui.journal_005farticle.page_jsp._jspService(page_jsp.java:707)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
Kyle Joseph Stiemann
RE: ClassCastException after migrating faces version
November 18, 2016 11:05 AM
Answer

Kyle Joseph Stiemann

LIFERAY STAFF

Rank: Liferay Master

Posts: 583

Join Date: January 14, 2013

Recent Posts

Hi Jigar,
liferay-ui:journal-article is a Liferay JSP tag which was never supported Liferay Faces (see legacy Liferay Faces liferay-ui docs).

If you can migrate to facelets, you may be able to accomplish the same goal with portal:runtime. portal:runtime is supported in the latest version of Liferay Faces. Please use the Archetype portlet here to ensure that you are using the correct version of Liferay Faces jars.

- Kyle

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!