Alright. After all my experiments this morning, here's what I know about writing JSPs on Debian as a beginner in 2026:
1 Boost
0 Likes
4. What you type after `mvn` matters A TON:
- `mvn tomcat:run` runs some 20-ish *if not older* version of Tomcat that can't run `Servlet`s or render JSPs. It disobeys `pom.xml`'s `<configuration>` for `org.apache.tomcat.maven.tomcat7-maven-plugin`; the Web Archive a.k.a. WAR is deployed to an endpoint named after the POM's `artifactId`.
- `mvn tomcat7:run`, which presumably *is* `org.apache.tomcat.maven.tomcat7-maven-plugin`, runs `Servlet`s, renders JSPs, and also supports `@WebServlet`. It works well with the older `javax.servlet.*` APIs.
- Tomcat 11 I installed from the Debian 13 Mirrors also runs everything except it uses the `jakarta.*` APIs.
1. `org.apache.tomcat.maven.tomcat7-maven-plugin` absolutely works.
2. You can and should get the latest Tomcat (as I write this, it's Tomcat 11), from your favorite package-manager, regardless of the fact that the Maven plugin is stuck with 2013's Tomcat 7. Consider the oldest stable release if you want, but I guess latest is fine (as long as it's not bleeding-edge).
3. On Debian 13, Tomcat 11 looks at `/usr/share/tomcat11` for its config, but it's in `/etc/tomcat11`! `shutdown.sh` breaks!