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
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
- 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 ?