-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document Tomcat 10/Micronaut 4 compatability (#574)
See https://github.com/micronaut-projects/micronaut-servlet/issues/276\#issuecomment-1728182009
- Loading branch information
Showing
2 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Micronaut 4.0.0 switched to using the new `jakarta.servlet` package for Servlet API classes. | ||
This means that Micronaut 4.0.0+ WAR files will not run on Servlet containers that do not support the `jakarta.servlet` package. | ||
|
||
For example, Tomcat 10 switched to the `jakarta.servlet` package, so Micronaut 4.0.0 is required to run as a WAR on Tomcat 10. | ||
And Micronaut 4.0.0 WAR files cannot be run on Tomcat 9 or earlier. | ||
|
||
If you have a Micronaut 3 based WAR file that you wish to deploy to Tomcat 10, you need to deploy it to the `$CATALINA_BASE/webapps-javaee` directory instead of the usual `$CATALINA_BASE/webapps`, and Tomcat will perform a conversion to jakarta.servlet. |