This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new b14bc86f1b Further fix for CI faiures
b14bc86f1b is described below
commit b14bc86f1b9dd1ae03a56959f33de1c95ef8d975
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Oct 1 15:34:40 2026 +0100
Further fix for CI faiures
---
test/org/apache/catalina/ant/jmx/TestJMXAccessorTask.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/test/org/apache/catalina/ant/jmx/TestJMXAccessorTask.java
b/test/org/apache/catalina/ant/jmx/TestJMXAccessorTask.java
index ce56274a92..25424de64f 100644
--- a/test/org/apache/catalina/ant/jmx/TestJMXAccessorTask.java
+++ b/test/org/apache/catalina/ant/jmx/TestJMXAccessorTask.java
@@ -107,6 +107,8 @@ public class TestJMXAccessorTask {
*/
@Test
public void testAccessJMXConnectionReuseAndMismatch() throws Exception {
+ // Force the use of localhost to resolve CI failures
+ System.setProperty("java.rmi.server.hostname", "127.0.0.1");
int port = getAvailablePort();
Registry registry = LocateRegistry.createRegistry(port);
MBeanServer mbeanServer = ManagementFactory.getPlatformMBeanServer();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]