Unfortunately I was not able to find any information on how to run a Resteasy based application on Tomcat 10.x. I would appreciate if anybody could show me an example web.xml and pom.xml to make it work.
Asked
Active
Viewed 227 times
0
-
https://howtodoinjava.com/resteasy/resteasy-tomcat-hello-world-application/ – Giorgi Tsiklauri Aug 20 '21 at 18:05
1 Answers
1
RESTeasy 4.x is an implementation of JAX-RS 2.0 and uses the javax.*
namespace. Therefore it will not work with any Jakarta EE 9 server like Tomcat 10 (they use the jakarta.*
package namespace).
You have two solutions:
- You can use a JAX-RS implementation compatible with Jakarta EE 9. At the moment this means Jersey 3.x,
- Use the Tomcat migration tool to replace
javax.*
withjakarta.*
in RESTeasy 4.x.

Piotr P. Karwasz
- 12,857
- 3
- 20
- 43