2 Replies Latest reply: Nov 7, 2012 6:42 AM by Stefan Frank RSS

Arquillian and 7.1.2.Final as remote container?

j e Newbie

I've been unable to get the Arquillian 'Getting Started' application running with jboss-as-7.1.2.Final as a remote container. Can get as far as deployment, but then :

 

{noformat}

-------------------------------------------------------

T E S T S

-------------------------------------------------------

Running org.arquillian.example.GreeterTest

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.234 sec <<< FAILURE!

 

 

Results :

 

Tests in error:

  org.arquillian.example.GreeterTest: org.jboss.as.arquillian.container.ManagementClient$UnSuccessfulOperationException: undefined

 

 

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0

{noformat}

 

The exception in the surefire log is:

 

{noformat}

java.lang.RuntimeException: org.jboss.as.arquillian.container.ManagementClient$UnSuccessfulOperationException: undefined

        at org.jboss.as.arquillian.container.ManagementClient.getWebUri(ManagementClient.java:127)

        at org.jboss.as.arquillian.container.ManagementClient.getDeploymentMetaData(ManagementClient.java:136)

        at org.jboss.as.arquillian.container.CommonDeployableContainer.deploy(CommonDeployableContainer.java:150)

        at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:161)

        at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:128)

        at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.executeOperation(ContainerDeployController.java:271)

        at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.deploy(ContainerDeployController.java:127)

...

 

Caused by: org.jboss.as.arquillian.container.ManagementClient$UnSuccessfulOperationException: undefined

        at org.jboss.as.arquillian.container.ManagementClient.checkSuccessful(ManagementClient.java:336)

        at org.jboss.as.arquillian.container.ManagementClient.executeForResult(ManagementClient.java:329)

        at org.jboss.as.arquillian.container.ManagementClient.readResource(ManagementClient.java:324)

        at org.jboss.as.arquillian.container.ManagementClient.readRootNode(ManagementClient.java:207)

        at org.jboss.as.arquillian.container.ManagementClient.getWebUri(ManagementClient.java:124)

        ... 95 more

{noformat}

 

pom.xml:

 

{noformat}

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

  <modelVersion>4.0.0</modelVersion>

 

 

  <groupId>org.arquillian.example</groupId>

  <artifactId>arquillian-tutorial</artifactId>

  <version>1.0-SNAPSHOT</version>

  <packaging>jar</packaging>

 

  <name>arquillian-tutorial</name>

  <url>http://maven.apache.org</url>

 

  <properties>

    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

  </properties>

 

  <dependencyManagement>

    <dependencies>

        <dependency>

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

                <artifactId>arquillian-bom</artifactId>

                <version>1.0.1.Final</version>

                <type>pom</type>

                <scope>import</scope>

                <optional>false</optional>

        </dependency>

    </dependencies>

  </dependencyManagement>

 

  <build>

    <plugins>

      <plugin>

        <groupId>org.apache.maven.plugins</groupId>

        <artifactId>maven-compiler-plugin</artifactId>

        <version>2.3.2</version>

        <configuration>

          <source>1.6</source>

          <target>1.6</target>

        </configuration>

      </plugin>

      <plugin>

        <artifactId>maven-surefire-plugin</artifactId>

        <version>2.12</version>

      </plugin>

    </plugins>

  </build>

  <dependencies>

    <dependency>

      <groupId>junit</groupId>

      <artifactId>junit</artifactId>

      <version>4.8.1</version>

      <scope>test</scope>

    </dependency>

    <dependency>

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

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

        <scope>test</scope>

        </dependency>

    <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-remote</artifactId>

        <version>7.1.2.Final</version>

        <scope>test</scope>

    </dependency>

    <dependency>

        <groupId>org.slf4j</groupId>

        <artifactId>slf4j-simple</artifactId>

        <version>1.6.4</version>

        <scope>test</scope>

    </dependency>

  </dependencies>

</project>

{noformat}

 

and arquillian.xml:

 

{noformat}

<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="jboss7" default="true">

     <configuration>

        <property name="managementAddress">127.0.0.1</property>

                <property name="username">aaaa</property>

                <property name="password">pppp</property>

     </configuration>

  </container>

</arquillian>

{noformat}

 

What am i doing wrong?

  • 1. Re: Arquillian and 7.1.2.Final as remote container?
    j e Newbie

    Success on my third attempt.

     

    Suspect i'd got myself in a mess by attempting to jump to the end.

  • 2. Re: Arquillian and 7.1.2.Final as remote container?
    Stefan Frank Newbie

    And how did you solve this in the end? I also get this rather unhelpful exception, altough the deploy is just running through without any problems, I can see all the deployment-steps in the jboss.log, I only get a

     

     

    java.lang.RuntimeException: org.jboss.as.arquillian.container.ManagementClient$UnSuccessfulOperationException: undefined

              at org.jboss.as.arquillian.container.ManagementClient.getWebUri(ManagementClient.java:108)

              at org.jboss.as.arquillian.container.ManagementClient.getDeploymentMetaData(ManagementClient.java:117)

              at org.jboss.as.arquillian.container.CommonDeployableContainer.deploy(CommonDeployableContainer.java:150)

          ...

     

    in the Deployment-method of my test and no actual test is run due to this exception. So it looks like everything is fine and arquillian is complaining anyway...

     

     

    cheers

    stefan