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.propertiesfrom the portal-ext.properties file and restart the server. - The server should start normally.