Legacy Knowledge Base
Published Jun. 30, 2025

JAX-RS web services return error 404 after upgrade DXP 7.3 from u19 to u36

Written By

Sorin Pop

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

  • We have 2 JAX-RS web services that work well with DXP 7.3 u19. We upgrade recently to u36, then the 2 JAX-RS web services do not work anymore. . In the API Explorer we can see our Rest Application with the api and schema like other RestApplication, but they return error 404 when we make a call. 

Environment

  • 7.3

Resolution

  • The REST application might not be listening where you would expect it to listen.
     
    Your jax-rs application @Component also might have a @ApplicationPath("/api") annotation. (or something similar)

 

  • This annotation is now ignored as that /api part was not included in the path (while testing).
    We identified this when we compared the calls that the swagger ui was making with the endpoints described in the gogo shell using jaxrs:check.
  • As a solution, there are other ways to define the application path and we suggest to use them instead.

 

 

Did this article resolve your issue ?

Legacy Knowledge Base