Migrate Tomcat-Apache to Debian Trixie - #15
Open
lirazsiri wants to merge 5 commits into
Open
Conversation
Move the packaged runtime from unavailable OpenJDK 17 to Debian Trixie OpenJDK 21 while retaining Tomcat 10.1, Apache mod_jk, localhost AJP, firstboot manager credentials, and the documented control-panel deployment. Refresh the appliance description for MariaDB and journal-based logging. Add functional acceptance for service and connector configuration, Apache-to-Tomcat HTTPS requests, manager authentication, live JSP execution, MariaDB, Webmin, package provenance, and the supervised APT update path. Document the README evidence crosswalk, Core inheritance, source choice, and deferred common-runtime cleanup.
The first full Trixie run reached the runtime test but a silent shell assertion stopped after Apache configuration validation, leaving no actionable child result. Report the failing line, status, and command so the next serialized run can distinguish a product defect from a test expectation without broad tracing or harness changes. Verification: bash -n tests/v19.sh; git diff --check.
Debian Trixie reports the numeric Tomcat release as `Server number: 10.1.55.0`. The acceptance test assumed a single space after the colon, so it rejected a healthy runtime before exercising the application flow. Match the exact label while accepting variable field spacing, then retain the 10.1 assertion. Verification: disposable Debian Trixie tomcat10 probe; parser fixture for the two-space 10.1.55.0 output; bash -n tests/v19.sh; git diff --check.
Debian Trixie exposes manager, host-manager, and docs through context descriptors backed by package-owned directories rather than copies in the writable webapps directory. Validate those effective mappings and retain authenticated endpoint checks. Match the Tomcat 10.1 server-info response and use the MariaDB root credential established by firstboot for the database roundtrip. Verification: run 20260824t142905z-2693-26173 reached the descriptor assertion after a healthy boot; disposable Debian Trixie tomcat10-admin/docs probe confirmed all docBase paths; the sibling Tomcat v19 flow supplied the server-info and initialized MariaDB contracts; bash -n tests/v19.sh; git diff --check.
Java may render its IPv4 loopback AJP listener as an IPv4-mapped IPv6 address in ss output. Remove that redundant formatting assertion while retaining the server.xml connector contract, mod_jk worker configuration, disabled HTTP connector check, and real Apache HTTPS requests through AJP. Verification: bash -n tests/v19.sh; git diff --check.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Validation
20260826t050023z-440-32142atf8fd03fbash -n conf.d/main tests/v19.shshellcheck -x conf.d/main tests/v19.shgit diff --check origin/master...HEAD