All Headless API calls return 404 errors
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
learn-legacy-article-disclaimer-text
Issue
- When going to Control Panel > Applications > Process Builder and opening one of our existing workflows to edit it opens the edit screen but cannot load the definition.
- The following errors occur in the logs when accessing the workflow
-
WARN [org.apache.jsp.errors.code_jsp:161] {code="404", msg="/headless-admin-workflow/v1.0/workflow-definitions/by-name/377ba8af-4a00-21d4-e74d-d90d0110952c", uri=/o/headless-admin-workflow/v1.0/workflow-definitions/name/3673jufaf-657e-98h4-e32d-d9056248f52c}
Environment
- After an upgrade from 7.3 to 2024.Q1.6
Resolution
- Remove the following file from the Liferay bundle: osgi/configs/org.apache.aries.jax.rs.whiteboard.default.config
- Clear the /osgi/state/ folder and restart Liferay
- Between 7.3 and 2024.Q1.6 the default value of the configuration was updated in Liferay. If the old value is still enabled in newer versions, it will cause all the REST APIs to be unavailable.
did-this-article-resolve-your-issue