0 Replies Latest reply on Sep 3, 2018 4:39 AM by getarbind

    Facing issue creating arquillian-was-embedded-8 container - Error java.lang.RuntimeException: Could not create new instance of class org.jboss.arquillian.test.impl.EventTestRunnerAdaptor

    getarbind

      Hello,

      I am trying to create arquillian-was-embedded-8 container for my test framework.

       

      Here is my sample code that i am trying to run.

      GitHub - getarbind/arquillian-test-framework

       

      I have used below instruction to create arquillian-was-embedded-8.jar

      Building Arquillian WAS Container

       

      When i try to run the test method (should_create_greeting), i am getting below error

       

      java.lang.RuntimeException: Could not create new instance of class org.jboss.arquillian.test.impl.EventTestRunnerAdaptor

          at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:146)

          at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:89)

          at org.jboss.arquillian.test.spi.TestRunnerAdaptorBuilder.build(TestRunnerAdaptorBuilder.java:49)

          at org.jboss.arquillian.junit.AdaptorManager.initializeAdaptor(AdaptorManager.java:21)

          at org.jboss.arquillian.junit.AdaptorManagerWithNotifier.initializeAdaptor(AdaptorManagerWithNotifier.java:19)

          at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:109)

          at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)

          at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)

          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)

          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)

          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

      Caused by: java.lang.reflect.InvocationTargetException

          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

          at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

          at java.lang.reflect.Constructor.newInstance(Unknown Source)

          at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:144)

          ... 11 more

      Caused by: org.jboss.arquillian.container.impl.ContainerCreationException: Could not create Container websphere

          at org.jboss.arquillian.container.impl.LocalContainerRegistry.create(LocalContainerRegistry.java:78)

          at org.jboss.arquillian.container.impl.client.container.ContainerRegistryCreator.createRegistry(ContainerRegistryCreator.java:74)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

          at java.lang.reflect.Method.invoke(Unknown Source)

          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)

          at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:103)

          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:90)

          at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:133)

          at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:105)

          at org.jboss.arquillian.core.impl.ManagerImpl.bindAndFire(ManagerImpl.java:232)

          at org.jboss.arquillian.core.impl.InstanceImpl.set(InstanceImpl.java:67)

          at org.jboss.arquillian.config.impl.extension.ConfigurationRegistrar.loadConfiguration(ConfigurationRegistrar.java:72)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

          at java.lang.reflect.Method.invoke(Unknown Source)

          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)

          at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:103)

          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:90)

          at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:133)

          at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:105)

          at org.jboss.arquillian.core.impl.ManagerImpl.start(ManagerImpl.java:253)

          at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.<init>(EventTestRunnerAdaptor.java:61)

          ... 16 more

      Caused by: java.lang.IllegalArgumentException: DeployableContainer must be specified

          at org.jboss.arquillian.core.spi.Validate.notNull(Validate.java:44)

          at org.jboss.arquillian.container.impl.ContainerImpl.<init>(ContainerImpl.java:70)

          at org.jboss.arquillian.container.impl.LocalContainerRegistry.create(LocalContainerRegistry.java:75)

          ... 40 more

       

      Need help is resolving this issue

       

      Thanks

       

      Arbind Singh