Skip to content

New manager webapp for Tomcat - #1069

Merged
rmaucher merged 68 commits into
apache:mainfrom
rmaucher:main
Oct 7, 2026
Merged

rmaucher merged 68 commits into
apache:mainfrom
rmaucher:main

Conversation

@rmaucher

@rmaucher rmaucher commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

This is a new more modern manager/admin webapp for Tomcat. It aims at making Tomcat more user friendly during development, test and pre production deployment phases.
The webapp is located in modules/manager2. A testsuite is included.

What it is:

  • A modern reactive webapp designed and implemented using OpenCode (with various models backing it up). It is meant to be tool maintained.
  • Scales down to phone layouts and meant to be used or partially packaged as an application later.
  • The UI is subject to subsequent changes, just like apps often get a fresh look once in a while.
  • A lot of the more complex backend code remains in the existing Manager servlet (webapp deployment and management) and StoreConfig (saving a configuration back to the server.xml storage).
  • Bring back the functionality of the Tomcat Admin webapp from Tomcat 5.

What it is not:

  • A replacement for the tool endpoints (JMX scripting and deployment) provided by the existing legacy manager webapp.
  • A component that will be released independently and has to support N different Tomcat releases. (why: see Maven plugin)
  • A binary release. As a module, it will be source packaged in any future Tomcat 12-M release, but will not ship as a binary or anything. This can eventually move to the main source tree and be backported. Or not.

Use ant to build, ant deploy to put it in the output/build/webapps of the main folder to be able to run it, and ant test to run the tests (which takes time, basically most of the tests use a different config, some test deployment, edit and save to server.xml, so it's hard to avoid it even if I wanted to).

Please keep PR review focused on essentials:

  • If you do not like it and do not want to see it merged, please say so (preferably before it is merged :) ). I will not complain since this was basically an experiment.
  • Significant bugs or issues that must be addressed before merging.
  • There are a few changes to the Tomcat to make TLS configuration more flexible with add/remove of stuff. It is not strictly needed, so I can take it out.
  • I can rename the webapp. I named it "manager2", which works for me because it seemed like Manager Webapp 2.0 and it cannot fully replace the original one either.
  • Please don't review any single trivial defect, we can see about it after merging. The code will go through the usual review/fix cycles anyway.
  • It is Ant based (not Maven), but the directory layout was Maven inspired. I can fix it if needed.

remm and others added 22 commits September 15, 2026 16:03
- Weird endpoint changes to allow flexibility when editing TLS
configuration.
TODO:
- Missing List<UpgradeProtocol> upgradeProtocols configuration (only
specialized HTTP/2 support is really needed in practice).
- Add a "Restart" button (which would do a Stop followed by a Start for
all components that implement Lifecycle. Not all attribute changes take
effect without at least a restart (which attributes work "live" is
rather undocumented), so this is needed after certain changes.
Tested on a phone in portrait or landscape mode.
The only really not so nice item is the icon row.
Also redo the icons and the bar scaling.
Add some accent colors.
Much needed for logs.
@rmaucher

Copy link
Copy Markdown
Contributor Author

Screenshots in many different aspect ratios

Repost on the right PR, sorry for the noise ...

Access log

Screenshot From 2026-09-20 23-56-58

Connector and JVM monitoring

Screenshot From 2026-09-21 10-23-47

Connector and JVM monitoring (phone)

Screenshot From 2026-09-21 10-24-38

Webapp session view (phone)

Screenshot From 2026-09-21 10-25-13

Dashboard

Screenshot From 2026-09-21 10-25-55

Dashboard (phone)

Screenshot From 2026-09-21 10-25-45

Configuration editor (= old admin webapp)

Screenshot From 2026-09-21 10-26-17

Save to server.xml

Screenshot From 2026-09-21 10-27-16

Server logs (intermediate screen size)

Screenshot From 2026-09-21 10-28-25

Was reporting free memory, while most users would expect available
memory.
Co authored with OpenCode.
And fix issues.
Co authored with OpenCode.
Should run much faster (with concurrency).
Fix deprecation.
Co authored with OpenCode.
@rmaucher
rmaucher merged commit 986ac85 into apache:main Oct 7, 2026
10 checks passed
@rmaucher

rmaucher commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

Nobody seemed to complain, and some liked it, so I merged it. Feel free to use your favorite LLM to improve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants