Legacy Knowledge Base
Published Sep. 10, 2025

Getting java.lang.StackOverflowError when starting the server after applying patch

Written By

Madhusudan Sharma

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

While performing an upgrade to the Liferay 7.0 environment (applying the patch), the server is not starting and the following error is observed:

SEVERE [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log StandardWrapper.Throwable
java.lang.StackOverflowError
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findResource(URLClassLoader.java:566)
at java.lang.ClassLoader.getResource(ClassLoader.java:1096)
at java.lang.ClassLoader.getResource(ClassLoader.java:1091)
at java.lang.ClassLoader.getResource(ClassLoader.java:1091)

Environment

  • Liferay DXP 7.0

Resolution

  • Enable the DEBUG log for 'com.liferay.portal.configuration.easyconf.ClassLoaderAggregateProperties' with the help of the article Adjusting Log Levels to persist after portal restart.
  • Restart the Server.
  • Check if the following or similar DEBUG log traces are observed in the startup logs:
DEBUG [localhost-startStop-1][ClassLoaderAggregateProperties:94] Adding file file:/liferay/apps/liferay-dxp-digital-enterprise-7.0-sp2/portal-ext.properties
  • If the above traces are observed, remove the include-and-override=${liferay.home}/portal-ext.properties from the portal-ext.properties file and restart the server.
  • The server should start normally.

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base