-
1. Re: Connection problem when running Arquillian test on a remote machine
yck Jun 2, 2014 2:32 AM (in response to dave00)I have the exact same problem with following configuration (remote machine is a vm running JbossAS 7.2)
<interfaces> <interface name="management"> <inet-address value="${jboss.bind.address.management:0.0.0.0}"/> </interface> <interface name="public"> <inet-address value="${jboss.bind.address:0.0.0.0}"/> </interface> <interface name="unsecure"> <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/> </interface> </interfaces> -
2. Re: Connection problem when running Arquillian test on a remote machine
kpiwko Jun 2, 2014 4:11 AM (in response to yck)Hi,
can you try to replace 0.0.0.0 with a real IP address in Arquillian configuration?
URL lookup is performed on client side - container is supposed to return metadata in deployment phase that are used to construct URL.
Karel
-
3. Re: Connection problem when running Arquillian test on a remote machine
yck Jun 2, 2014 4:43 AM (in response to kpiwko)Hey,
i have the following arquillian configuration
<property name="username">RIS TESTER</property>
<property name="password">xx</property>
<property name="managementPort">9999</property>
<property name="managementAddress">connectm-wn-01</property> (name of the vm in network)
this used to work for me.. but i dont get why the arquillian takes the 0.0.0.0 as the host?
-
4. Re: Connection problem when running Arquillian test on a remote machine
dave00 Jun 2, 2014 8:11 AM (in response to kpiwko)Hi,
Thanks for the tip! I will give it a try. I will have to think through though then how to configure the remote instance. It is an integration environment but nearly the same package is deployed as for dev. It seems i will then probably need to make some config changes.
I will get back with the result.Cheers!
-
5. Re: Connection problem when running Arquillian test on a remote machine
dave00 Jun 4, 2014 2:57 AM (in response to kpiwko)Hi,
I have changed the JBoss binding for "management" to be a real IP. Also set the real IP in the Arquillian config. For some reason it still it tries to resolve it as 0.0.0.0.
(i have verified the jboss binding from the log and the arquillian config by once mistyping the IP address intentionally)
You said the url lookup is performed on the client side (thanks for the explanation) but then i don't understand from where it gets the 0.0.0.0.
Regards
-
6. Re: Connection problem when running Arquillian test on a remote machine
yck Jun 4, 2014 3:06 AM (in response to dave00)Hi, Try to set all interface adresses to 0.0.0.0, that worked for me
-
7. Re: Connection problem when running Arquillian test on a remote machine
kpiwko Jun 4, 2014 3:25 AM (in response to dave00)Related to can kesen's response, it is likely that server returns 0.0.0.0 as it is setup as its bind address. This 0.0.0.0 is returned in metada by server to client that constructs the response.
Would starting JBoss AS/ WildFly with -Djboss.bind.address=real.ip -Djboss.bind.address.management=real.ip fix the problem?