Docker and Payara : problem with endpoints

70 views
Skip to first unread message

theirman

unread,
Jul 22, 2020, 4:24:19 AM7/22/20
to Payara Forum
Hello,
I just did a complete installation of Payara-server 5.201 in docker. 
Everything seems to work correctly except the endpoint urls : Instead of having an expected address in 147.100.xxx.xxx, I get addresses like : http://b4b56e672182:21080/ReferendacWSSoapWS/ReferendacService?wsdl



Obviously, these addresses are not routable and I get an error page as soon as I click on them or try to query them with SoapUI.

How to replace this b4b56e672182 by my ip 147.100.xxx.xxx or its DNS, knowing that the hostname of my machine hosting docker is well configured

Thanks
Thierry

theirman

unread,
Jul 27, 2020, 11:02:28 AM7/27/20
to Payara Forum

Ondro Mihályi

unread,
Jul 30, 2020, 8:50:04 AM7/30/20
to theirman, Payara Forum
Hi theirman,

You need to set the Server Name on the HTTP listener:
image.png
Ondro

po 27. 7. 2020 o 17:02 theirman <thierry...@gmail.com> napísal(a):

--
You received this message because you are subscribed to the Google Groups "Payara Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to payara-forum...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/payara-forum/c135372b-6439-439e-ba7c-063a51a72cd3o%40googlegroups.com.

theirman

unread,
Jul 31, 2020, 5:53:10 AM7/31/20
to Payara Forum
Hello,
Thank you Ondro

I made the changes in my dockerfile to modify the server-name variable (note: the server-name variable is configured via configs.config.<instance-name>.network-config.protocols.protocol.http-listener-1.http.server-name)



I checked that it was taken into account via the administration web interface, as below:



But, I still only have the container name as the WSDL address: 



There still has to be something that needs to be changed for it to work, but what? 
Thanks
Thierry

PS: I keep this modification however because it goes in the right direction to better describe my configuration.

Ondro Mihályi

unread,
Jul 31, 2020, 6:10:56 AM7/31/20
to theirman, Payara Forum
Are you sure that you're looking at the correct config?

The page View WSDL refers to instances named instance-recette-1 and 2, and you also have config instance-recette but you set the server name in the instance-production configuration.

But if it's OK, then it's probably a bug. I know that the server name changes the URL for web apps, maybe the URL generation for WSDL doesn't respect it and that should be fixed.

pi 31. 7. 2020 o 11:53 theirman <thierry...@gmail.com> napísal(a):
--
You received this message because you are subscribed to the Google Groups "Payara Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to payara-forum...@googlegroups.com.

theirman

unread,
Jul 31, 2020, 7:26:51 AM7/31/20
to Payara Forum
Ondro,
what you told me yesterday about the name-server thing popped into my head at lunch. I remembered that, for a classic Payara installation, I had solved this problem by changing not the server-name in Payara but the hostname of my machine.

By checking the hostname of the container, I had : 955d81f5b314

I've been looking for a way to change the name of the container and I've found it!!!!
Just use the option --hostname of docker 



And here's the result:




Hopefully it can help other people !
A thousand thanks
Thierry
Reply all
Reply to author
Forward
0 new messages