Payara Server + Angular deploy .war -> Error 404 acess direct URL

Hello!

I’m trying to work with payara server + Angular 17, I’m having a problem generating the .war of the application and deploying it, everything works directly in the context of the application, but if I try to access a valid URL directly that is out of context it gives an error (404), no information in the log or anything.

Example → http://localhost:8080/angular-rest/login, if I only access the context it works normally redirecting to the login and everything works, but any URL accessed directly gives the 404 error.

Has anyone experienced this problem, I’m trying several alternatives and haven’t been able to get around it so far.

Thanks