-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jetty-maven-plugin:11.0.0 not picking up @WebServlet #5964
Comments
A reference project demonstrating the problem is available here: https://github.com/wh81752/cxf-spring-servlet/tree/servlet-3.0 => The problem is shown when changing fom version 10.0.0 to 11.0.0 |
Jetty 11 is based on Jakarta Servlet 5.0 That means you have to use the There is no backward compatibility with The old |
Ahhhh, the namespace of course. Didn't think one second on that, my Intellij even hides all import statements.
I wonder whether it would also be disallowed to scan for the presence of
Anyway, thx for your swift & helpfull response and let's close this issue. |
Jetty version
11.0.0
Java version
OS type/version
Description
I have a (simple) Servlet 3.0 servlet, i.e.
@WebServlet
instead ofweb.xml
. I usejetty-maven-plugin
to test my servlet during development.This works as expected using Jetty version 9.4.36.v20210114 and 10.0.0. It does not work any longer using Jetty 11.0.0. It looks like
@WebServlet
is not picked up:The jetty-maven-plugin is really basic:
The text was updated successfully, but these errors were encountered: