Issue
-
we have a problem with our portlets. Sometimes when we restart Liferay, some portlets are failing to deploy. We do not have exact scenario. It can happen for any of our portlet during restart.
Here is exception that we can see in logs:
com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for rss-portlet
at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:29)
at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:91)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._fireDeployEvent(HotDeployUtil.java:167)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:68)
...
Environment
- QR
Resolution
- This probably happens if you have a significant number of war modules (15-20+), and it happens for specifically these kind of modules (war)
- if that's the case, you might be running into the issue described and fixed by https://liferay.atlassian.net/browse/LPD-29738
- to resolve it, upgrade to at least a version that includes that fix (2024.Q2.6, 2024.Q3.0) or kindly request a hotfix with this fix