Seeing "A JSON web service action is already registered at" WARN messages after upgrading Liferay

Issue

  • After upgrading Liferay, I'm seeing the following WARN message repeatedly in the logs:
    WARN  [main][JSONWebServiceActionsManagerImpl:590] A JSON web service action is already registered at ...
    

Environment

  • Quarterly Release

Resolution

  • These WARN messages are often caused by performing an in-place bundle upgrade (i.e., installing the new Liferay bundle directly over the existing one).
  • In-place upgrades are generally discouraged as they can leave behind files from the previous Liferay version, leading to complex errors and warnings.
  • These leftover files can conflict with the new version, causing issues like duplicate registrations of web service actions.
  • To resolve this issue, please perform a clean upgrade by deploying a fresh Liferay bundle to a new directory. This ensures a clean environment and avoids potential conflicts from leftover files.
    • Always back up your database and Liferay installation directory before performing any upgrade.

Additional Information

这篇文章有帮助吗?
0 人中有 0 人觉得有帮助