[
https://issues.jboss.org/browse/ARQ-2195?page=com.atlassian.jira.plugin.s...
]
Gerhard Poul commented on ARQ-2195:
-----------------------------------
Yes, this worked in WAS V8.0, but IBM has already deprecated this version and I don't
remember which specific fixpack I used for testing. Historically we had many instances
where the IBM runtime for CDI changed behavior slightly and makes our tests fail for
several fixpacks until issues get fixed. We have such an issue again now with WAS V9.0 in
that our integration test are failing, but not due to a change to our tests.
The CDI injection is, as far as I understand it, done by the container itself.
If you want to make sure this is not related to any part of Arquillian I'd just make
the same test without Arquillian and see whether the Inject works or not. If not, I'd
try with various fixpacks or use the latest one and report the issue to IBM, in case you
have a support extension that still allows you to do that.
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
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: ARQ-2195
URL:
https://issues.jboss.org/browse/ARQ-2195
Project: Arquillian
Issue Type: Bug
Components: WebSphere Containers
Affects Versions: was_1.0.0.CR1
Environment: Dev
Reporter: Arbind Singh
Assignee: Gerhard Poul
Priority: Blocker
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
https://github.com/getarbind/arquillian-test-framework
I have used below instruction to create arquillian-was-embedded-8.jar
Building Arquillian WAS Container
https://developer.jboss.org/docs/DOC-16757
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
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)