This is an automated email from the ASF dual-hosted git repository. jungm pushed a commit to branch ee11 in repository https://gitbox.apache.org/repos/asf/tomee-tck.git
commit 8f447c86c4895bca110564a4ff4d1114dac57143 Author: Markus Jung <[email protected]> AuthorDate: Sun Jul 19 16:29:18 2026 +0200 Assert the JavaTest harness log port (and security-old's LDAP port) free The JavaTest client JVM opens a ServerSocket on the harness log port, so the transactions, faces-old, and security-old guards assert it along with the TomEE ports; the port itself follows tck.harness.log.port. security-old also asserts the immovable in-process LDAP port 11389, which the built old-tck sources hardcode on both the server and the test servlets. --- runner-standalone/faces-old/pom.xml | 6 +++++- runner-standalone/security-old/pom.xml | 11 ++++++++++- runner-standalone/transactions/pom.xml | 6 +++++- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/runner-standalone/faces-old/pom.xml b/runner-standalone/faces-old/pom.xml index 5b0aa51..221fa63 100644 --- a/runner-standalone/faces-old/pom.xml +++ b/runner-standalone/faces-old/pom.xml @@ -259,12 +259,16 @@ <!-- Fail fast if any container port is already bound: the waitfor below only proves *something* answers on the HTTP port, and a foreign server left on 8080 would let this - suite deploy against and test the wrong container. --> + suite deploy against and test the wrong container. The + harness log port is asserted too: the JavaTest client JVM + opens a ServerSocket on it, and a foreign listener there + would break log collection mid-run. --> <exec executable="sh" failonerror="true"> <arg value="${maven.multiModuleProjectDirectory}/environment/tomee/require-tomee-ports-free.sh"/> <arg value="${tomee.http.port}"/> <arg value="${tomee.https.port}"/> <arg value="${tomee.shutdown.port}"/> + <arg value="${tck.harness.log.port}"/> </exec> <exec executable="${tomee.home}/bin/catalina.sh" failonerror="true"> diff --git a/runner-standalone/security-old/pom.xml b/runner-standalone/security-old/pom.xml index 992eb8e..add8c72 100644 --- a/runner-standalone/security-old/pom.xml +++ b/runner-standalone/security-old/pom.xml @@ -352,12 +352,21 @@ <arg value="${tck.derby.port}"/> </exec> - <!-- Fail fast if any container port is already bound. --> + <!-- Fail fast if any container port is already bound. The + harness log port is asserted too (the JavaTest client JVM + opens a ServerSocket on it). Port 11389 is asserted as a + fixed, unmovable port: the in-process UnboundID LDAP server + and the ~95 @LdapIdentityStoreDefinition test servlets in + the built old-tck sources both hardcode + ldap://localhost:11389, so a foreign listener there would + otherwise fail the idstore tests late and opaquely. --> <exec executable="sh" failonerror="true"> <arg value="${maven.multiModuleProjectDirectory}/environment/tomee/require-tomee-ports-free.sh"/> <arg value="${tomee.http.port}"/> <arg value="${tomee.https.port}"/> <arg value="${tomee.shutdown.port}"/> + <arg value="${tck.harness.log.port}"/> + <arg value="11389"/> </exec> <exec executable="${tomee.home}/bin/catalina.sh" failonerror="true"> diff --git a/runner-standalone/transactions/pom.xml b/runner-standalone/transactions/pom.xml index 5a7cf6a..4f95c68 100644 --- a/runner-standalone/transactions/pom.xml +++ b/runner-standalone/transactions/pom.xml @@ -259,12 +259,16 @@ <!-- Fail fast if any container port is already bound: the waitfor below only proves *something* answers on the HTTP port, and a foreign server left on 8080 would let this - suite deploy against and test the wrong container. --> + suite deploy against and test the wrong container. The + harness log port is asserted too: the JavaTest client JVM + opens a ServerSocket on it, and a foreign listener there + would break log collection mid-run. --> <exec executable="sh" failonerror="true"> <arg value="${maven.multiModuleProjectDirectory}/environment/tomee/require-tomee-ports-free.sh"/> <arg value="${tomee.http.port}"/> <arg value="${tomee.https.port}"/> <arg value="${tomee.shutdown.port}"/> + <arg value="${tck.harness.log.port}"/> </exec> <exec executable="${tomee.home}/bin/catalina.sh" failonerror="true">
