2 Replies Latest reply on Mar 19, 2013 4:11 PM by Guilherme Furlaneto

    Run arquillian tests on jboss with port 5050

    Guilherme Furlaneto Newbie

      Hello, I have 2 jboss 7 running on the same server, jboss 1 is running on port 8080 and jboss 2 on port 5050.

       

      I'm trying execute the arquillian tests on jboss 2 (5050) with a property:

       

      <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="jbossas-managed" default="true">
              <configuration>
                  <property name="jbossHome">/home/guilherme/jboss2</property>
                  <property name="allowConnectingToRunningServer">true</property>
              </configuration>
          </container>
      </arquillian>
      

       

      if i change for works with the jboss 1 everything works perfectly, but configured with jboss 2 doesn't work.

      For jboss 2 works on port 5050 i did this configurarion:

       

      standalone.xml

       

      <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
              <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:19999}"/>
              <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:19990}"/>
              <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:19443}"/>
              <socket-binding name="ajp" port="18009"/>
              <socket-binding name="http" port="5050"/>
              <socket-binding name="https" port="18443"/>
              <socket-binding name="osgi-http" interface="management" port="18090"/>
              <socket-binding name="remoting" port="14447"/>
              <socket-binding name="txn-recovery-environment" port="14712"/>
              <socket-binding name="txn-status-manager" port="14713"/>
              <outbound-socket-binding name="mail-smtp">
                  <remote-destination host="localhost" port="125"/>
              </outbound-socket-binding>
          </socket-binding-group>
      

       

      standalone-full.xml

       

      <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
              <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:19999}"/>
              <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:19990}"/>
              <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:19443}"/>
              <socket-binding name="ajp" port="18009"/>
              <socket-binding name="http" port="5050"/>
              <socket-binding name="https" port="18443"/>
              <socket-binding name="jacorb" interface="unsecure" port="13528"/>
              <socket-binding name="jacorb-ssl" interface="unsecure" port="13529"/>
              <socket-binding name="messaging" port="15445"/>
              <socket-binding name="messaging-throughput" port="15455"/>
              <socket-binding name="osgi-http" interface="management" port="18090"/>
              <socket-binding name="remoting" port="14447"/>
              <socket-binding name="txn-recovery-environment" port="14712"/>
              <socket-binding name="txn-status-manager" port="14713"/>
              <outbound-socket-binding name="mail-smtp">
                  <remote-destination host="localhost" port="125"/>
              </outbound-socket-binding>
          </socket-binding-group>
      

       

      when I run the tests, the arquillian try to start jboss and get this error:

      Address already in use /127.0.0.1:5050

       

      What i do for the arquillian doesn't trying start the jboss?  (because it has already been started)

       

      Thanks.