JBoss EAP 7 remote + Servlet protocol can not be used


#1

I have currently have a working JBoss EAP 7 instance with arquillian running locally.

However when I try to run against a remote profile, I get the following stack.
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

Can anyone give me a few pointers, seems like HTTPContext is not found so it seems to be related to dependencies? I am currently trying chameleon, I also tried the wildfly remote and recieve same error.

Relevant sections of pom and arquillian xmls

#Pom

<dependencyManagement>
	<dependencies>
		<groupId>org.jboss.arquillian</groupId>
		<artifactId>arquillian-bom</artifactId>
		<version>${arquillian.bom.version}</version>
		<type>pom</type>
		<scope>import</scope>
	</dependency>
</dependencyManagement>

<profile>
<id>sit</id>
<dependencies>
	<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>

#Arquillian


jboss eap:7.0.0:remote
HOSTNAME_HERE
9990
USERNAME_HERE
PASSWORD_HERE


#2

What is the version you are using?


#3

I have tried with the following:

1.1.11.Final
1.1.12.Final


#4

Also here is the relevant testing dependencies I am using that are not in the profile section of the pom. They are under dependencies section.

org.testng testng ${testng.version} test
org.jboss.arquillian.testng arquillian-testng-container test
org.jboss.shrinkwrap.resolver shrinkwrap-resolver-depchain 2.2.5 test pom
org.jacoco org.jacoco.core ${jacoco-maven-plugin.version} test
org.jboss.arquillian.extension arquillian-jacoco 1.0.0.Alpha9 test

BTW Great work with this framework!


#5

Thanks. We will have a look.

Out of curiosity - does it work with managed?


#6

Ok, I tried with wildfly-arquillian-container-managed instead of wildfly-arquillian-container-remote and I had to set allowConnectingToRunningServer=true in arquillian.xml but received the same error.

When trying with chamelonTarget set to managed, it tried downloading the artifact from our nexus repo and it fails, also its trying to download org/jboss/as/jboss-as-dist/7.0.0/jboss-as-dist-7.0.0.pom, but I am using jboss eap 7 which I believe is based off wildfly 10 right? Not jbossas7, doesn’t that equal jboss-eap 6?


#7

