-
1. Re: run arquillian on remote cloud machine
shashanksingal Jan 4, 2014 9:56 AM (in response to shashanksingal)Another thing I noticed is that in arquillian.xml when I give managementAddress and managementPort as 127.0.0.1:9999, it works .
but when I try putting managementAddress and managementPort as myIP:9999, it doesnt workIs there some configuration I have skipped?
I have added a management user that can use jboss remotely with name jenkins and updated my arquillian.xml with credenials. -
2. Re: run arquillian on remote cloud machine
shashanksingal Jan 6, 2014 1:55 AM (in response to shashanksingal)The issue why I was not able to deploy using arquillian to remote Jboss with managementAddress and managementPort as myIP:9999 was I did not configured my standalone.xml properly, this is what I have modified in standalone.xml
<interfaces>
<interface name="management">
<any-address/>
</interface>
<interface name="public">
<any-address/>
</interface>
<interface name="unsecure">
<any-address/>
</interface>
</interfaces>
Now when I am trying to run arquillian tests on remote jboss, arquillian deploys the shrinkwrap ear but unable to run test cases. This is the exception I am getting:
Tests run: 5, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 5.118 sec <<< FAILURE!
basicSanitytest(test.integration.pm.parser.ejb.PMFileParserTest) Time elapsed: 0.019 sec <<< ERROR!
java.lang.IllegalStateException: Error launching test test.integration.pm.parser.ejb.PMFileParserTest public void test.integration.pm.parser.ejb.PMFileParserTest.basicSanitytest()
at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.invoke(ServletMethodExecutor.java:126)
at org.jboss.arquillian.container.test.impl.execution.RemoteTestExecuter.execute(RemoteTestExecuter.java:120)
..........
Caused by: java.lang.IllegalStateException: Error launching request at http://0.0.0.0:8080/test/ArquillianServletRunner?outputMode=serializedObject&className=test.integration.pm.parser.ejb.PMFileParserTest&methodName=basicSanitytest. No result returned
at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.executeWithRetry(ServletMethodExecutor.java:162)
at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.invoke(ServletMethodExecutor.java:122)
... 90 more
-
3. Re: Re: run arquillian on remote cloud machine
kpiwko Jan 6, 2014 3:53 AM (in response to shashanksingal)Hi Shashank,
my guess is that 0.0.0.0 as binding address is the problem. Could you please try to add:
<property name="javaVmArguments">-Xmx512m -XX:MaxPermSize=128m -Djboss.bind.address=${ip.jboss}</property>
into container configuration, replace ${ip.jboss} with a real IP address where server will be run to see whether it helps you?
Thanks,
Karel