java - DeployableContainer must be specified error when running Arquillian -
i've been trying run arquillian example
https://github.com/arquillian/arquillian-examples/tree/master/arquillian-tutorial
there no error when imported in eclipse
however getting error when run junit test:
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(unknown source) @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(unknown source) @ java.lang.reflect.constructor.newinstance(unknown source) @ org.jboss.arquillian.test.spi.securityactions.newinstance(securityactions.java:156) ... 10 more caused by: org.jboss.arquillian.container.impl.containercreationexception: not create container jbossas-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(unknown source) @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source) @ java.lang.reflect.method.invoke(unknown source) @ 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:68) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(unknown source) @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source) @ java.lang.reflect.method.invoke(unknown source) @ 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
the project pom defines bunch of profiles - arquillian-weld-ee-embedded
, arquillian-glassfish-embedded
, , arquillian-jbossas-managed
. none of them active default. need activate 1 of these run tests, since profiles bring in arquillian container adapter.
without container adapter in classpath, you're see java.lang.illegalargumentexception
exception message "deployablecontainer must specified".
java junit jboss-arquillian
No comments:
Post a Comment