Unable to calculate webservices port, using default 8080 message logged in JBoss EAP 6.
Issue
- When deploying an application, the webservices are deployed on default port 8080, although the
domain.xmlpoints to port 17501 (https). What I see in the logs is :
20160330:105816.151 [MSC service thread 1-8] DEBUG org.jboss.ws.common.management - JBWS022053: Unable to calculate webservices port, using default 8080
It looks like this is causing the wrong port number issue that I observe. Do you know why I get this message?
- After configuring the following in domain.xml :
<subsystem xmlns="urn:jboss:domain:webservices:1.2">
<modify-wsdl-address>true</modify-wsdl-address>
<wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>
<wsdl-port>17501</wsdl-port>
we can see the following wsdl:
....
<wsdl:service name="ReportItemWsFacadeService">
<wsdl:port binding="tns:ReportItemWsFacadeServiceSoapBinding" name="ReportItemWsFacadeServicePort">
<soap:address location="http://localhost:17501/autssreporting-webservice/ReportItemWsFacadeService"/>
</wsdl:port>
</wsdl:service>
......
As you can see the url is http and not https but it is using the configured http port. I conclude the bug is caused by webservice stack which is assuming http communication even if only the https connector is configured.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
