3

You may feel this is a duplicated question, but none of the questions with the same title solve my problems. I am using Jersey 3.0 creating a RESTful web service in Eclipse, I use Tomcat 9.0 as my server.

1 Answer 1

4

Jersey 3.x uses Servlet 5.0, which now uses the Jakarta naming. All the javax.servlet packaging has now changed to jakarta.servlet. The Jersey ServletContainer now extends jakarta.servlet.http.HttpServlet; it is not javax anymore. The first Tomcat to use Jakarta is Tomcat 10.x; Tomcat 9.x still uses the javax.servlet packaging. So if you want to use Jersey 3.x, then you should upgrade your Tomcat to 10.x.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.