Hello guys, I have the following environment happening:
- Vagrant with 3 boxes (gitlab, jenkins, wildfly [192.168.90.50]) each one in one port that is already setted in my local HOSTS file.
- JBoss DEveloper Studio 9.1, using JBoss Forge with Arquilllian and JUnit.
I already did the following settings:
To Wildfly box
JAVA_OPTS="$JAVA_OPTS -Djboss.bind.address.management=192.168.90.50 -Djboss.bind.address=192.168.90.50"
and
[vagrant@wildfly bin]$ sudo ./add-user.sh
What type of user do you wish to add?
a) Management User (mgmt-users.properties)
b) Application User (application-users.properties)
(a): a
=====================================================================
To Arquillian.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <arquillian xmlns="http://jboss.org/schema/arquillian" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd"> <container qualifier="arquillian-wildfly-remote"> <configuration> <property name="managementAddress">wildfly</property> <property name="managementPort">9990</property> <property name="username">devops</property> <property name="password">devops@2015</property> </configuration> </container> </arquillian>
To Jenkins - for BUILD
root POM: pom.xml
Goals and options: test -Parquillian-wildfly-remote
======================================================================
The build was running OK in Jenkins before creating the WILDFLY box.
I have a test file in my application, that should be tested using the same building in Jenkins.. (thats the problem, its failing the building to test)
In Jenkins the Output Error is:
Caused by: java.nio.channels.UnresolvedAddressException
at sun.nio.ch.Net.checkAddress(Net.java:107)
at sun.nio.ch.SocketChannelImpl.connect(SocketImpl.ava:649)
at org.xnio.nio.WorkerThread.openTcpStreamConnection(WorkerThread.java:263)
(...)