Link to home
Start Free TrialLog in
Avatar of Rajesh Kondaveeti
Rajesh KondaveetiFlag for India

asked on

jboss with docker

domain controller on centos <-- host machine
host controller on centos  <-- docker

installed jboss on centos docker image and tried to start standalone server it starts with out any issues. but if i want to start slave and sync it to domain i get error as below:

started docker with exposing ports as below:
docker run -p 18080:808 -p 19990:9990 -it jboss_test

15:57:18,045 DEBUG [org.jboss.modules] (Controller Boot Thread) Module org.jboss.as.cli:main defined by local module loader @26538d04 (finder: local module finder @374f1544 (roots: /opt/jboss-eap-6.2/modules,/opt/jboss-eap-6.2/modules/system/layers/base))
15:57:23,477 DEBUG [org.jboss.as.host.controller] (Controller Boot Thread) failed to connect to 10.10.10.10:9999: java.net.ConnectException: JBAS012144: Could not connect to remote://10.10.10.10:9999. The connection timed out
      at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:131) [jboss-as-protocol-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
      at org.jboss.as.host.controller.RemoteDomainConnection.openConnection(RemoteDomainConnection.java:198) [jboss-as-host-controller-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
      at org.jboss.as.host.controller.RemoteDomainConnection$InitialConnectTask.connect(RemoteDomainConnection.java:560) [jboss-as-host-controller-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
      at org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:70) [jboss-as-protocol-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
      at org.jboss.as.host.controller.RemoteDomainConnection.connect(RemoteDomainConnection.java:136) [jboss-as-host-controller-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
      at org.jboss.as.host.controller.RemoteDomainConnectionService.register(RemoteDomainConnectionService.java:194) [jboss-as-host-controller-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
      at org.jboss.as.host.controller.DomainModelControllerService.connectToDomainMaster(DomainModelControllerService.java:577) [jboss-as-host-controller-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
      at org.jboss.as.host.controller.DomainModelControllerService.boot(DomainModelControllerService.java:438) [jboss-as-host-controller-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
      at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:253) [jboss-as-controller-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
      at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_80]
Avatar of Iamthecreator
Iamthecreator
Flag of France image

"Could not connect to remote://10.10.10.10:9999. The connection timed out"
Any firewalls?
Check for open ports.
Is 9999 the correct port?
Avatar of Rajesh Kondaveeti

ASKER

Hi ,

yes it is the correct port.  
firewalls:
i have disabled the iptables on host machine . is there anything i can do in docker side?.

the jboss on docker side has a 8080 port which while i am doing telnet from host machine is getting connection refused message. * if ports are not exposed while starting docker.

i tried to expose ports also in docker and tried to start jboss but it gives the above error
Are you able to ping?
Hi ,
yes i am able to ping to docker container and from docker container to host.

but the catch is when i start a web server in docker with a port say 80 i get connection refused while doing wget from host

wget http://10.10.10.20:80 <-- give connection refused from host. there is something that i am missing in docker network.
ASKER CERTIFIED SOLUTION
Avatar of Rajesh Kondaveeti
Rajesh Kondaveeti
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
i was able to fix the issue with provided solution.