5 Replies Latest reply on Dec 5, 2011 7:36 AM by Paul Robinson

    jboss-as-7.0.2.Final java.lang.NoSuchMethodError: org.jboss.as.arquillian.container.managed.ManagedContainerConfiguration.getManagementAddress()Ljava/net/InetAddress;

    Amos Feng Apprentice

      Hi,

       

      I used pom.xml

       

      <dependency>

              <groupId>org.jboss.arquillian.junit</groupId>

              <artifactId>arquillian-junit-container</artifactId>

              <version>1.0.0.CR5</version>

              <scope>test</scope>

      </dependency>

      ...

      <profile>

            <id>jbossas-managed-7</id>

            <dependencies>

                <dependency>

                    <groupId>org.jboss.spec</groupId>

                    <artifactId>jboss-javaee-6.0</artifactId>

                    <version>1.0.0.Final</version>

                    <type>pom</type>

                    <scope>provided</scope>

                </dependency>

                <dependency>

                    <groupId>org.jboss.as</groupId>

                    <artifactId>jboss-as-arquillian-container-managed</artifactId>

                    <version>7.0.2.Final</version>

                </dependency>

            </dependencies>

      </profile>

      and arquillian.xml

       

      <container qualifier="container-atcrashduringonephasecommit" default="true">

              <protocol type="jmx-as7">

                  <property name="executionType">REMOTE</property>

              </protocol>

              <configuration>

                  <property name="serverConfig">standalone-xts.xml</property>

                  <property name="javaVmArguments">-Dorg.jboss.byteman.transform.all -javaagent:${BYTEMAN_HOME}/lib/byteman.jar=script:thread.btm,boot:${BYTEMAN_HOME}/lib/byteman.jar,listener:true</property>

              </configuration>

          </container>

      basically, I want to inject byteman script when arquillian start jboss container. so I used javaVmArguments property in arquillian.xml

      the problem is that when running tests,

       

      Tests in error:

        org.jboss.jbossts.xts.crash.test.ATCrashDuringOnePhaseCommit: org.jboss.as.arquillian.container.managed.ManagedContainerConfiguration.getManagementAddress()Ljava/net/InetAddress;

      NoSuchMethodError.

       

      also, I want to konw the javaVmArguments property can be used in other version artifact of jboss-as-arquillian-container-managed ?

      Thanks,

       

      Amos