[INFO] — maven-dependency-plugin:2.8:tree (default-cli) @ project —
[INFO] :war:0.0.1-SNAPSHOT
[INFO] ± javax.enterprise:cdi-api:jar:1.2.0.redhat-2:provided
[INFO] | - javax.inject:javax.inject:jar:1.0.0.redhat-6:provided
[INFO] ± org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec:jar:1.0.0.Final-redhat-1:provided
[INFO] ± org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.0.Final-redhat-1:provided
[INFO] ± org.jboss.spec.javax.ejb:jboss-ejb-api_3.2_spec:jar:1.0.0.Final-redhat-1:provided
[INFO] ± org.hibernate:hibernate-validator:jar:5.2.4.Final-redhat-1:provided
[INFO] | ± javax.validation:validation-api:jar:1.1.0.Final-redhat-1:compile
[INFO] | ± org.jboss.logging:jboss-logging:jar:3.3.0.Final-redhat-1:provided
[INFO] | - com.fasterxml:classmate:jar:1.1.0:provided
[INFO] ± org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec:jar:1.0.0.Final-redhat-1:provided
[INFO] ± org.hibernate:hibernate-jpamodelgen:jar:5.0.9.Final-redhat-1:provided
[INFO] ± org.hibernate:hibernate-validator-annotation-processor:jar:5.2.4.Final-redhat-1:provided
[INFO] ± org.testng:testng:jar:6.9.9:test
[INFO] | ± junit:junit:jar:4.11:test
[INFO] | | - org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] | ± com.beust:jcommander:jar:1.48:test
[INFO] | ± org.apache.ant:ant:jar:1.7.0:test
[INFO] | | - org.apache.ant:ant-launcher:jar:1.7.0:test
[INFO] | ± org.yaml:snakeyaml:jar:1.15:compile
[INFO] | - org.beanshell:bsh:jar:2.0b4:test
[INFO] ± org.jboss.arquillian.testng:arquillian-testng-container:jar:1.1.11.Final:test
[INFO] | ± org.jboss.arquillian.testng:arquillian-testng-core:jar:1.1.11.Final:test
[INFO] | ± org.jboss.arquillian.test:arquillian-test-api:jar:1.1.11.Final:test
[INFO] | | - org.jboss.arquillian.core:arquillian-core-api:jar:1.1.11.Final:test
[INFO] | ± org.jboss.arquillian.test:arquillian-test-spi:jar:1.1.11.Final:test
[INFO] | | - org.jboss.arquillian.core:arquillian-core-spi:jar:1.1.11.Final:test
[INFO] | ± org.jboss.arquillian.container:arquillian-container-test-api:jar:1.1.11.Final:test
[INFO] | ± org.jboss.arquillian.container:arquillian-container-test-spi:jar:1.1.11.Final:test
[INFO] | ± org.jboss.arquillian.core:arquillian-core-impl-base:jar:1.1.11.Final:test
[INFO] | ± org.jboss.arquillian.test:arquillian-test-impl-base:jar:1.1.11.Final:test
[INFO] | ± org.jboss.arquillian.container:arquillian-container-impl-base:jar:1.1.11.Final:test
[INFO] | | - org.jboss.arquillian.config:arquillian-config-api:jar:1.1.11.Final:test
[INFO] | ± org.jboss.arquillian.container:arquillian-container-test-impl-base:jar:1.1.11.Final:test
[INFO] | - org.jboss.shrinkwrap:shrinkwrap-impl-base:jar:1.2.3:test
[INFO] | - org.jboss.shrinkwrap:shrinkwrap-spi:jar:1.2.3:test
[INFO] ± org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-depchain:pom:2.2.5:test
[INFO] | ± org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api:jar:2.2.2:test
[INFO] | ± org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi:jar:2.2.2:test
[INFO] | ± org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api-maven:jar:2.2.2:test
[INFO] | ± org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi-maven:jar:2.2.2:test
[INFO] | ± org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api-maven-archive:jar:2.2.2:test
[INFO] | ± org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven:jar:2.2.2:test
[INFO] | | ± org.eclipse.aether:aether-api:jar:1.0.0.v20140518:test
[INFO] | | ± org.eclipse.aether:aether-impl:jar:1.0.0.v20140518:test
[INFO] | | ± org.eclipse.aether:aether-spi:jar:1.0.0.v20140518:test
[INFO] | | ± org.eclipse.aether:aether-util:jar:1.0.0.v20140518:test
[INFO] | | ± org.eclipse.aether:aether-connector-basic:jar:1.0.0.v20140518:test
[INFO] | | ± org.eclipse.aether:aether-transport-wagon:jar:1.0.0.v20140518:test
[INFO] | | ± org.apache.maven:maven-aether-provider:jar:3.2.5:test
[INFO] | | ± org.apache.maven:maven-model:jar:3.2.5:test
[INFO] | | ± org.apache.maven:maven-model-builder:jar:3.2.5:test
[INFO] | | | - org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:test
[INFO] | | ± org.apache.maven:maven-repository-metadata:jar:3.2.5:test
[INFO] | | ± org.apache.maven:maven-settings:jar:3.2.5:test
[INFO] | | ± org.apache.maven:maven-settings-builder:jar:3.2.5:test
[INFO] | | ± org.codehaus.plexus:plexus-interpolation:jar:1.21:test
[INFO] | | ± org.codehaus.plexus:plexus-utils:jar:3.0.20:test
[INFO] | | ± org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:test
[INFO] | | | - org.sonatype.plexus:plexus-cipher:jar:1.4:test
[INFO] | | ± org.apache.maven.wagon:wagon-provider-api:jar:2.6:test
[INFO] | | ± org.apache.maven.wagon:wagon-file:jar:2.6:test
[INFO] | | - org.apache.maven.wagon:wagon-http-lightweight:jar:2.6:test
[INFO] | | - org.apache.maven.wagon:wagon-http-shared:jar:2.6:test
[INFO] | | - org.jsoup:jsoup:jar:1.7.2:test
[INFO] | - org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven-archive:jar:2.2.2:test
[INFO] | ± org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi-maven-archive:jar:2.2.2:test
[INFO] | ± org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.3.0.M1:test
[INFO] | | - org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.3.0.M1:test
[INFO] | - org.codehaus.plexus:plexus-compiler-javac:jar:2.3:test
[INFO] | - org.codehaus.plexus:plexus-compiler-api:jar:2.3:test
[INFO] ± org.jacoco:org.jacoco.core:jar:0.7.7.201606060606:test
[INFO] | - org.ow2.asm:asm-debug-all:jar:5.1:test
[INFO] ± org.jboss.arquillian.extension:arquillian-jacoco:jar:1.0.0.Alpha9:test
[INFO] | - org.jboss.shrinkwrap:shrinkwrap-api:jar:1.2.3:test
[INFO] ± org.jboss.resteasy:resteasy-jaxrs:jar:3.0.16.Final:provided
[INFO] | ± org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.0_spec:jar:1.0.0.Final-redhat-1:provided
[INFO] | - javax.activation:activation:jar:1.1.1.redhat-5:compile
[INFO] ± org.jboss.resteasy:resteasy-servlet-initializer:jar:3.0.16.Final:provided
[INFO] | - org.jboss.resteasy:async-http-servlet-3.0:jar:3.0.16.Final-redhat-1:provided
[INFO] ± org.jboss.resteasy:resteasy-jackson-provider:jar:3.0.16.Final:provided
[INFO] | ± org.codehaus.jackson:jackson-core-asl:jar:1.9.12:provided
[INFO] | ± org.codehaus.jackson:jackson-mapper-asl:jar:1.9.12:provided
[INFO] | ± org.codehaus.jackson:jackson-jaxrs:jar:1.9.12:provided
[INFO] | - org.codehaus.jackson:jackson-xc:jar:1.9.12:provided
[INFO] ± org.jboss.resteasy:resteasy-cdi:jar:3.0.16.Final:provided
[INFO] ± io.swagger:swagger-jaxrs:jar:1.5.9:compile
[INFO] | ± com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.4.5:compile
[INFO] | | - com.fasterxml.jackson.core:jackson-core:jar:2.4.5:compile
[INFO] | ± com.fasterxml.jackson.dataformat:jackson-dataformat-xml:jar:2.4.5:compile
[INFO] | | ± com.fasterxml.jackson.core:jackson-databind:jar:2.4.5:compile
[INFO] | | ± com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.4.5:compile
[INFO] | | - org.codehaus.woodstox:stax2-api:jar:3.1.4:compile
[INFO] | ± io.swagger:swagger-core:jar:1.5.9:compile
[INFO] | | ± org.slf4j:slf4j-api:jar:1.6.3:compile
[INFO] | | ± com.fasterxml.jackson.core:jackson-annotations:jar:2.4.5:compile
[INFO] | | ± com.fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.4.5:compile
[INFO] | | | - joda-time:joda-time:jar:2.2:compile
[INFO] | | - io.swagger:swagger-models:jar:1.5.9:compile
[INFO] | | - io.swagger:swagger-annotations:jar:1.5.9:compile
[INFO] | ± javax.ws.rs:jsr311-api:jar:1.1.1:compile
[INFO] | ± org.reflections:reflections:jar:0.9.10:compile
[INFO] | | ± org.javassist:javassist:jar:3.19.0-GA:compile
[INFO] | | - com.google.code.findbugs:annotations:jar:2.0.1:compile
[INFO] | ± com.google.guava:guava:jar:18.0:compile
[INFO] | - com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.4.5:compile
[INFO] | - com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:jar:2.4.5:compile
[INFO] ± org.apache.commons:commons-lang3:jar:3.4:compile
[INFO] ± commons-codec:commons-codec:jar:1.10:compile
[INFO] ± log4j:log4j:jar:1.2.17:compile
[INFO] ± org.owasp.esapi:esapi:jar:2.1.0.1:compile
[INFO] | ± commons-configuration:commons-configuration:jar:1.10:compile
[INFO] | | - commons-lang:commons-lang:jar:2.6:compile
[INFO] | ± commons-beanutils:commons-beanutils-core:jar:1.8.3:compile
[INFO] | ± commons-fileupload:commons-fileupload:jar:1.3.1:compile
[INFO] | | - commons-io:commons-io:jar:2.2:compile
[INFO] | ± commons-collections:commons-collections:jar:3.2.2:compile
[INFO] | ± xom:xom:jar:1.2.5:compile
[INFO] | | ± xml-apis:xml-apis:jar:1.3.03:compile
[INFO] | | ± xerces:xercesImpl:jar:2.8.0:compile
[INFO] | | - xalan:xalan:jar:2.7.0:compile
[INFO] | ± org.beanshell:bsh-core:jar:2.0b4:compile
[INFO] | ± org.owasp.antisamy:antisamy:jar:1.5.3:compile
[INFO] | | ± net.sourceforge.nekohtml:nekohtml:jar:1.9.16:compile
[INFO] | | - commons-httpclient:commons-httpclient:jar:3.1:compile
[INFO] | - org.apache.xmlgraphics:batik-css:jar:1.8:compile
[INFO] | ± org.apache.xmlgraphics:batik-ext:jar:1.8:compile
[INFO] | ± org.apache.xmlgraphics:batik-util:jar:1.8:compile
[INFO] | - xml-apis:xml-apis-ext:jar:1.3.04:compile
[INFO] ± org.apache.cxf:cxf-rt-frontend-jaxws:jar:2.7.10.redhat-1:compile
[INFO] | ± xml-resolver:xml-resolver:jar:1.2:compile
[INFO] | ± asm:asm:jar:3.3.1:compile
[INFO] | ± org.apache.cxf:cxf-api:jar:2.7.10.redhat-1:compile
[INFO] | | ± org.codehaus.woodstox:woodstox-core-asl:jar:4.2.0:compile
[INFO] | | ± org.apache.ws.xmlschema:xmlschema-core:jar:2.1.0:compile
[INFO] | | ± javax.mail:mail:jar:1.4.5:compile
[INFO] | | - wsdl4j:wsdl4j:jar:1.6.3:compile
[INFO] | ± org.apache.cxf:cxf-rt-core:jar:2.7.10.redhat-1:compile
[INFO] | | - com.sun.xml.bind:jaxb-impl:jar:2.1.13:compile
[INFO] | ± org.apache.cxf:cxf-rt-bindings-soap:jar:2.7.10.redhat-1:compile
[INFO] | | - org.apache.cxf:cxf-rt-databinding-jaxb:jar:2.7.10.redhat-1:compile
[INFO] | ± org.apache.cxf:cxf-rt-bindings-xml:jar:2.7.10.redhat-1:compile
[INFO] | ± org.apache.cxf:cxf-rt-frontend-simple:jar:2.7.10.redhat-1:compile
[INFO] | - org.apache.cxf:cxf-rt-ws-addr:jar:2.7.10.redhat-1:compile
[INFO] | - org.apache.cxf:cxf-rt-ws-policy:jar:2.7.10.redhat-1:compile
[INFO] | - org.apache.neethi:neethi:jar:3.0.3:compile
[INFO] ± org.apache.cxf:cxf-rt-transports-http:jar:2.7.10.redhat-1:compile
[INFO] ± org.apache.cxf:cxf-rt-ws-security:jar:2.7.10.redhat-1:compile
[INFO] | ± net.sf.ehcache:ehcache-core:jar:2.5.1:compile
[INFO] | ± org.apache.ws.security:wss4j:jar:1.6.14:compile
[INFO] | | - org.apache.santuario:xmlsec:jar:1.5.6:compile
[INFO] | - commons-logging:commons-logging:jar:1.1.1:compile
[INFO] ± org.arquillian.container:arquillian-container-chameleon:jar:1.0.0.Beta1:test
[INFO] | ± org.arquillian.container:arquillian-chameleon-container-model:jar:1.0.0.Beta1:test
[INFO] | ± org.jboss.arquillian.config:arquillian-config-impl-base:jar:1.1.11.Final:test
[INFO] | ± org.jboss.arquillian.container:arquillian-container-spi:jar:1.1.11.Final:test
[INFO] | | - org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-api-base:jar:2.0.0-alpha-8:test
[INFO] | ± org.jboss.arquillian.testenricher:arquillian-testenricher-ejb:jar:1.1.11.Final:test
[INFO] | ± org.jboss.arquillian.testenricher:arquillian-testenricher-resource:jar:1.1.11.Final:test
[INFO] | ± org.jboss.arquillian.testenricher:arquillian-testenricher-cdi:jar:1.1.11.Final:test
[INFO] | ± org.jboss.arquillian.testenricher:arquillian-testenricher-initialcontext:jar:1.1.11.Final:test
[INFO] | - org.arquillian.spacelift:arquillian-spacelift:jar:1.0.0.Alpha9:test
[INFO] | ± org.arquillian.spacelift:arquillian-spacelift-api:jar:1.0.0.Alpha9:test
[INFO] | - org.apache.commons:commons-compress:jar:1.8.1:test
[INFO] - org.jboss.arquillian.protocol:arquillian-protocol-servlet:jar:1.1.11.Final:test
[INFO] - org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-spi:jar:2.0.0-alpha-8:test

This is my mvn dependency tree, I am really hoping to get this running as we haven’t jumped on the docker wagon just yet, so I can’t easily spin up a server that is configured on our jenkins instance to run these test locally, this is why I need to connect remote.

When running mvn clean verify on my dev instance everything is working great. Just seems to always throw that exception when running remote, no matter if from my laptop to our SIT instance or from jenkins to our SIT instance, at least its a consistent exception :slight_smile: