layout.friendly.url.page.not.found not working on liferay 7.3.7

Oliver Bradonjic, modified 3 Months ago.

layout.friendly.url.page.not.found not working on liferay 7.3.7

New Member Post: 1 Join Date: 5/16/25 Recent Posts

I am using liferay 7.3.7 and have problem to redirect to custom 404 error page

This is my page configuration

and it is available on http://localhost/portal/web/taxportal/error-page

in portal-ext,properties I add this line

layout.friendly.url.page.not.found=/web/taxportal/error-page

But still getting this error page when try to open page which not exists

What I noticed is that if I put in portal-ext,properties not existing url

layout.friendly.url.page.not.found=/web/taxportal/ error

I found this in log

2025-05-16 16:07:42.307 WARN  [http-nio-8080-exec-4][code_jsp:161] {code="500", msg="", uri=/portal/web/taxportal/e-hh}
javax.servlet.ServletException: Filter execution threw an exception
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:196)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:710)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:457)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:384)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
    at com.liferay.portal.util.PortalImpl.sendError(PortalImpl.java:6725)

It seems that portal load this property but still does not show correct page.

Community
Company
Feedback