JAX-RS Resource not found

85 views
Skip to first unread message

Fernando Pulupa Pasquel

unread,
Mar 21, 2024, 12:53:25 AM3/21/24
to WildFly
I have used wildfly up to version 26 without problems

I am migrating to version 27 or higher but it does not display the rest

In version 26 it is deployed as follows

Captura desde 2024-03-20 22-42-04.png

In version 28 0 30 it shows as follows



Captura desde 2024-03-20 23-41-36.png
Does not activate jaxrs

Any suggestion?




Fernando Pulupa Pasquel

unread,
Mar 21, 2024, 11:06:56 AM3/21/24
to WildFly
I found the solution

The problem is that an activator was missing

In Java EE is only necessary Captura desde 2024-03-21 10-03-39.png, but in Jakarta EE is necessary to create a class, Captura desde 2024-03-21 10-05-41.png.

This link helped me understand the problem


Thanks!

Flavia Rainone

unread,
Mar 22, 2024, 4:42:35 AM3/22/24
to WildFly
Thanks for letting us know Fernando!

James Perkins

unread,
Mar 25, 2024, 4:37:01 PM3/25/24
to WildFly
FWIW the XML mapping works as well, but the servlet-name needs to change to jakarta.ws.rs.core.Application. However, using an @ApplicationPath is the preferred way IMO.
Reply all
Reply to author
Forward
0 new messages