This benefits native image building and AOT compilation, as reflection requires manual configuration.

The Servlet specification doesn't allow context listeners to programatically add filters/servlets, so I'm changing the code to add a ServletContainerInitializer. This will add the context listener automatically

https://download.oracle.com/otn-pub/jcp/servlet-3.0-fr-eval-oth-JSpec/servlet-3_0-final-spec.pdf (Section 4.4 , Page 30)

Comment From: fhanik

Reviewing failures. Do not merge yet.

Comment From: wilkinsona

Thanks very much, @fhanik.