arquillian-container-chameleon icon indicating copy to clipboard operation
arquillian-container-chameleon copied to clipboard

JBoss EAP 7 remote + Servlet protocol can not be used

Open taylor-benson opened this issue 7 years ago • 0 comments

I have opened a discussion on http://discuss.arquillian.org/t/jboss-eap-7-remote-servlet-protocol-can-not-be-used/441 but I figure I might have well open a issue ticket.

I am unable to run arquillian test against remote jboss eap 7 instance. Works if I run using local Getting the following exception:

java.lang.IllegalArgumentException: No org.jboss.arquillian.container.spi.client.protocol.metadata.HTTPContext found in org.jboss.arquillian.container.spi.client.protocol.metadata.ProtocolMetaData. Servlet protocol can not be used

Current environment:

  • Devstudio 10.3.x
  • Java 1.8
  • Jboss eap 7.0.0 eap

I have added a management user to the remote instance and have updated my pom.xml like so with the dependencies. Note the commented out deps in the profile section as I have also tried wildfly-arquillian-container-domain-remote and also received the same exception.

<!-- Testing properties -->
<testng.version>6.9.9</testng.version>
<arquillian.bom.version>1.1.11.Final</arquillian.bom.version>
<shrinkwrap.resolver.version>2.2.5</shrinkwrap.resolver.version>
<arquillian-jacoco.version>1.0.0.Alpha9</arquillian-jacoco.version>

<dependencyManagement>
                <dependencies>
                        <dependency>
                                <groupId>org.jboss.bom</groupId>
                                <artifactId>jboss-eap-javaee7-with-tools</artifactId>
                                <version>${version.jboss.bom.eap}</version>
                                <type>pom</type>
                                <scope>import</scope>
                        </dependency>
                        <dependency>
                                <groupId>org.jboss.arquillian</groupId>
                                <artifactId>arquillian-bom</artifactId>
                                <version>${arquillian.bom.version}</version>
                                <type>pom</type>
                                <scope>import</scope>
                        </dependency>
                        <dependency>
                                <groupId>org.jboss.shrinkwrap.resolver</groupId>
                                <artifactId>shrinkwrap-resolver-bom</artifactId>
                                <version>${shrinkwrap.resolver.version}</version>
                                <type>pom</type>
                        </dependency>
                </dependencies>
        </dependencyManagement>
        <dependency>
                        <groupId>org.jboss.arquillian.testng</groupId>
                        <artifactId>arquillian-testng-container</artifactId>
                        <scope>test</scope>
                </dependency>
                <dependency>
                        <groupId>org.jboss.shrinkwrap.resolver</groupId>
                        <artifactId>shrinkwrap-resolver-depchain</artifactId>
                        <version>${shrinkwrap.resolver.version}</version>
                        <scope>test</scope>
                        <type>pom</type>
                </dependency>
                <dependency>
                        <groupId>org.jacoco</groupId>
                        <artifactId>org.jacoco.core</artifactId>
                        <version>${jacoco-maven-plugin.version}</version>
                        <scope>test</scope>
                </dependency>
                <dependency>
                        <groupId>org.jboss.arquillian.extension</groupId>
                        <artifactId>arquillian-jacoco</artifactId>
                        <version>${arquillian-jacoco.version}</version>
                        <scope>test</scope>
                </dependency>
                <profile>
                        <id>sit</id>
                        <dependencies>
                                <!--<dependency>
                                        <groupId>org.wildfly.arquillian</groupId>
                                        <artifactId>wildfly-arquillian-common-domain</artifactId>
                                        <version>2.0.2.Final</version>
                                        <scope>test</scope>
                                </dependency>
                                <dependency>
                                        <groupId>org.wildfly.arquillian</groupId>
                                        <artifactId>wildfly-arquillian-container-domain-remote</artifactId>
                                        <version>2.0.2.Final</version>
                                        <scope>test</scope>
                                </dependency>-->
                                <dependency>
                                    <groupId>org.arquillian.container</groupId>
                                    <artifactId>arquillian-container-chameleon</artifactId>
                                    <version>1.0.0.Beta1</version>
                                    <scope>test</scope>
                                </dependency>
                                <dependency>
                                        <groupId>org.jboss.arquillian.protocol</groupId>
                                        <artifactId>arquillian-protocol-servlet</artifactId>
                                        <scope>test</scope>
                                </dependency>
                        </dependencies>
                        <build>
                                <plugins>
                                        <plugin>
                                                <groupId>org.apache.maven.plugins</groupId>
                                                <artifactId>maven-failsafe-plugin</artifactId>
                                                <configuration>
                                                        <systemPropertyVariables>
                                                                <arquillian.launch>sit</arquillian.launch>
                                                        </systemPropertyVariables>
                                                </configuration>
                                        </plugin>
                                </plugins>
                        </build>
                </profile>

And my arquillian.xml

        <container qualifier="sit">
                <configuration>
                        <property name="chameleonTarget">jboss eap:7.0.0.GA:remote</property>
                        <property name="managementAddress">HOSTNAME HERE</property>
                        <property name="managementPort">9990</property>
                        <property name="username">USERNAME_HERE</property>
                        <property name="password">PASSWORD_HERE</property>
                </configuration>
        </container>

I really need to get this working for our new project that is about to kick off b/c I am pushing hard on automation test coverage for the effort.

Any insights to get this working will be greatly appreciated!

taylor-benson avatar Mar 07 '17 23:03 taylor-benson