Arquillian with Wildfly 8.0.0.Final Managed not working -
i have been using arquillian jboss-as-7.1.1.final while now.
i want start using wildfly 8.0.0.final cannot work.
i have changed pom.xml , arquillian.xml.
this "properties":
<properties> <project.build.sourceencoding>utf-8</project.build.sourceencoding> <version.joda.time>2.1</version.joda.time> <version.junit>4.11</version.junit> <version.mockito>1.9.5</version.mockito> <version.jacoco>0.6.0.201210061924</version.jacoco> <version.arquillian.bom>1.1.3.final</version.arquillian.bom> <version.arquillian.drone.bom>1.3.0.final</version.arquillian.drone.bom> <version.arquillian.jacoco>1.0.0.alpha6</version.arquillian.jacoco> <version.arquillian.persistence>1.0.0.alpha6</version.arquillian.persistence> <version.commons.collections>3.2.1</version.commons.collections> <version.commons.io>2.4</version.commons.io> <version.wildfly>8.0.0.final</version.wildfly> <!-- <version.jbpm.3>3.3.1.ga</version.jbpm.3> --> </properties>
the related maven profile declaration looks this:
<profile> <id>arquillian-wildfly-managed</id> <activation> <activebydefault>true</activebydefault> </activation> <build> <plugins> <plugin> <artifactid>maven-dependency-plugin</artifactid> <executions> <execution> <id>unpack</id> <phase>process-test-classes</phase> <goals> <goal>unpack</goal> </goals> <configuration> <artifactitems> <artifactitem> <groupid>org.wildfly</groupid> <artifactid>wildfly-dist</artifactid> <version>${version.wildfly}</version> <type>zip</type> <overwrite>false</overwrite> <outputdirectory>target</outputdirectory> </artifactitem> </artifactitems> </configuration> </execution> </executions> </plugin> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-surefire-plugin</artifactid> <version>2.16</version> <configuration> <systempropertyvariables> <arquillian.launch>wildfly-as-managed</arquillian.launch> </systempropertyvariables> </configuration> </plugin> </plugins> <pluginmanagement> <plugins> <!-- ignore/execute plugin execution --> <plugin> <groupid>org.eclipse.m2e</groupid> <artifactid>lifecycle-mapping</artifactid> <version>1.0.0</version> <configuration> <lifecyclemappingmetadata> <pluginexecutions> <!-- copy-dependency plugin --> <pluginexecution> <pluginexecutionfilter> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-dependency-plugin</artifactid> <versionrange>[1.0.0,)</versionrange> <goals> <goal>unpack</goal> </goals> </pluginexecutionfilter> <action> <execute /> </action> </pluginexecution> </pluginexecutions> </lifecyclemappingmetadata> </configuration> </plugin> </plugins> </pluginmanagement> <testresources> <testresource> <directory>src/test/resources</directory> </testresource> </testresources> </build> <dependencies> <dependency> <groupid>org.wildfly</groupid> <artifactid>wildfly-dist</artifactid> <version>${version.wildfly}</version> <type>zip</type> <scope>test</scope> </dependency> <dependency> <groupid>org.jboss</groupid> <artifactid>jboss-common-core</artifactid> <version>2.2.17.ga</version> <scope>test</scope> </dependency> <dependency> <groupid>org.jboss.marshalling</groupid> <artifactid>jboss-marshalling-river</artifactid> <version>1.4.0.final</version> <scope>test</scope> </dependency> </dependencies> </profile>
this arquillian.xml:
<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"> <defaultprotocol type="servlet 3.0" /> <container qualifier="wildfly-as-managed" default="true"> <configuration> <property name="jbosshome">target/wildfly-8.0.0.final</property> <property name="javavmarguments">-djboss.socket.binding.port-offset=9 -djboss.management.native.port=9080 -xmx512m -xx:maxpermsize=512m</property> <property name="managementport">9090</property> </configuration> </container> <extension qualifier="persistence-dbunit"> <property name="defaultdatasetformat">yaml</property> </extension> </arquillian>
and complete error stack trace:
java.lang.runtimeexception: not create new instance of class org.jboss.arquillian.test.impl.eventtestrunneradaptor @ org.jboss.arquillian.test.spi.securityactions.newinstance(securityactions.java:160) @ org.jboss.arquillian.test.spi.securityactions.newinstance(securityactions.java:111) @ org.jboss.arquillian.test.spi.securityactions.newinstance(securityactions.java:97) @ org.jboss.arquillian.test.spi.testrunneradaptorbuilder.build(testrunneradaptorbuilder.java:52) @ org.jboss.arquillian.junit.arquillian.run(arquillian.java:93) @ org.eclipse.jdt.internal.junit4.runner.junit4testreference.run(junit4testreference.java:50) @ org.eclipse.jdt.internal.junit.runner.testexecution.run(testexecution.java:38) @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.runtests(remotetestrunner.java:467) @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.runtests(remotetestrunner.java:683) @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.run(remotetestrunner.java:390) @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.main(remotetestrunner.java:197) caused by: java.lang.reflect.invocationtargetexception @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method) @ sun.reflect.nativeconstructoraccessorimpl.newinstance(nativeconstructoraccessorimpl.java:57) @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl.java:45) @ java.lang.reflect.constructor.newinstance(constructor.java:525) @ org.jboss.arquillian.test.spi.securityactions.newinstance(securityactions.java:156) ... 10 more caused by: org.jboss.arquillian.container.impl.containercreationexception: not create container wildfly-as-managed @ org.jboss.arquillian.container.impl.localcontainerregistry.create(localcontainerregistry.java:85) @ org.jboss.arquillian.container.impl.client.container.containerregistrycreator.createregistry(containerregistrycreator.java:76) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:601) @ org.jboss.arquillian.core.impl.observerimpl.invoke(observerimpl.java:94) @ org.jboss.arquillian.core.impl.eventcontextimpl.invokeobservers(eventcontextimpl.java:99) @ org.jboss.arquillian.core.impl.eventcontextimpl.proceed(eventcontextimpl.java:81) @ org.jboss.arquillian.core.impl.managerimpl.fire(managerimpl.java:135) @ org.jboss.arquillian.core.impl.managerimpl.fire(managerimpl.java:115) @ org.jboss.arquillian.core.impl.managerimpl.bindandfire(managerimpl.java:236) @ org.jboss.arquillian.core.impl.instanceimpl.set(instanceimpl.java:74) @ org.jboss.arquillian.config.impl.extension.configurationregistrar.loadconfiguration(configurationregistrar.java:60) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:601) @ org.jboss.arquillian.core.impl.observerimpl.invoke(observerimpl.java:94) @ org.jboss.arquillian.core.impl.eventcontextimpl.invokeobservers(eventcontextimpl.java:99) @ org.jboss.arquillian.core.impl.eventcontextimpl.proceed(eventcontextimpl.java:81) @ org.jboss.arquillian.core.impl.managerimpl.fire(managerimpl.java:135) @ org.jboss.arquillian.core.impl.managerimpl.fire(managerimpl.java:115) @ org.jboss.arquillian.core.impl.managerimpl.start(managerimpl.java:261) @ org.jboss.arquillian.test.impl.eventtestrunneradaptor.<init>(eventtestrunneradaptor.java:56) ... 15 more caused by: java.lang.illegalargumentexception: deployablecontainer must specified @ org.jboss.arquillian.core.spi.validate.notnull(validate.java:44) @ org.jboss.arquillian.container.impl.containerimpl.<init>(containerimpl.java:71) @ org.jboss.arquillian.container.impl.localcontainerregistry.create(localcontainerregistry.java:76) ... 39 more
i can't find arquillian container dependency in profile , stack trace looks arquillian can't find container used. did forget add container dependencies?
try one:
<dependency> <groupid>org.wildfly</groupid> <artifactid>wildfly-arquillian-container-managed</artifactid> <scope>test</scope> </dependency>
Comments
Post a Comment