oracle/docker-images

weblogic uses the external mapped port inside the container when 7201:7001 docker port mapping is used

Open

#1860 aperta il 12 feb 2021

Vedi su GitHub
 (10 commenti) (0 reazioni) (1 assegnatario)Shell (5379 fork)batch import
help wantedweblogic

Metriche repository

Star
 (6139 star)
Metriche merge PR
 (Merge medio 6g 10h) (2 PR mergiate in 30 g)

Descrizione

Hello, I am starting two WebLogic 12.2.1.4 domains in docker from my docker-compose.yml file. So I am starting 4 containers:

  • admin-server-A + managed-server-A1
  • admin-server-B + managed-server-B1

The following Docker port mapping is used:

  • admin-server-A: 7101:7001
  • managed-server-A1: 8101:8001
  • admin-server-B: 7201:7001
  • managed-server-B1: 8201:8001

Everything works fine, except this:

<Feb 12, 2021 5:11:21,002 PM UTC> <Notice> <JMX> <BEA-149535> <JMX Resiliency Activity Server=All Servers : Resolving connection list DomainRuntimeServiceMBean> 
javax.ws.rs.ProcessingException: java.net.ConnectException: Tried all: '1' addresses, but could not connect over HTTP to server: 'localhost', port: '7201'
failed reasons:
 [0] address:'localhost/127.0.0.1',port:'7201' : java.net.ConnectException: Connection refused

The 2nd WL admin server tries to use port 7201 in the container but actually, it is listening on the default 7001 port inside the container. Port 7201 is used from the host machine, and of course, WL is not listening on 7201 inside the container.

Why WL sees and wanna use the host port, instead of use the default 7001?

Guida contributor