diff --git a/nucleus/admin/server-mgmt/src/main/java/com/sun/enterprise/admin/servermgmt/cli/StartServerHelper.java b/nucleus/admin/server-mgmt/src/main/java/com/sun/enterprise/admin/servermgmt/cli/StartServerHelper.java index 5cc9a178ff9..3d779fa1a24 100644 --- a/nucleus/admin/server-mgmt/src/main/java/com/sun/enterprise/admin/servermgmt/cli/StartServerHelper.java +++ b/nucleus/admin/server-mgmt/src/main/java/com/sun/enterprise/admin/servermgmt/cli/StartServerHelper.java @@ -103,6 +103,8 @@ public class StartServerHelper { private static final String PROPS_HZ_PORT_NAME = "HZ_LISTENER_PORT"; + private static final String PROPS_JMS_PROVIDER_PORT = "JMS_PROVIDER_PORT"; + public StartServerHelper(Logger logger0, boolean terse0, ServerDirs serverDirs0, GFLauncher launcher0, String masterPassword0) { @@ -358,7 +360,9 @@ private String validateAdditionalPortsForConnection() { host = addr.getHost(); Map propsFromXMl = this.launcher.getSysPropsFromXml(); Set> setOfPorts = propsFromXMl.entrySet().stream() - .filter(e -> !e.getKey().contains(PROPS_HZ_PORT_NAME) + .filter(e -> !e.getKey().contains(PROPS_HZ_PORT_NAME) + // Ignore JMS as it might be set to REMOTE + && !e.getKey().contains(PROPS_JMS_PROVIDER_PORT) && e.getKey().contains(PROPS_PORT_NAME)).collect(Collectors.toSet()); for (Map.Entry e: setOfPorts) { if(!NetUtils.isPortFree(host, Integer.parseInt(e.getValue()))) {