Author: asoldano
Date: 2014-03-07 10:19:59 -0500 (Fri, 07 Mar 2014)
New Revision: 18483
Modified:
common/trunk/src/main/java/org/jboss/ws/common/management/AbstractServerConfig.java
Log:
[JBWS-3772] Fixing default value
Modified:
common/trunk/src/main/java/org/jboss/ws/common/management/AbstractServerConfig.java
===================================================================
---
common/trunk/src/main/java/org/jboss/ws/common/management/AbstractServerConfig.java 2014-03-07
15:15:00 UTC (rev 18482)
+++
common/trunk/src/main/java/org/jboss/ws/common/management/AbstractServerConfig.java 2014-03-07
15:19:59 UTC (rev 18483)
@@ -231,8 +231,14 @@
synchronized (webServiceSecurePortLock)
{
if (webServiceSecurePort <= 0)
- webServiceSecurePort = getConnectorPort(true);
-
+ {
+ final int connectorPort = getConnectorPort(true);
+ //check if the returned port is valid (Undertow service returns plain HTTP
port if no HTTPS connector is installed)
+ if (connectorPort > 0 && connectorPort !=
getConnectorPort(false))
+ {
+ webServiceSecurePort = connectorPort;
+ }
+ }
int localPort = webServiceSecurePort;
if (localPort <= 0)
{
Show replies by date