1 2 3 4 Previous Next 45 Replies Latest reply on Mar 9, 2014 5:13 AM by gpoul Go to original post
      • 30. Re: Arquillian with WebSphere
        chrisharris

        Hi, Gerhard!

         

        I tried running tests via arquillian-was-remote-8 as you suggested, however, I'm still seeing an error, albeit this error looks more promising.  I configured the arquillian-was-remote-8 prom's maven-surefire-plugin to not skip tests.  WAS 8.0 was started.

         

        I changed arquillian.xml's configuration and received the following output:

         

        cd /home/chris/NetBeansProjects/arquillian-container-was/was-remote-8; JAVA_HOME=/usr/local/jdk1.7.0_45 M2_HOME=/usr/share/maven /usr/share/maven/bin/mvn clean install

        Scanning for projects...

                                                                              

        ------------------------------------------------------------------------

        Building Arquillian Container WebSphere AS Remote 8.x 1.0.0-SNAPSHOT

        ------------------------------------------------------------------------

         

        --- maven-clean-plugin:2.4.1:clean (default-clean) @ arquillian-was-remote-8 ---

        Deleting /home/chris/NetBeansProjects/arquillian-container-was/was-remote-8/target

         

        --- maven-enforcer-plugin:1.0:enforce (enforce-java-version) @ arquillian-was-remote-8 ---

         

        --- maven-enforcer-plugin:1.0:enforce (enforce-maven-version) @ arquillian-was-remote-8 ---

         

        --- maven-resources-plugin:2.5:resources (default-resources) @ arquillian-was-remote-8 ---

        [debug] execute contextualize

        Using 'UTF-8' encoding to copy filtered resources.

        Copying 1 resource

         

        --- maven-compiler-plugin:2.3.2:compile (default-compile) @ arquillian-was-remote-8 ---

        Compiling 5 source files to /home/chris/NetBeansProjects/arquillian-container-was/was-remote-8/target/classes

         

        --- maven-resources-plugin:2.5:testResources (default-testResources) @ arquillian-was-remote-8 ---

        [debug] execute contextualize

        Using 'UTF-8' encoding to copy filtered resources.

        Copying 2 resources

         

        --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ arquillian-was-remote-8 ---

        Compiling 7 source files to /home/chris/NetBeansProjects/arquillian-container-was/was-remote-8/target/test-classes

         

        --- maven-surefire-plugin:2.10:test (default-test) @ arquillian-was-remote-8 ---

        Surefire report directory: /home/chris/NetBeansProjects/arquillian-container-was/was-remote-8/target/surefire-reports

         

        -------------------------------------------------------

        T E S T S

        -------------------------------------------------------

        Running org.jboss.arquillian.container.was.remote_8.WebsphereIntegrationClientTestCase

        Nov 03, 2013 12:45:53 AM org.jboss.arquillian.container.was.remote_8.WebSphereRemoteContainer setup

        FINER: ENTRY

        Nov 03, 2013 12:45:53 AM org.jboss.arquillian.container.was.remote_8.WebSphereRemoteContainer setup

        FINER: RETURN

        Nov 03, 2013 12:45:53 AM org.jboss.arquillian.container.was.remote_8.WebSphereRemoteContainer start

        FINER: ENTRY

        Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.677 sec <<< FAILURE!

        Running org.jboss.arquillian.container.was.remote_8.WebSphereResourceInjectionTestCase

        Nov 03, 2013 12:45:54 AM org.jboss.arquillian.container.was.remote_8.WebSphereRemoteContainer setup

        FINER: ENTRY

        Nov 03, 2013 12:45:54 AM org.jboss.arquillian.container.was.remote_8.WebSphereRemoteContainer setup

        FINER: RETURN

        Nov 03, 2013 12:45:54 AM org.jboss.arquillian.container.was.remote_8.WebSphereRemoteContainer start

        FINER: ENTRY

        Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.101 sec <<< FAILURE!

        Running org.jboss.arquillian.container.was.remote_8.WebSphereClassInjectionTestCase

        Nov 03, 2013 12:45:54 AM org.jboss.arquillian.container.was.remote_8.WebSphereRemoteContainer setup

        FINER: ENTRY

        Nov 03, 2013 12:45:54 AM org.jboss.arquillian.container.was.remote_8.WebSphereRemoteContainer setup

        FINER: RETURN

        Nov 03, 2013 12:45:54 AM org.jboss.arquillian.container.was.remote_8.WebSphereRemoteContainer start

        FINER: ENTRY

        Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.062 sec <<< FAILURE!

         

        Results :

         

        Tests in error:

          org.jboss.arquillian.container.was.remote_8.WebsphereIntegrationClientTestCase: com/ibm/CORBA/iiop/ORB

          org.jboss.arquillian.container.was.remote_8.WebSphereResourceInjectionTestCase: Could not initialize class com.ibm.ws.pmi.server.PmiRegistry

          org.jboss.arquillian.container.was.remote_8.WebSphereClassInjectionTestCase: Could not initialize class com.ibm.ws.pmi.server.PmiRegistry

         

        Tests run: 3, Failures: 0, Errors: 3, Skipped: 0

         

        ------------------------------------------------------------------------

        BUILD FAILURE

        ------------------------------------------------------------------------

        Total time: 8.099s

        Finished at: Sun Nov 03 00:45:54 CDT 2013

        Final Memory: 27M/177M

        ------------------------------------------------------------------------

        Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project arquillian-was-remote-8: There are test failures.

         

        Please refer to /home/chris/NetBeansProjects/arquillian-container-was/was-remote-8/target/surefire-reports for the individual test results.

        -> [Help 1]

         

        To see the full stack trace of the errors, re-run Maven with the -e switch.

        Re-run Maven using the -X switch to enable full debug logging.

         

        For more information about the errors and possible solutions, please read the following articles:

        [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

         

         

        .WebSphereClassInjectionTestCase:

        -------------------------------------------------------------------------------

        Test set: org.jboss.arquillian.container.was.remote_8.WebSphereClassInjectionTestCase

        -------------------------------------------------------------------------------

        Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.062 sec <<< FAILURE!

        org.jboss.arquillian.container.was.remote_8.WebSphereClassInjectionTestCase  Time elapsed: 0.219 sec  <<< ERROR!

        java.lang.NoClassDefFoundError: Could not initialize class com.ibm.ws.pmi.server.PmiRegistry

            at com.ibm.wsspi.pmi.factory.StatsFactory.isPMIEnabled(Unknown Source)

            at com.ibm.ws.security.auth.ContextManagerImpl.<init>(ContextManagerImpl.java:550)

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

            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

            at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

            at java.lang.Class.newInstance(Class.java:374)

            at com.ibm.ws.security.core.ContextManagerFactory.createInstance(ContextManagerFactory.java:417)

            at com.ibm.ws.security.core.ContextManagerFactory.getInstance(ContextManagerFactory.java:148)

            at com.ibm.websphere.management.AdminClientFactory.getCacheKey(Unknown Source)

            at com.ibm.websphere.management.AdminClientFactory.createAdminClientPrivileged(Unknown Source)

            at com.ibm.websphere.management.AdminClientFactory.access$000(Unknown Source)

            at com.ibm.websphere.management.AdminClientFactory$1.run(Unknown Source)

            at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:63)

            at com.ibm.websphere.management.AdminClientFactory.createAdminClient(Unknown Source)

            at org.jboss.arquillian.container.was.remote_8.WebSphereRemoteContainer.start(WebSphereRemoteContainer.java:145)

            at org.jboss.arquillian.container.impl.ContainerImpl.start(ContainerImpl.java:198)

            at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$8.perform(ContainerLifecycleController.java:163)

            at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$8.perform(ContainerLifecycleController.java:157)

            at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.forContainer(ContainerLifecycleController.java:255)

            at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.startContainer(ContainerLifecycleController.java:156)

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

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

            at java.lang.reflect.Method.invoke(Method.java:606)

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

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

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

            at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploymentContextHandler.java:57)

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

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

            at java.lang.reflect.Method.invoke(Method.java:606)

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

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

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

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

            at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

            at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$2.perform(ContainerLifecycleController.java:77)

            at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$2.perform(ContainerLifecycleController.java:70)

            at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.forEachSuiteContainer(ContainerLifecycleController.java:221)

            at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.startSuiteContainers(ContainerLifecycleController.java:69)

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

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

            at java.lang.reflect.Method.invoke(Method.java:606)

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

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

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

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

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

            at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

            at org.jboss.arquillian.container.test.impl.client.ContainerEventController.execute(ContainerEventController.java:86)

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

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

            at java.lang.reflect.Method.invoke(Method.java:606)

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

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

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

            at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)

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

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

            at java.lang.reflect.Method.invoke(Method.java:606)

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

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

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

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

            at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeSuite(EventTestRunnerAdaptor.java:68)

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

            at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)

            at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)

            at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)

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

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

            at java.lang.reflect.Method.invoke(Method.java:606)

            at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)

            at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)

            at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)

            at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)

            at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)

         

         

        .WebSphereResourceInjectionTestCase:

        -------------------------------------------------------------------------------

        Test set: org.jboss.arquillian.container.was.remote_8.WebSphereResourceInjectionTestCase

        -------------------------------------------------------------------------------

        Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.094 sec <<< FAILURE!

        org.jboss.arquillian.container.was.remote_8.WebSphereResourceInjectionTestCase  Time elapsed: 0.155 sec  <<< ERROR!

        java.lang.NoClassDefFoundError: Could not initialize class com.ibm.ws.pmi.server.PmiRegistry

            at com.ibm.wsspi.pmi.factory.StatsFactory.isPMIEnabled(Unknown Source)

            at com.ibm.ws.security.auth.ContextManagerImpl.<init>(ContextManagerImpl.java:550)

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

            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

            at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

            at java.lang.Class.newInstance(Class.java:374)

            at com.ibm.ws.security.core.ContextManagerFactory.createInstance(ContextManagerFactory.java:417)

            at com.ibm.ws.security.core.ContextManagerFactory.getInstance(ContextManagerFactory.java:148)

            at com.ibm.websphere.management.AdminClientFactory.getCacheKey(Unknown Source)

            at com.ibm.websphere.management.AdminClientFactory.createAdminClientPrivileged(Unknown Source)

            at com.ibm.websphere.management.AdminClientFactory.access$000(Unknown Source)

            at com.ibm.websphere.management.AdminClientFactory$1.run(Unknown Source)

            at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:63)

            at com.ibm.websphere.management.AdminClientFactory.createAdminClient(Unknown Source)

            at org.jboss.arquillian.container.was.remote_8.WebSphereRemoteContainer.start(WebSphereRemoteContainer.java:145)

            at org.jboss.arquillian.container.impl.ContainerImpl.start(ContainerImpl.java:198)

            at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$8.perform(ContainerLifecycleController.java:163)

            at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$8.perform(ContainerLifecycleController.java:157)

            at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.forContainer(ContainerLifecycleController.java:255)

            at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.startContainer(ContainerLifecycleController.java:156)

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

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

            at java.lang.reflect.Method.invoke(Method.java:606)

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

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

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

            at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploymentContextHandler.java:57)

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

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

            at java.lang.reflect.Method.invoke(Method.java:606)

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

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

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

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

            at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

            at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$2.perform(ContainerLifecycleController.java:77)

            at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$2.perform(ContainerLifecycleController.java:70)

            at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.forEachSuiteContainer(ContainerLifecycleController.java:221)

            at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.startSuiteContainers(ContainerLifecycleController.java:69)

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

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

            at java.lang.reflect.Method.invoke(Method.java:606)

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

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

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

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

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

            at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

            at org.jboss.arquillian.container.test.impl.client.ContainerEventController.execute(ContainerEventController.java:86)

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

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

            at java.lang.reflect.Method.invoke(Method.java:606)

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

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

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

            at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)

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

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

            at java.lang.reflect.Method.invoke(Method.java:606)

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

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

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

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

            at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeSuite(EventTestRunnerAdaptor.java:68)

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

            at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)

            at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)

            at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)

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

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

            at java.lang.reflect.Method.invoke(Method.java:606)

            at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)

            at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)

            at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)

            at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)

            at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)

         

        .WebsphereIntegrationClientTestCase:

        -------------------------------------------------------------------------------

        Test set: org.jboss.arquillian.container.was.remote_8.WebsphereIntegrationClientTestCase

        -------------------------------------------------------------------------------

        Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.677 sec <<< FAILURE!

        org.jboss.arquillian.container.was.remote_8.WebsphereIntegrationClientTestCase  Time elapsed: 0 sec  <<< ERROR!

        java.lang.NoClassDefFoundError: com/ibm/CORBA/iiop/ORB

            at java.lang.Class.forName0(Native Method)

            at java.lang.Class.forName(Class.java:190)

            at com.ibm.ws.util.PlatformHelperFactory.getBackupHelper(PlatformHelperFactory.java:123)

            at com.ibm.ws.util.PlatformHelperFactory.getPlatformHelper(PlatformHelperFactory.java:89)

            at com.ibm.ws.pmi.server.PmiRegistry.<clinit>(PmiRegistry.java:75)

            at com.ibm.wsspi.pmi.factory.StatsFactory.isPMIEnabled(Unknown Source)

            at com.ibm.ws.security.auth.ContextManagerImpl.<init>(ContextManagerImpl.java:550)

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

            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

            at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

            at java.lang.Class.newInstance(Class.java:374)

            at com.ibm.ws.security.core.ContextManagerFactory.createInstance(ContextManagerFactory.java:417)

            at com.ibm.ws.security.core.ContextManagerFactory.getInstance(ContextManagerFactory.java:148)

            at com.ibm.websphere.management.AdminClientFactory.getCacheKey(Unknown Source)

            at com.ibm.websphere.management.AdminClientFactory.createAdminClientPrivileged(Unknown Source)

            at com.ibm.websphere.management.AdminClientFactory.access$000(Unknown Source)

            at com.ibm.websphere.management.AdminClientFactory$1.run(Unknown Source)

            at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:63)

            at com.ibm.websphere.management.AdminClientFactory.createAdminClient(Unknown Source)

            at org.jboss.arquillian.container.was.remote_8.WebSphereRemoteContainer.start(WebSphereRemoteContainer.java:145)

            at org.jboss.arquillian.container.impl.ContainerImpl.start(ContainerImpl.java:198)

            at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$8.perform(ContainerLifecycleController.java:163)

            at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$8.perform(ContainerLifecycleController.java:157)

            at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.forContainer(ContainerLifecycleController.java:255)

            at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.startContainer(ContainerLifecycleController.java:156)

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

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

            at java.lang.reflect.Method.invoke(Method.java:606)

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

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

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

            at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploymentContextHandler.java:57)

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

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

            at java.lang.reflect.Method.invoke(Method.java:606)

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

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

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

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

            at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

            at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$2.perform(ContainerLifecycleController.java:77)

            at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$2.perform(ContainerLifecycleController.java:70)

            at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.forEachSuiteContainer(ContainerLifecycleController.java:221)

            at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.startSuiteContainers(ContainerLifecycleController.java:69)

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

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

            at java.lang.reflect.Method.invoke(Method.java:606)

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

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

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

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

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

            at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

            at org.jboss.arquillian.container.test.impl.client.ContainerEventController.execute(ContainerEventController.java:86)

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

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

            at java.lang.reflect.Method.invoke(Method.java:606)

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

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

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

            at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)

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

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

            at java.lang.reflect.Method.invoke(Method.java:606)

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

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

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

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

            at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeSuite(EventTestRunnerAdaptor.java:68)

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

            at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)

            at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)

            at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)

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

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

            at java.lang.reflect.Method.invoke(Method.java:606)

            at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)

            at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)

            at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)

            at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)

            at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)

        Caused by: java.lang.ClassNotFoundException: com.ibm.CORBA.iiop.ORB

            at java.net.URLClassLoader$1.run(URLClassLoader.java:366)

            at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

            at java.security.AccessController.doPrivileged(Native Method)

            at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

            at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

            at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

            ... 88 more

        Caused by: java.lang.ClassNotFoundException: com.ibm.CORBA.iiop.ORB

            at java.net.URLClassLoader$1.run(URLClassLoader.java:366)

            at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

            at java.security.AccessController.doPrivileged(Native Method)

            at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

            at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

            at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

            ... 88 more

         

         

        Here's the modified arquillian.xml:

        <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

        <arquillian xmlns="http://www.jboss.org/arquillian-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

            xsi:schemaLocation="http://www.jboss.org/arquillian-1.0 http://jboss.org/schema/arquillian/arquillian-1.0.xsd">

         

            <engine>

                <property name="deploymentExportPath">target/</property>

            </engine>

         

            <container qualifier="websphere" default="true">

                <configuration>

                    <property name="remoteServerAddress">localhost</property>

                    <property name="remoteServerSoapPort">8880</property>

                    <property name="securityEnabled">true</property>

                    <property name="username">wasadmin</property>

                    <property name="password"><the_password></property>

                     <property name="sslTrustStore">/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/etc/DummyClientTrustFile.jks</property>

                                <property name="sslTrustStorePassword">WebAS</property>

                </configuration>

            </container>

        </arquillian>

         

        Here's pom.xml:

        <?xml version="1.0" encoding="UTF-8"?>

        <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

            xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

         

            <!-- Parent -->

            <parent>

                <groupId>org.jboss.arquillian.container</groupId>

                <artifactId>arquillian-parent-was</artifactId>

                <version>1.0.0-SNAPSHOT</version>

                <relativePath>../pom.xml</relativePath>

            </parent>

         

            <!-- Model Version -->

            <modelVersion>4.0.0</modelVersion>

         

            <!-- Artifact Configuration -->

            <artifactId>arquillian-was-remote-8</artifactId>

            <name>Arquillian Container WebSphere AS Remote 8.x</name>

            <description>WebSphere AS 8.x Remote Container integration for the Arquillian Project</description>

         

         

            <!-- Properties -->

         

            <properties>

                <was_home>/opt/IBM/WebSphere/AppServer</was_home>

                <version.ejb_api>3.1.0</version.ejb_api>

            </properties>

         

            <profiles>

                <profile>

                    <id>build-server</id>

                    <properties>

                        <was_home>/opt/IBM/WebSphere/AppServer</was_home>

                    </properties>

                </profile>

            </profiles>

         

         

            <!-- Build -->

         

            <build>

                <plugins>

                    <plugin>

                        <groupId>org.apache.maven.plugins</groupId>

                        <artifactId>maven-surefire-plugin</artifactId>

                        <configuration>

                            <skip>false</skip>

                            <systemProperties>

                                <property>

                                    <name>java.util.logging.config.file</name>

                                    <value>${basedir}/src/test/resources/logging.properties</value>

                                </property>

                            </systemProperties>

                        </configuration>

                    </plugin>

                </plugins>

            </build>

         

            <!-- Dependencies -->

            <dependencies>

         

                <!-- org.jboss.arquillian -->

                <dependency>

                    <groupId>org.jboss.arquillian.container</groupId>

                    <artifactId>arquillian-container-spi</artifactId>

                </dependency>

                <dependency>

                    <groupId>org.jboss.arquillian.container</groupId>

                    <artifactId>arquillian-container-test-spi</artifactId>

                </dependency>

                <dependency>

                    <groupId>org.jboss.arquillian.protocol</groupId>

                    <artifactId>arquillian-protocol-servlet</artifactId>

                </dependency>

                <dependency>

                    <groupId>org.jboss.arquillian.testenricher</groupId>

                    <artifactId>arquillian-testenricher-cdi</artifactId>

                </dependency>

                <dependency>

                    <groupId>org.jboss.arquillian.testenricher</groupId>

                    <artifactId>arquillian-testenricher-ejb</artifactId>

                </dependency>

                <dependency>

                    <groupId>org.jboss.arquillian.testenricher</groupId>

                    <artifactId>arquillian-testenricher-resource</artifactId>

                </dependency>

                <dependency>

                    <groupId>org.jboss.arquillian.testenricher</groupId>

                    <artifactId>arquillian-testenricher-initialcontext</artifactId>

                </dependency>

         

                <dependency>

                    <groupId>org.jboss.shrinkwrap.descriptors</groupId>

                    <artifactId>shrinkwrap-descriptors-api-javaee</artifactId>

                </dependency>

                <dependency>

                    <groupId>org.jboss.shrinkwrap.descriptors</groupId>

                    <artifactId>shrinkwrap-descriptors-impl-javaee</artifactId>

                    <scope>runtime</scope>

                </dependency>

         

                <!-- com.ibm.websphere -->

         

                <dependency>

                    <groupId>com.ibm.websphere</groupId>

                    <artifactId>was-public</artifactId>

                    <version>8.0.0</version>

                    <scope>system</scope>

                    <systemPath>${was_home}/dev/was_public.jar</systemPath>

                </dependency>

         

                <!-- Testing -->

         

                <dependency>

                    <groupId>org.jboss.arquillian.junit</groupId>

                    <artifactId>arquillian-junit-container</artifactId>

                    <scope>test</scope>

                </dependency>

         

                <dependency>

                    <groupId>junit</groupId>

                    <artifactId>junit</artifactId>

                    <scope>test</scope>

                </dependency>

         

                <dependency>

                    <groupId>org.jboss.ejb3</groupId>

                    <artifactId>jboss-ejb3-api</artifactId>

                    <version>${version.ejb_api}</version>

                    <scope>test</scope>

                </dependency>

         

                <!-- com.ibm.websphere -->

         

                <dependency>

                    <groupId>com.ibm.websphere</groupId>

                    <artifactId>ws-admin-client</artifactId>

                    <version>8.0.0</version>

                    <scope>system</scope>

                    <systemPath>${was_home}/runtimes/com.ibm.ws.admin.client_8.0.0.jar</systemPath>

                </dependency>

         

                <dependency>

                    <groupId>com.ibm.websphere</groupId>

                    <artifactId>jgss-provider</artifactId>

                    <version>8.0.0</version>

                    <scope>system</scope>

                    <systemPath>${was_home}/java/jre/lib/ibmjgssprovider.jar</systemPath>

                </dependency>

            </dependencies>

        </project>

        • 31. Re: Arquillian with WebSphere
          gpoul

          Hi Chris,

           

          do you have PMI enabled? If yes, please disable it for testing purposes.

           

          If you haven't changed anything in that regard, can you please create a new standard profile without any modifications and see whether that makes it work.

           

          I can't remember ever having seen this exception and this might really be a problem with some JAR that is not on the classpath, but in order for me to reproduce and see why this happens we need to figure out why this PMI class is not needed on my test machines and why it is needed on yours. Something in the configuration of the profile seems to be different.

           

          Gerhard

          • 32. Re: Arquillian with WebSphere
            chrisharris

            Hi, Gerhard.

             

            Yes, PMI was enabled.  I disabled PMI and restarted WAS, however I'm still seeing the same 3 errors.

             

            I can try a new profile, but I think that I should mention that I haven't once modified the configuration for this WAS v8.0.0.7 profile.  I've been using this WAS instance for 2-3 weeks since I installed it.

             

            Perhaps installing the WAS instance that comes with RAD causes this issue?  I've had similar issues attempting to run Arquillian on WAS 8 (and RAD) using Win XP & Win 7 as well.

             

            I'll still try a new profile as you suggested.  I'll let you know the outcome.  Thanks, Gerhard.

            • 33. Re: Arquillian with WebSphere
              gpoul

              Hi Chris,

               

              the versions shipped with RAD have been the same as regular WAS for a long time and there shouldn't be any differences. What JAVA_HOME are you using? Please make sure you're using the one that comes with the WAS you're using, not the one from RAD or some other JVM.

               

              Gerhard

              • 34. Re: Arquillian with WebSphere
                bmajsak

                Hi Chris,

                 

                If I'm not mistaken you are running your tests using OpenJDK. Have you tried with IBM JDK? If I remember correctly we were always running our Arquillian tests against WAS 8.x remote using IBM JDK, as others were having some classloading issues (and obviously the adapter itself is using IBM-specific classes).

                 

                HTH

                • 35. Re: Arquillian with WebSphere
                  chrisharris

                  Hi, Gerhard.

                   

                  Ugh, that's what I get for working on this late at night.  I was using NetBeans to test the arquillian-was-8-remote project, but I didn't set the JDK to the WAS JDK.

                   

                  - Chris

                  • 36. Re: Arquillian with WebSphere
                    chrisharris

                    gpoul (& bmajsak ),

                     

                    I got the arquillian-was-8-remote project working on WAS 8 once I set the JDK for the project to the IBM JDK in NetBeans.

                     

                    Thank you!

                    • 37. Re: Arquillian with WebSphere
                      gpoul

                      I added a sample arquillian.xml to the container reference documentation.

                      • 38. Re: Arquillian with WebSphere
                        chrisharris

                        Thanks, gpoul

                         

                        One piece of information that I'd like to share is that since I have security enabled, only the following configuration would allow me to run successful Integration tests on WAS 8:

                         

                        <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

                        <arquillian xmlns="http://www.jboss.org/arquillian-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                            xsi:schemaLocation="http://www.jboss.org/arquillian-1.0 http://jboss.org/schema/arquillian/arquillian-1.0.xsd">

                         

                            <engine>

                                <property name="deploymentExportPath">target/</property>

                            </engine>

                         

                            <container qualifier="websphere" default="true">

                                <configuration>

                                    <property name="remoteServerAddress">localhost</property>

                                    <property name="remoteServerSoapPort">8880</property>

                                    <property name="securityEnabled">true</property>

                                    <property name="username">wasadmin</property>

                                    <property name="password"><the_password></property>

                                    <property name="sslTrustStore">/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/etc/DummyClientTrustFile.jks</property>

                                    <property name="sslTrustStorePassword">WebAS</property>

                                </configuration>

                            </container>

                        </arquillian>

                         

                        The bold section was crucial.

                        • 39. Re: Arquillian with WebSphere
                          gpoul

                          Chris,

                           

                          Thanks! - I just made an update noting this on WAS V8.0 - Remote - Arquillian - Project Documentation Editor

                           

                          Gerhard

                          • 40. Re: Arquillian with WebSphere
                            chrisharris

                            Hi, gpoul .  I have a final question concerning this thread.

                             

                            I'm trying to apply all this knowledge to a real project and eventually our team's Jenkins instance.  Going back and reviewing my steps, I'm able to consistently run Arquilllian tests against my local WAS 8 using Command Prompt and NetBeans.  I've even created 2 simple tester projects: one a maven jar project and the other a simple war project.  It was relatively easy.  The only hurdle was realizing that I needed to use the com.ibm.ws.runtime artifact instead of javax.javaee-api for the war project.

                             

                            However, Eclipse/RAD is the standard IDE where I work.  I can't get my 2 tester projects to successfully execute Arquillian tests in RAD 9.0.1.

                             

                            Starting with the simplest case, I'll just talk about the tester jar project.  I imported the JUnit & Arquillian tests from the was8-remote project.  RAD then complains about not being able to resolve types for @EJB or @Stateless.  NetBeans doesn't complain at all.  So, I add the dependency:

                                      <dependency>

                                        <groupId>javax</groupId>

                                        <artifactId>javaee-api</artifactId>

                                        <version>6.0</version>

                                        <scope>provided</scope>

                                    </dependency>

                             

                            Of course, running the tests again will yield a stack trace like so:

                            [INFO] Scanning for projects...

                            [INFO]                                                                        

                            [INFO] ------------------------------------------------------------------------

                            [INFO] Building arquillian-jar-test 1.0.0-SNAPSHOT

                            [INFO] ------------------------------------------------------------------------

                            [WARNING] The POM for org.jboss.arquillian.container:arquillian-was-remote-8:jar:1.0.0-SNAPSHOT is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details

                            [INFO]

                            [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ arquillian-jar-test ---

                            [INFO] Deleting C:\Users\harrisc7\Documents\NetBeansProjects\arquillian-jar-test\target

                            [INFO]

                            [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ arquillian-jar-test ---

                            [INFO] Using 'UTF-8' encoding to copy filtered resources.

                            [INFO] skip non existing resourceDirectory C:\Users\harrisc7\Documents\NetBeansProjects\arquillian-jar-test\src\main\resources

                            [INFO]

                            [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ arquillian-jar-test ---

                            [INFO] Nothing to compile - all classes are up to date

                            [INFO]

                            [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ arquillian-jar-test ---

                            [INFO] Using 'UTF-8' encoding to copy filtered resources.

                            [INFO] Copying 1 resource

                            [INFO]

                            [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ arquillian-jar-test ---

                            [INFO] Compiling 8 source files to C:\Users\harrisc7\Documents\NetBeansProjects\arquillian-jar-test\target\test-classes

                            [INFO]

                            [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ arquillian-jar-test ---

                            [INFO] Surefire report directory: C:\Users\harrisc7\Documents\NetBeansProjects\arquillian-jar-test\target\surefire-reports

                             

                            -------------------------------------------------------

                            T E S T S

                            -------------------------------------------------------

                            Running com.company.mcoe.arquillian.jar.test.WebSphereClassInjectionTestCase

                            Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.386 sec <<< FAILURE!

                            com.company.mcoe.arquillian.jar.test.WebSphereClassInjectionTestCase  Time elapsed: 0.37 sec  <<< 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:160)

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

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

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

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

                                at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)

                                at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)

                                at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)

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

                                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:76)

                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                                at java.lang.reflect.Method.invoke(Method.java:607)

                                at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)

                                at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)

                                at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)

                                at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)

                                at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)

                            Caused by: java.lang.reflect.InvocationTargetException

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

                                at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:68)

                                at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

                                at java.lang.reflect.Constructor.newInstance(Constructor.java:529)

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

                                ... 16 more

                            Caused by: java.lang.ClassFormatError: JVMCFRE074 no Code attribute specified; class="javax"/jms/IllegalStateException, method=<init>(Ljava/lang/String;Ljava/lang/String;)V, pc=0

                                at java.lang.ClassLoader.defineClass(ClassLoader.java:306)

                                at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:143)

                                at java.net.URLClassLoader.defineClass(URLClassLoader.java:700)

                                at java.net.URLClassLoader.access$400(URLClassLoader.java:81)

                                at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1148)

                                at java.security.AccessController.doPrivileged(AccessController.java:366)

                                at java.net.URLClassLoader.findClass(URLClassLoader.java:583)

                                at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:756)

                                at java.lang.ClassLoader.loadClass(ClassLoader.java:724)

                                at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:313)

                                at java.lang.ClassLoader.loadClass(ClassLoader.java:703)

                                at java.lang.J9VMInternals.verifyImpl(Native Method)

                                at java.lang.J9VMInternals.verify(J9VMInternals.java:93)

                                at java.lang.J9VMInternals.prepare(J9VMInternals.java:490)

                                at java.lang.Class.getDeclaredConstructor(Class.java:498)

                                at org.jboss.arquillian.core.impl.loadable.SecurityActions$1.run(SecurityActions.java:182)

                                at org.jboss.arquillian.core.impl.loadable.SecurityActions$1.run(SecurityActions.java:179)

                                at java.security.AccessController.doPrivileged(AccessController.java:330)

                                at org.jboss.arquillian.core.impl.loadable.SecurityActions.getConstructor(SecurityActions.java:178)

                                at org.jboss.arquillian.core.impl.loadable.SecurityActions.newInstance(SecurityActions.java:152)

                                at org.jboss.arquillian.core.impl.loadable.ServiceRegistryLoader.createServiceInstance(ServiceRegistryLoader.java:103)

                                at org.jboss.arquillian.core.impl.loadable.ServiceRegistryLoader.all(ServiceRegistryLoader.java:55)

                                at org.jboss.arquillian.core.impl.loadable.ServiceRegistryLoader.onlyOne(ServiceRegistryLoader.java:67)

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

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

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

                                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:76)

                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                                at java.lang.reflect.Method.invoke(Method.java:607)

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

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

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

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

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

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

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

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

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

                                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:76)

                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                                at java.lang.reflect.Method.invoke(Method.java:607)

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

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

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

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

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

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

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

                                ... 21 more

                            Caused by: java.lang.reflect.InvocationTargetException

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

                                at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:68)

                                at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

                                at java.lang.reflect.Constructor.newInstance(Constructor.java:529)

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

                                ... 16 more

                            Caused by: java.lang.ClassFormatError: JVMCFRE074 no Code attribute specified; class="javax"/jms/IllegalStateException, method=<init>(Ljava/lang/String;Ljava/lang/String;)V, pc=0

                                at java.lang.ClassLoader.defineClass(ClassLoader.java:306)

                                at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:143)

                                at java.net.URLClassLoader.defineClass(URLClassLoader.java:700)

                                at java.net.URLClassLoader.access$400(URLClassLoader.java:81)

                                at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1148)

                                at java.security.AccessController.doPrivileged(AccessController.java:366)

                                at java.net.URLClassLoader.findClass(URLClassLoader.java:583)

                                at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:756)

                                at java.lang.ClassLoader.loadClass(ClassLoader.java:724)

                                at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:313)

                                at java.lang.ClassLoader.loadClass(ClassLoader.java:703)

                                at java.lang.J9VMInternals.verifyImpl(Native Method)

                                at java.lang.J9VMInternals.verify(J9VMInternals.java:93)

                                at java.lang.J9VMInternals.prepare(J9VMInternals.java:490)

                                at java.lang.Class.getDeclaredConstructor(Class.java:498)

                                at org.jboss.arquillian.core.impl.loadable.SecurityActions$1.run(SecurityActions.java:182)

                                at org.jboss.arquillian.core.impl.loadable.SecurityActions$1.run(SecurityActions.java:179)

                                at java.security.AccessController.doPrivileged(AccessController.java:330)

                                at org.jboss.arquillian.core.impl.loadable.SecurityActions.getConstructor(SecurityActions.java:178)

                                at org.jboss.arquillian.core.impl.loadable.SecurityActions.newInstance(SecurityActions.java:152)

                                at org.jboss.arquillian.core.impl.loadable.ServiceRegistryLoader.createServiceInstance(ServiceRegistryLoader.java:103)

                                at org.jboss.arquillian.core.impl.loadable.ServiceRegistryLoader.all(ServiceRegistryLoader.java:55)

                                at org.jboss.arquillian.core.impl.loadable.ServiceRegistryLoader.onlyOne(ServiceRegistryLoader.java:67)

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

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

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

                                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:76)

                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                                at java.lang.reflect.Method.invoke(Method.java:607)

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

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

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

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

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

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

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

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

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

                                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:76)

                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                                at java.lang.reflect.Method.invoke(Method.java:607)

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

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

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

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

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

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

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

                                ... 21 more

                             

                            I received a similar error just for my tester war project in NetBeans.  I fixed it by adding the com.ibm.ws.runtime dependency as mentioned earlier.  However, adding this dependency to my jar project doesn't get rid of the compile errors in RAD.  Running the JUnit test will still yield the same stack trace as above anyway.

                             

                            Do you have any suggestions about how I can get Arquillian WAS 8 tests to run in Eclipse/RAD?

                            • 41. Re: Arquillian with WebSphere
                              bmajsak

                              I used to work on the projects using WAS 8.0 and 8.5. You should run your tests using IBM JDK, otherwise adapter will be complaining about some missing classes.

                              • 42. Re: Arquillian with WebSphere
                                gpoul

                                Please don't use javax/javaee-api, but use some other dependency if you need to. This seems to be related to this problem mentioned here: http://www.mkyong.com/hibernate/java-lang-classformaterror-absent-code-attribute-in-method-that-is-not-native-or-abstrac…

                                 

                                In addition please make sure to always use the JDK that shipped with the WAS client or server code you're using. - This might also be related to the problem you have with Eclipse/RAD. Both will probably not use the WAS JDK by default.

                                 

                                Please keep us posted!

                                • 43. Re: Arquillian with WebSphere
                                  chrisharris

                                  Hi, bmajsak and gpoul

                                   

                                  Well, I'm not sure what happened, but my arquillian-jar-test project worked.  The JDK was still set to the WAS v8.0 JDK.

                                   

                                  The only difference since last time is that I deleted the project from my workspace at the end my last session and then just imported it again.

                                   

                                  The Arquillian tests successfully executed!

                                   

                                  Now, it's on to my arquillian-war-test project...

                                  • 44. Re: Arquillian with WebSphere
                                    chrisharris

                                    Wow.  The same thing just happened with my arquillian-war-test project.  Arquilliian successfully executed once I imported the war project again.  This IDE never ceases to amaze me...

                                     

                                    Thanks again, guys!

                                     

                                    Any chance the arquillian-parent-was project's modules will be published to the public JBoss repo?  I can only find the parent pom project in that repo.  Our company Maven repo points to the JBoss repos and Central.  I'd like to be able to pull the modules, such as arquillian-was-remote-8, into our Maven repo without requiring me to clone the GitHub repo, build the project, and then upload it to our Maven repo.