[JBoss JIRA] (ARQ-2089) Can't use Arquillian with WebSphere 8.5.5
by Gerhard Poul (JIRA)
[ https://issues.jboss.org/browse/ARQ-2089?page=com.atlassian.jira.plugin.s... ]
Gerhard Poul closed ARQ-2089.
-----------------------------
> Can't use Arquillian with WebSphere 8.5.5
> -----------------------------------------
>
> Key: ARQ-2089
> URL: https://issues.jboss.org/browse/ARQ-2089
> Project: Arquillian
> Issue Type: Feature Request
> Components: WebSphere Containers
> Environment: WebSphere Application Server Full Profile (WAS), on Windows 10. Java 6 (requirement for WebSphere 8.5.5)
> Reporter: nicolas duminil
> Assignee: Gerhard Poul
>
> I get the following exception while trying to run arquillian tests on WebSphere 8.5.5:
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.562 sec <<< FAILURE!
> be.alphacredit.tests.TestXSDValidationArquillian Time elapsed: 0 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:165)
> at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:102)
> at org.jboss.arquillian.test.spi.TestRunnerAdaptorBuilder.build(TestRunnerAdaptorBuilder.java:52)
> at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:113)
> 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:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> 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.reflect.InvocationTargetException
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
> at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:161)
> ... 15 more
> Caused by: java.lang.NoClassDefFoundError: Lcom/ibm/websphere/management/AdminClient;
> at java.lang.Class.getDeclaredFields0(Native Method)
> at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
> at java.lang.Class.getDeclaredFields(Class.java:1916)
> at org.jboss.arquillian.core.impl.Reflections.getFieldInjectionPoints(Reflections.java:74)
> at org.jboss.arquillian.core.impl.ExtensionImpl.of(ExtensionImpl.java:53)
> at org.jboss.arquillian.core.impl.ManagerImpl.inject(ManagerImpl.java:211)
> at org.jboss.arquillian.core.impl.InjectorImpl.inject(InjectorImpl.java:58)
> at org.jboss.arquillian.core.impl.loadable.ServiceRegistryLoader.createServiceInstance(ServiceRegistryLoader.java:108)
> 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:80)
> at org.jboss.arquillian.container.impl.client.container.ContainerRegistryCreator.createRegistry(ContainerRegistryCreator.java:78)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> 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:145)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
> at org.jboss.arquillian.core.impl.ManagerImpl.bindAndFire(ManagerImpl.java:265)
> at org.jboss.arquillian.core.impl.InstanceImpl.set(InstanceImpl.java:74)
> at org.jboss.arquillian.config.impl.extension.ConfigurationRegistrar.loadConfiguration(ConfigurationRegistrar.java:73)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> 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:145)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
> at org.jboss.arquillian.core.impl.ManagerImpl.start(ManagerImpl.java:290)
> at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.<init>(EventTestRunnerAdaptor.java:63)
> ... 20 more
> Caused by: java.lang.ClassNotFoundException: com.ibm.websphere.management.AdminClient
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> ... 55 more
> Here is the relevant part of my POM:
> <dependencies>
> <dependency>
> <groupId>com.ibm.websphere.j2ee</groupId>
> <artifactId>j2ee</artifactId>
> <scope>provided</scope>
> </dependency>
> ...............
> <dependency>
> <groupId>org.jboss.shrinkwrap.resolver</groupId>
> <artifactId>shrinkwrap-resolver-impl-maven</artifactId>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.jboss.arquillian.junit</groupId>
> <artifactId>arquillian-junit-container</artifactId>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.jboss.arquillian.protocol</groupId>
> <artifactId>arquillian-protocol-servlet</artifactId>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.jboss.arquillian.container</groupId>
> <artifactId>arquillian-was-remote-8.5</artifactId>
> <scope>test</scope>
> </dependency>
> Here is the arquillian.xml file:
> <?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/deployments/</property>
> </engine>
> <container qualifier="websphere" default="true">
> <configuration>
> <property name="remoteServerAddress">localhost</property>
> <property name="remoteServerSoapPort">8880</property>
> <property name="securityEnabled">false</property>
> <property name="username">nicolas</property>
> </configuration>
> </container>
> </arquillian>
> And here is my unit test:
> @RunWith(Arquillian.class)
> public class TestXSDValidationArquillian
> {
> private static final Logger slf4jLogger = LoggerFactory.getLogger(TestXSDValidationArquillian.class);
>
> @Deployment
> public static Archive<?> createTestArchive()
> {
> slf4jLogger.info("Loading pom.xml");
> PomEquippedResolveStage mavenResolver = Maven.resolver().loadPomFromFile("pom.xml");
> slf4jLogger.info("pom.xml loaded. Now importing dependencies");
> File[] libs = mavenResolver.importRuntimeAndTestDependencies().resolve().withTransitivity().asFile();
> slf4jLogger.info("Dependencies loaded. Creating web archive");
> WebArchive war = ShrinkWrap.create(WebArchive.class, "arquillian-test.war");
> slf4jLogger.info("Web archive created. Now, adding files to the archive");
> for (File file : libs)
> war.addAsLibrary(file);
> slf4jLogger.info("Web archive created");
> return war;
> }
>
> @Test
> public void test1(){}
> }
> What might be the problem here ? Many thanks in advance.
> Kind regards,
> Nicolas
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 8 months
[JBoss JIRA] (ARQ-2090) Arquillian test takes more than 5 minutes
by nicolas duminil (JIRA)
[ https://issues.jboss.org/browse/ARQ-2090?page=com.atlassian.jira.plugin.s... ]
nicolas duminil updated ARQ-2090:
---------------------------------
Description:
The execution of an Arquillian test (an empty test) takes more than 5 minutes. here is the test:
-{{(a)RunWith(Arquillian.class)
public class TestXSDValidationArquillian
{
private static final Logger slf4jLogger = LoggerFactory.getLogger(TestXSDValidationArquillian.class);
@Deployment
public static Archive<?> createTestArchive()
{
slf4jLogger.info("Loading pom.xml");
PomEquippedResolveStage mavenResolver = Maven.resolver().loadPomFromFile("pom.xml");
slf4jLogger.info("pom.xml loaded. Now importing dependencies");
File[] libs = mavenResolver.importRuntimeAndTestDependencies().resolve().withTransitivity().asFile();
slf4jLogger.info("Dependencies loaded. Creating web archive");
WebArchive war = ShrinkWrap.create(WebArchive.class, "arquillian-test.war");
slf4jLogger.info("Web archive created. Now, adding files to the archive");
for (File file : libs)
war.addAsLibrary(file);
slf4jLogger.info("Web archive created");
return war;
}-
@Test
public void test1(){}
}}
An here is the console output:
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running be.alphacredit.tests.TestXSDValidationArquillian
04-Apr-2017 11:09:59 null null
WARNING: ADMC0046W
04-Apr-2017 11:10:00 null null
WARNING: Could not find tmx4jTransform.jar in null/etc/tmx4jTransform.jar - Interoperability to older versions of WebSphere is disabled
04-Apr-2017 11:10:00 null null
INFO: ssl.disable.url.hostname.verification.CWPKI0027I
Loading pom.xml
pom.xml loaded. Now importing dependencies
04-Apr-2017 11:10:02 org.jboss.shrinkwrap.resolver.impl.maven.logging.LogTransferListener transferFailed
WARNING: Failed downloading org/jboss/arquillian/container/arquillian-was-remote-8.5/1.0.0.Final-SNAPSHOT/maven-metadata.xml from http://repo1.maven.org/maven2/. Reason:
org.eclipse.aether.transfer.MetadataNotFoundException: Could not find metadata org.jboss.arquillian.container:arquillian-was-remote-8.5:1.0.0.Final-SNAPSHOT/maven-metadata.xml in central (http://repo1.maven.org/maven2)
04-Apr-2017 11:10:02 org.jboss.shrinkwrap.resolver.impl.maven.logging.LogTransferListener transferFailed
WARNING: Failed downloading org/jboss/arquillian/container/arquillian-parent-was/1.0.0.Final-SNAPSHOT/maven-metadata.xml from http://repo1.maven.org/maven2/. Reason:
org.eclipse.aether.transfer.MetadataNotFoundException: Could not find metadata org.jboss.arquillian.container:arquillian-parent-was:1.0.0.Final-SNAPSHOT/maven-metadata.xml in central (http://repo1.maven.org/maven2)
Dependencies loaded. Creating web archive
Web archive created. Now, adding files to the archive
Web archive created
04-Apr-2017 11:11:00 com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation
WARNING: [ com.ibm.ws.amm.scan.util.InfoVisitor@-323862990 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@-126388353 ( com.ibm.ws.amm.scan.util.info.impl.test.AnnotationTypeReaderAnno.nestedAnno ) ] Name [ null ] Description [ Lcom/ibm/ws/amm/scan/util/info/impl/test/AnnotationTypeReaderNestedAnno; ] Call in violation of protocol
04-Apr-2017 11:11:03 com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation
WARNING: [ com.ibm.ws.amm.scan.util.InfoVisitor@-323862990 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@1495822839 ( javax.persistence.AssociationOverride.joinTable ) ] Name [ null ] Description [ Ljavax/persistence/JoinTable; ] Call in violation of protocol
04-Apr-2017 11:11:03 com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation
WARNING: [ com.ibm.ws.amm.scan.util.InfoVisitor@-323862990 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@1522521260 ( javax.servlet.annotation.ServletSecurity.value ) ] Name [ null ] Description [ Ljavax/servlet/annotation/HttpConstraint; ] Call in violation of protocol
04-Apr-2017 11:11:31 org.jboss.arquillian.container.was.remote_8_5.WebSphereRemoteContainer deploy
INFO: Target server for deployment is WebSphere:cell=cac40Node01Cell,node=cac40Node01,server=server1
04-Apr-2017 11:14:39 org.jboss.arquillian.container.was.remote_8_5.WebSphereRemoteContainer deploy
INFO: Application was started on the following targets: WebSphere:cell=cac40Node01Cell,node=cac40Node01,server=server1
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 291.094 sec
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
As one may see, test starts at 11:09:59 and finishes at 11:14:39 and takes 291.094 seconds. I have googled and found some posts concerning the metadata-complete="true" that I added to my web.xml, as follows:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" metadata-complete="true"/>
but it didn't help. It seems to be related to the IBM Java 6 but this is the JVM that one is supposed to use with IBM WebSphere. Any idea of what might be the problem here ?
Kind regards,
Nicolas DUMINIL
was:
The execution of an Arquillian test (an empty test) takes more than 5 minutes. here is the test:
{{(a)RunWith(Arquillian.class)
public class TestXSDValidationArquillian
{
private static final Logger slf4jLogger = LoggerFactory.getLogger(TestXSDValidationArquillian.class);
@Deployment
public static Archive<?> createTestArchive()
{
slf4jLogger.info("Loading pom.xml");
PomEquippedResolveStage mavenResolver = Maven.resolver().loadPomFromFile("pom.xml");
slf4jLogger.info("pom.xml loaded. Now importing dependencies");
File[] libs = mavenResolver.importRuntimeAndTestDependencies().resolve().withTransitivity().asFile();
slf4jLogger.info("Dependencies loaded. Creating web archive");
WebArchive war = ShrinkWrap.create(WebArchive.class, "arquillian-test.war");
slf4jLogger.info("Web archive created. Now, adding files to the archive");
for (File file : libs)
war.addAsLibrary(file);
slf4jLogger.info("Web archive created");
return war;
}
@Test
public void test1(){}
}}
An here is the console output:
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running be.alphacredit.tests.TestXSDValidationArquillian
04-Apr-2017 11:09:59 null null
WARNING: ADMC0046W
04-Apr-2017 11:10:00 null null
WARNING: Could not find tmx4jTransform.jar in null/etc/tmx4jTransform.jar - Interoperability to older versions of WebSphere is disabled
04-Apr-2017 11:10:00 null null
INFO: ssl.disable.url.hostname.verification.CWPKI0027I
Loading pom.xml
pom.xml loaded. Now importing dependencies
04-Apr-2017 11:10:02 org.jboss.shrinkwrap.resolver.impl.maven.logging.LogTransferListener transferFailed
WARNING: Failed downloading org/jboss/arquillian/container/arquillian-was-remote-8.5/1.0.0.Final-SNAPSHOT/maven-metadata.xml from http://repo1.maven.org/maven2/. Reason:
org.eclipse.aether.transfer.MetadataNotFoundException: Could not find metadata org.jboss.arquillian.container:arquillian-was-remote-8.5:1.0.0.Final-SNAPSHOT/maven-metadata.xml in central (http://repo1.maven.org/maven2)
04-Apr-2017 11:10:02 org.jboss.shrinkwrap.resolver.impl.maven.logging.LogTransferListener transferFailed
WARNING: Failed downloading org/jboss/arquillian/container/arquillian-parent-was/1.0.0.Final-SNAPSHOT/maven-metadata.xml from http://repo1.maven.org/maven2/. Reason:
org.eclipse.aether.transfer.MetadataNotFoundException: Could not find metadata org.jboss.arquillian.container:arquillian-parent-was:1.0.0.Final-SNAPSHOT/maven-metadata.xml in central (http://repo1.maven.org/maven2)
Dependencies loaded. Creating web archive
Web archive created. Now, adding files to the archive
Web archive created
04-Apr-2017 11:11:00 com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation
WARNING: [ com.ibm.ws.amm.scan.util.InfoVisitor@-323862990 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@-126388353 ( com.ibm.ws.amm.scan.util.info.impl.test.AnnotationTypeReaderAnno.nestedAnno ) ] Name [ null ] Description [ Lcom/ibm/ws/amm/scan/util/info/impl/test/AnnotationTypeReaderNestedAnno; ] Call in violation of protocol
04-Apr-2017 11:11:03 com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation
WARNING: [ com.ibm.ws.amm.scan.util.InfoVisitor@-323862990 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@1495822839 ( javax.persistence.AssociationOverride.joinTable ) ] Name [ null ] Description [ Ljavax/persistence/JoinTable; ] Call in violation of protocol
04-Apr-2017 11:11:03 com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation
WARNING: [ com.ibm.ws.amm.scan.util.InfoVisitor@-323862990 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@1522521260 ( javax.servlet.annotation.ServletSecurity.value ) ] Name [ null ] Description [ Ljavax/servlet/annotation/HttpConstraint; ] Call in violation of protocol
04-Apr-2017 11:11:31 org.jboss.arquillian.container.was.remote_8_5.WebSphereRemoteContainer deploy
INFO: Target server for deployment is WebSphere:cell=cac40Node01Cell,node=cac40Node01,server=server1
04-Apr-2017 11:14:39 org.jboss.arquillian.container.was.remote_8_5.WebSphereRemoteContainer deploy
INFO: Application was started on the following targets: WebSphere:cell=cac40Node01Cell,node=cac40Node01,server=server1
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 291.094 sec
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
As one may see, test starts at 11:09:59 and finishes at 11:14:39 and takes 291.094 seconds. I have googled and found some posts concerning the metadata-complete="true" that I added to my web.xml, as follows:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" metadata-complete="true"/>
but it didn't help. It seems to be related to the IBM Java 6 but this is the JVM that one is supposed to use with IBM WebSphere. Any idea of what might be the problem here ?
Kind regards,
Nicolas DUMINIL
> Arquillian test takes more than 5 minutes
> -----------------------------------------
>
> Key: ARQ-2090
> URL: https://issues.jboss.org/browse/ARQ-2090
> Project: Arquillian
> Issue Type: Bug
> Components: WebSphere Containers
> Environment: arquillian-was-remote-8.5:1.0.0-Final, WebSphere 8.5.5 on Windows 10,
> Java: IBM J9 VM (build 2.6, JRE 1.6.0 Windows 8 amd64-64 Compressed References 20130301_140166 (JIT enabled, AOT enabled)
> Reporter: nicolas duminil
> Assignee: Gerhard Poul
>
> The execution of an Arquillian test (an empty test) takes more than 5 minutes. here is the test:
> -{{(a)RunWith(Arquillian.class)
> public class TestXSDValidationArquillian
> {
> private static final Logger slf4jLogger = LoggerFactory.getLogger(TestXSDValidationArquillian.class);
>
> @Deployment
> public static Archive<?> createTestArchive()
> {
> slf4jLogger.info("Loading pom.xml");
> PomEquippedResolveStage mavenResolver = Maven.resolver().loadPomFromFile("pom.xml");
> slf4jLogger.info("pom.xml loaded. Now importing dependencies");
> File[] libs = mavenResolver.importRuntimeAndTestDependencies().resolve().withTransitivity().asFile();
> slf4jLogger.info("Dependencies loaded. Creating web archive");
> WebArchive war = ShrinkWrap.create(WebArchive.class, "arquillian-test.war");
> slf4jLogger.info("Web archive created. Now, adding files to the archive");
> for (File file : libs)
> war.addAsLibrary(file);
> slf4jLogger.info("Web archive created");
> return war;
> }-
>
> @Test
> public void test1(){}
> }}
> An here is the console output:
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Running be.alphacredit.tests.TestXSDValidationArquillian
> 04-Apr-2017 11:09:59 null null
> WARNING: ADMC0046W
> 04-Apr-2017 11:10:00 null null
> WARNING: Could not find tmx4jTransform.jar in null/etc/tmx4jTransform.jar - Interoperability to older versions of WebSphere is disabled
> 04-Apr-2017 11:10:00 null null
> INFO: ssl.disable.url.hostname.verification.CWPKI0027I
> Loading pom.xml
> pom.xml loaded. Now importing dependencies
> 04-Apr-2017 11:10:02 org.jboss.shrinkwrap.resolver.impl.maven.logging.LogTransferListener transferFailed
> WARNING: Failed downloading org/jboss/arquillian/container/arquillian-was-remote-8.5/1.0.0.Final-SNAPSHOT/maven-metadata.xml from http://repo1.maven.org/maven2/. Reason:
> org.eclipse.aether.transfer.MetadataNotFoundException: Could not find metadata org.jboss.arquillian.container:arquillian-was-remote-8.5:1.0.0.Final-SNAPSHOT/maven-metadata.xml in central (http://repo1.maven.org/maven2)
> 04-Apr-2017 11:10:02 org.jboss.shrinkwrap.resolver.impl.maven.logging.LogTransferListener transferFailed
> WARNING: Failed downloading org/jboss/arquillian/container/arquillian-parent-was/1.0.0.Final-SNAPSHOT/maven-metadata.xml from http://repo1.maven.org/maven2/. Reason:
> org.eclipse.aether.transfer.MetadataNotFoundException: Could not find metadata org.jboss.arquillian.container:arquillian-parent-was:1.0.0.Final-SNAPSHOT/maven-metadata.xml in central (http://repo1.maven.org/maven2)
> Dependencies loaded. Creating web archive
> Web archive created. Now, adding files to the archive
> Web archive created
> 04-Apr-2017 11:11:00 com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation
> WARNING: [ com.ibm.ws.amm.scan.util.InfoVisitor@-323862990 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@-126388353 ( com.ibm.ws.amm.scan.util.info.impl.test.AnnotationTypeReaderAnno.nestedAnno ) ] Name [ null ] Description [ Lcom/ibm/ws/amm/scan/util/info/impl/test/AnnotationTypeReaderNestedAnno; ] Call in violation of protocol
> 04-Apr-2017 11:11:03 com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation
> WARNING: [ com.ibm.ws.amm.scan.util.InfoVisitor@-323862990 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@1495822839 ( javax.persistence.AssociationOverride.joinTable ) ] Name [ null ] Description [ Ljavax/persistence/JoinTable; ] Call in violation of protocol
> 04-Apr-2017 11:11:03 com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation
> WARNING: [ com.ibm.ws.amm.scan.util.InfoVisitor@-323862990 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@1522521260 ( javax.servlet.annotation.ServletSecurity.value ) ] Name [ null ] Description [ Ljavax/servlet/annotation/HttpConstraint; ] Call in violation of protocol
> 04-Apr-2017 11:11:31 org.jboss.arquillian.container.was.remote_8_5.WebSphereRemoteContainer deploy
> INFO: Target server for deployment is WebSphere:cell=cac40Node01Cell,node=cac40Node01,server=server1
> 04-Apr-2017 11:14:39 org.jboss.arquillian.container.was.remote_8_5.WebSphereRemoteContainer deploy
> INFO: Application was started on the following targets: WebSphere:cell=cac40Node01Cell,node=cac40Node01,server=server1
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 291.094 sec
> Results :
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
> As one may see, test starts at 11:09:59 and finishes at 11:14:39 and takes 291.094 seconds. I have googled and found some posts concerning the metadata-complete="true" that I added to my web.xml, as follows:
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app id="WebApp_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" metadata-complete="true"/>
> but it didn't help. It seems to be related to the IBM Java 6 but this is the JVM that one is supposed to use with IBM WebSphere. Any idea of what might be the problem here ?
> Kind regards,
> Nicolas DUMINIL
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 8 months
[JBoss JIRA] (ARQ-2090) Arquillian test takes more than 5 minutes
by nicolas duminil (JIRA)
[ https://issues.jboss.org/browse/ARQ-2090?page=com.atlassian.jira.plugin.s... ]
nicolas duminil updated ARQ-2090:
---------------------------------
Description:
The execution of an Arquillian test (an empty test) takes more than 5 minutes. here is the test:
{{(a)RunWith(Arquillian.class)
public class TestXSDValidationArquillian
{
private static final Logger slf4jLogger = LoggerFactory.getLogger(TestXSDValidationArquillian.class);
@Deployment
public static Archive<?> createTestArchive()
{
slf4jLogger.info("Loading pom.xml");
PomEquippedResolveStage mavenResolver = Maven.resolver().loadPomFromFile("pom.xml");
slf4jLogger.info("pom.xml loaded. Now importing dependencies");
File[] libs = mavenResolver.importRuntimeAndTestDependencies().resolve().withTransitivity().asFile();
slf4jLogger.info("Dependencies loaded. Creating web archive");
WebArchive war = ShrinkWrap.create(WebArchive.class, "arquillian-test.war");
slf4jLogger.info("Web archive created. Now, adding files to the archive");
for (File file : libs)
war.addAsLibrary(file);
slf4jLogger.info("Web archive created");
return war;
}
@Test
public void test1(){}
}}
An here is the console output:
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running be.alphacredit.tests.TestXSDValidationArquillian
04-Apr-2017 11:09:59 null null
WARNING: ADMC0046W
04-Apr-2017 11:10:00 null null
WARNING: Could not find tmx4jTransform.jar in null/etc/tmx4jTransform.jar - Interoperability to older versions of WebSphere is disabled
04-Apr-2017 11:10:00 null null
INFO: ssl.disable.url.hostname.verification.CWPKI0027I
Loading pom.xml
pom.xml loaded. Now importing dependencies
04-Apr-2017 11:10:02 org.jboss.shrinkwrap.resolver.impl.maven.logging.LogTransferListener transferFailed
WARNING: Failed downloading org/jboss/arquillian/container/arquillian-was-remote-8.5/1.0.0.Final-SNAPSHOT/maven-metadata.xml from http://repo1.maven.org/maven2/. Reason:
org.eclipse.aether.transfer.MetadataNotFoundException: Could not find metadata org.jboss.arquillian.container:arquillian-was-remote-8.5:1.0.0.Final-SNAPSHOT/maven-metadata.xml in central (http://repo1.maven.org/maven2)
04-Apr-2017 11:10:02 org.jboss.shrinkwrap.resolver.impl.maven.logging.LogTransferListener transferFailed
WARNING: Failed downloading org/jboss/arquillian/container/arquillian-parent-was/1.0.0.Final-SNAPSHOT/maven-metadata.xml from http://repo1.maven.org/maven2/. Reason:
org.eclipse.aether.transfer.MetadataNotFoundException: Could not find metadata org.jboss.arquillian.container:arquillian-parent-was:1.0.0.Final-SNAPSHOT/maven-metadata.xml in central (http://repo1.maven.org/maven2)
Dependencies loaded. Creating web archive
Web archive created. Now, adding files to the archive
Web archive created
04-Apr-2017 11:11:00 com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation
WARNING: [ com.ibm.ws.amm.scan.util.InfoVisitor@-323862990 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@-126388353 ( com.ibm.ws.amm.scan.util.info.impl.test.AnnotationTypeReaderAnno.nestedAnno ) ] Name [ null ] Description [ Lcom/ibm/ws/amm/scan/util/info/impl/test/AnnotationTypeReaderNestedAnno; ] Call in violation of protocol
04-Apr-2017 11:11:03 com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation
WARNING: [ com.ibm.ws.amm.scan.util.InfoVisitor@-323862990 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@1495822839 ( javax.persistence.AssociationOverride.joinTable ) ] Name [ null ] Description [ Ljavax/persistence/JoinTable; ] Call in violation of protocol
04-Apr-2017 11:11:03 com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation
WARNING: [ com.ibm.ws.amm.scan.util.InfoVisitor@-323862990 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@1522521260 ( javax.servlet.annotation.ServletSecurity.value ) ] Name [ null ] Description [ Ljavax/servlet/annotation/HttpConstraint; ] Call in violation of protocol
04-Apr-2017 11:11:31 org.jboss.arquillian.container.was.remote_8_5.WebSphereRemoteContainer deploy
INFO: Target server for deployment is WebSphere:cell=cac40Node01Cell,node=cac40Node01,server=server1
04-Apr-2017 11:14:39 org.jboss.arquillian.container.was.remote_8_5.WebSphereRemoteContainer deploy
INFO: Application was started on the following targets: WebSphere:cell=cac40Node01Cell,node=cac40Node01,server=server1
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 291.094 sec
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
As one may see, test starts at 11:09:59 and finishes at 11:14:39 and takes 291.094 seconds. I have googled and found some posts concerning the metadata-complete="true" that I added to my web.xml, as follows:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" metadata-complete="true"/>
but it didn't help. It seems to be related to the IBM Java 6 but this is the JVM that one is supposed to use with IBM WebSphere. Any idea of what might be the problem here ?
Kind regards,
Nicolas DUMINIL
was:
The execution of an Arquillian test (an empty test) takes more than 5 minutes. here is the test:
@RunWith(Arquillian.class)
public class TestXSDValidationArquillian
{
private static final Logger slf4jLogger = LoggerFactory.getLogger(TestXSDValidationArquillian.class);
@Deployment
public static Archive<?> createTestArchive()
{
//slf4jLogger.info("Loading pom.xml");
System.out.println("Loading pom.xml");
PomEquippedResolveStage mavenResolver = Maven.resolver().loadPomFromFile("pom.xml");
//slf4jLogger.info("pom.xml loaded. Now importing dependencies");
System.out.println("pom.xml loaded. Now importing dependencies");
File[] libs = mavenResolver.importRuntimeAndTestDependencies().resolve().withTransitivity().asFile();
//slf4jLogger.info("Dependencies loaded. Creating web archive");
System.out.println("Dependencies loaded. Creating web archive");
WebArchive war = ShrinkWrap.create(WebArchive.class, "arquillian-test.war");
//slf4jLogger.info("Web archive created. Now, adding files to the archive");
System.out.println("Web archive created. Now, adding files to the archive");
for (File file : libs)
war.addAsLibrary(file);
//slf4jLogger.info("Web archive created");
System.out.println("Web archive created");
return war;
}
@Test
public void test1(){}
An here is the console output:
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running be.alphacredit.tests.TestXSDValidationArquillian
04-Apr-2017 11:09:59 null null
WARNING: ADMC0046W
04-Apr-2017 11:10:00 null null
WARNING: Could not find tmx4jTransform.jar in null/etc/tmx4jTransform.jar - Interoperability to older versions of WebSphere is disabled
04-Apr-2017 11:10:00 null null
INFO: ssl.disable.url.hostname.verification.CWPKI0027I
Loading pom.xml
pom.xml loaded. Now importing dependencies
04-Apr-2017 11:10:02 org.jboss.shrinkwrap.resolver.impl.maven.logging.LogTransferListener transferFailed
WARNING: Failed downloading org/jboss/arquillian/container/arquillian-was-remote-8.5/1.0.0.Final-SNAPSHOT/maven-metadata.xml from http://repo1.maven.org/maven2/. Reason:
org.eclipse.aether.transfer.MetadataNotFoundException: Could not find metadata org.jboss.arquillian.container:arquillian-was-remote-8.5:1.0.0.Final-SNAPSHOT/maven-metadata.xml in central (http://repo1.maven.org/maven2)
04-Apr-2017 11:10:02 org.jboss.shrinkwrap.resolver.impl.maven.logging.LogTransferListener transferFailed
WARNING: Failed downloading org/jboss/arquillian/container/arquillian-parent-was/1.0.0.Final-SNAPSHOT/maven-metadata.xml from http://repo1.maven.org/maven2/. Reason:
org.eclipse.aether.transfer.MetadataNotFoundException: Could not find metadata org.jboss.arquillian.container:arquillian-parent-was:1.0.0.Final-SNAPSHOT/maven-metadata.xml in central (http://repo1.maven.org/maven2)
Dependencies loaded. Creating web archive
Web archive created. Now, adding files to the archive
Web archive created
04-Apr-2017 11:11:00 com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation
WARNING: [ com.ibm.ws.amm.scan.util.InfoVisitor@-323862990 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@-126388353 ( com.ibm.ws.amm.scan.util.info.impl.test.AnnotationTypeReaderAnno.nestedAnno ) ] Name [ null ] Description [ Lcom/ibm/ws/amm/scan/util/info/impl/test/AnnotationTypeReaderNestedAnno; ] Call in violation of protocol
04-Apr-2017 11:11:03 com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation
WARNING: [ com.ibm.ws.amm.scan.util.InfoVisitor@-323862990 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@1495822839 ( javax.persistence.AssociationOverride.joinTable ) ] Name [ null ] Description [ Ljavax/persistence/JoinTable; ] Call in violation of protocol
04-Apr-2017 11:11:03 com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation
WARNING: [ com.ibm.ws.amm.scan.util.InfoVisitor@-323862990 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@1522521260 ( javax.servlet.annotation.ServletSecurity.value ) ] Name [ null ] Description [ Ljavax/servlet/annotation/HttpConstraint; ] Call in violation of protocol
04-Apr-2017 11:11:31 org.jboss.arquillian.container.was.remote_8_5.WebSphereRemoteContainer deploy
INFO: Target server for deployment is WebSphere:cell=cac40Node01Cell,node=cac40Node01,server=server1
04-Apr-2017 11:14:39 org.jboss.arquillian.container.was.remote_8_5.WebSphereRemoteContainer deploy
INFO: Application was started on the following targets: WebSphere:cell=cac40Node01Cell,node=cac40Node01,server=server1
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 291.094 sec
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
As one may see, test starts at 11:09:59 and finishes at 11:14:39 and takes 291.094 seconds. I have googled and found some posts concerning the metadata-complete="true" that I added to my web.xml, as follows:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" metadata-complete="true"/>
but it didn't help. It seems to be related to the IBM Java 6 but this is the JVM that one is supposed to use with IBM WebSphere. Any idea of what might be the problem here ?
Kind regards,
Nicolas DUMINIL
> Arquillian test takes more than 5 minutes
> -----------------------------------------
>
> Key: ARQ-2090
> URL: https://issues.jboss.org/browse/ARQ-2090
> Project: Arquillian
> Issue Type: Bug
> Components: WebSphere Containers
> Environment: arquillian-was-remote-8.5:1.0.0-Final, WebSphere 8.5.5 on Windows 10,
> Java: IBM J9 VM (build 2.6, JRE 1.6.0 Windows 8 amd64-64 Compressed References 20130301_140166 (JIT enabled, AOT enabled)
> Reporter: nicolas duminil
> Assignee: Gerhard Poul
>
> The execution of an Arquillian test (an empty test) takes more than 5 minutes. here is the test:
> {{(a)RunWith(Arquillian.class)
> public class TestXSDValidationArquillian
> {
> private static final Logger slf4jLogger = LoggerFactory.getLogger(TestXSDValidationArquillian.class);
>
> @Deployment
> public static Archive<?> createTestArchive()
> {
> slf4jLogger.info("Loading pom.xml");
> PomEquippedResolveStage mavenResolver = Maven.resolver().loadPomFromFile("pom.xml");
> slf4jLogger.info("pom.xml loaded. Now importing dependencies");
> File[] libs = mavenResolver.importRuntimeAndTestDependencies().resolve().withTransitivity().asFile();
> slf4jLogger.info("Dependencies loaded. Creating web archive");
> WebArchive war = ShrinkWrap.create(WebArchive.class, "arquillian-test.war");
> slf4jLogger.info("Web archive created. Now, adding files to the archive");
> for (File file : libs)
> war.addAsLibrary(file);
> slf4jLogger.info("Web archive created");
> return war;
> }
>
> @Test
> public void test1(){}
> }}
> An here is the console output:
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Running be.alphacredit.tests.TestXSDValidationArquillian
> 04-Apr-2017 11:09:59 null null
> WARNING: ADMC0046W
> 04-Apr-2017 11:10:00 null null
> WARNING: Could not find tmx4jTransform.jar in null/etc/tmx4jTransform.jar - Interoperability to older versions of WebSphere is disabled
> 04-Apr-2017 11:10:00 null null
> INFO: ssl.disable.url.hostname.verification.CWPKI0027I
> Loading pom.xml
> pom.xml loaded. Now importing dependencies
> 04-Apr-2017 11:10:02 org.jboss.shrinkwrap.resolver.impl.maven.logging.LogTransferListener transferFailed
> WARNING: Failed downloading org/jboss/arquillian/container/arquillian-was-remote-8.5/1.0.0.Final-SNAPSHOT/maven-metadata.xml from http://repo1.maven.org/maven2/. Reason:
> org.eclipse.aether.transfer.MetadataNotFoundException: Could not find metadata org.jboss.arquillian.container:arquillian-was-remote-8.5:1.0.0.Final-SNAPSHOT/maven-metadata.xml in central (http://repo1.maven.org/maven2)
> 04-Apr-2017 11:10:02 org.jboss.shrinkwrap.resolver.impl.maven.logging.LogTransferListener transferFailed
> WARNING: Failed downloading org/jboss/arquillian/container/arquillian-parent-was/1.0.0.Final-SNAPSHOT/maven-metadata.xml from http://repo1.maven.org/maven2/. Reason:
> org.eclipse.aether.transfer.MetadataNotFoundException: Could not find metadata org.jboss.arquillian.container:arquillian-parent-was:1.0.0.Final-SNAPSHOT/maven-metadata.xml in central (http://repo1.maven.org/maven2)
> Dependencies loaded. Creating web archive
> Web archive created. Now, adding files to the archive
> Web archive created
> 04-Apr-2017 11:11:00 com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation
> WARNING: [ com.ibm.ws.amm.scan.util.InfoVisitor@-323862990 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@-126388353 ( com.ibm.ws.amm.scan.util.info.impl.test.AnnotationTypeReaderAnno.nestedAnno ) ] Name [ null ] Description [ Lcom/ibm/ws/amm/scan/util/info/impl/test/AnnotationTypeReaderNestedAnno; ] Call in violation of protocol
> 04-Apr-2017 11:11:03 com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation
> WARNING: [ com.ibm.ws.amm.scan.util.InfoVisitor@-323862990 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@1495822839 ( javax.persistence.AssociationOverride.joinTable ) ] Name [ null ] Description [ Ljavax/persistence/JoinTable; ] Call in violation of protocol
> 04-Apr-2017 11:11:03 com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation
> WARNING: [ com.ibm.ws.amm.scan.util.InfoVisitor@-323862990 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@1522521260 ( javax.servlet.annotation.ServletSecurity.value ) ] Name [ null ] Description [ Ljavax/servlet/annotation/HttpConstraint; ] Call in violation of protocol
> 04-Apr-2017 11:11:31 org.jboss.arquillian.container.was.remote_8_5.WebSphereRemoteContainer deploy
> INFO: Target server for deployment is WebSphere:cell=cac40Node01Cell,node=cac40Node01,server=server1
> 04-Apr-2017 11:14:39 org.jboss.arquillian.container.was.remote_8_5.WebSphereRemoteContainer deploy
> INFO: Application was started on the following targets: WebSphere:cell=cac40Node01Cell,node=cac40Node01,server=server1
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 291.094 sec
> Results :
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
> As one may see, test starts at 11:09:59 and finishes at 11:14:39 and takes 291.094 seconds. I have googled and found some posts concerning the metadata-complete="true" that I added to my web.xml, as follows:
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app id="WebApp_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" metadata-complete="true"/>
> but it didn't help. It seems to be related to the IBM Java 6 but this is the JVM that one is supposed to use with IBM WebSphere. Any idea of what might be the problem here ?
> Kind regards,
> Nicolas DUMINIL
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 8 months
[JBoss JIRA] (ARQ-2090) Arquillian test takes more than 5 minutes
by nicolas duminil (JIRA)
nicolas duminil created ARQ-2090:
------------------------------------
Summary: Arquillian test takes more than 5 minutes
Key: ARQ-2090
URL: https://issues.jboss.org/browse/ARQ-2090
Project: Arquillian
Issue Type: Bug
Components: WebSphere Containers
Environment: arquillian-was-remote-8.5:1.0.0-Final, WebSphere 8.5.5 on Windows 10,
Java: IBM J9 VM (build 2.6, JRE 1.6.0 Windows 8 amd64-64 Compressed References 20130301_140166 (JIT enabled, AOT enabled)
Reporter: nicolas duminil
Assignee: Gerhard Poul
The execution of an Arquillian test (an empty test) takes more than 5 minutes. here is the test:
@RunWith(Arquillian.class)
public class TestXSDValidationArquillian
{
private static final Logger slf4jLogger = LoggerFactory.getLogger(TestXSDValidationArquillian.class);
@Deployment
public static Archive<?> createTestArchive()
{
//slf4jLogger.info("Loading pom.xml");
System.out.println("Loading pom.xml");
PomEquippedResolveStage mavenResolver = Maven.resolver().loadPomFromFile("pom.xml");
//slf4jLogger.info("pom.xml loaded. Now importing dependencies");
System.out.println("pom.xml loaded. Now importing dependencies");
File[] libs = mavenResolver.importRuntimeAndTestDependencies().resolve().withTransitivity().asFile();
//slf4jLogger.info("Dependencies loaded. Creating web archive");
System.out.println("Dependencies loaded. Creating web archive");
WebArchive war = ShrinkWrap.create(WebArchive.class, "arquillian-test.war");
//slf4jLogger.info("Web archive created. Now, adding files to the archive");
System.out.println("Web archive created. Now, adding files to the archive");
for (File file : libs)
war.addAsLibrary(file);
//slf4jLogger.info("Web archive created");
System.out.println("Web archive created");
return war;
}
@Test
public void test1(){}
An here is the console output:
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running be.alphacredit.tests.TestXSDValidationArquillian
04-Apr-2017 11:09:59 null null
WARNING: ADMC0046W
04-Apr-2017 11:10:00 null null
WARNING: Could not find tmx4jTransform.jar in null/etc/tmx4jTransform.jar - Interoperability to older versions of WebSphere is disabled
04-Apr-2017 11:10:00 null null
INFO: ssl.disable.url.hostname.verification.CWPKI0027I
Loading pom.xml
pom.xml loaded. Now importing dependencies
04-Apr-2017 11:10:02 org.jboss.shrinkwrap.resolver.impl.maven.logging.LogTransferListener transferFailed
WARNING: Failed downloading org/jboss/arquillian/container/arquillian-was-remote-8.5/1.0.0.Final-SNAPSHOT/maven-metadata.xml from http://repo1.maven.org/maven2/. Reason:
org.eclipse.aether.transfer.MetadataNotFoundException: Could not find metadata org.jboss.arquillian.container:arquillian-was-remote-8.5:1.0.0.Final-SNAPSHOT/maven-metadata.xml in central (http://repo1.maven.org/maven2)
04-Apr-2017 11:10:02 org.jboss.shrinkwrap.resolver.impl.maven.logging.LogTransferListener transferFailed
WARNING: Failed downloading org/jboss/arquillian/container/arquillian-parent-was/1.0.0.Final-SNAPSHOT/maven-metadata.xml from http://repo1.maven.org/maven2/. Reason:
org.eclipse.aether.transfer.MetadataNotFoundException: Could not find metadata org.jboss.arquillian.container:arquillian-parent-was:1.0.0.Final-SNAPSHOT/maven-metadata.xml in central (http://repo1.maven.org/maven2)
Dependencies loaded. Creating web archive
Web archive created. Now, adding files to the archive
Web archive created
04-Apr-2017 11:11:00 com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation
WARNING: [ com.ibm.ws.amm.scan.util.InfoVisitor@-323862990 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@-126388353 ( com.ibm.ws.amm.scan.util.info.impl.test.AnnotationTypeReaderAnno.nestedAnno ) ] Name [ null ] Description [ Lcom/ibm/ws/amm/scan/util/info/impl/test/AnnotationTypeReaderNestedAnno; ] Call in violation of protocol
04-Apr-2017 11:11:03 com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation
WARNING: [ com.ibm.ws.amm.scan.util.InfoVisitor@-323862990 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@1495822839 ( javax.persistence.AssociationOverride.joinTable ) ] Name [ null ] Description [ Ljavax/persistence/JoinTable; ] Call in violation of protocol
04-Apr-2017 11:11:03 com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation
WARNING: [ com.ibm.ws.amm.scan.util.InfoVisitor@-323862990 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@1522521260 ( javax.servlet.annotation.ServletSecurity.value ) ] Name [ null ] Description [ Ljavax/servlet/annotation/HttpConstraint; ] Call in violation of protocol
04-Apr-2017 11:11:31 org.jboss.arquillian.container.was.remote_8_5.WebSphereRemoteContainer deploy
INFO: Target server for deployment is WebSphere:cell=cac40Node01Cell,node=cac40Node01,server=server1
04-Apr-2017 11:14:39 org.jboss.arquillian.container.was.remote_8_5.WebSphereRemoteContainer deploy
INFO: Application was started on the following targets: WebSphere:cell=cac40Node01Cell,node=cac40Node01,server=server1
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 291.094 sec
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
As one may see, test starts at 11:09:59 and finishes at 11:14:39 and takes 291.094 seconds. I have googled and found some posts concerning the metadata-complete="true" that I added to my web.xml, as follows:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" metadata-complete="true"/>
but it didn't help. It seems to be related to the IBM Java 6 but this is the JVM that one is supposed to use with IBM WebSphere. Any idea of what might be the problem here ?
Kind regards,
Nicolas DUMINIL
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 8 months
[JBoss JIRA] (ARQ-2089) Can't use Arquillian with WebSphere 8.5.5
by nicolas duminil (JIRA)
[ https://issues.jboss.org/browse/ARQ-2089?page=com.atlassian.jira.plugin.s... ]
nicolas duminil resolved ARQ-2089.
----------------------------------
Resolution: Done
> Can't use Arquillian with WebSphere 8.5.5
> -----------------------------------------
>
> Key: ARQ-2089
> URL: https://issues.jboss.org/browse/ARQ-2089
> Project: Arquillian
> Issue Type: Feature Request
> Components: WebSphere Containers
> Environment: WebSphere Application Server Full Profile (WAS), on Windows 10. Java 6 (requirement for WebSphere 8.5.5)
> Reporter: nicolas duminil
> Assignee: Gerhard Poul
>
> I get the following exception while trying to run arquillian tests on WebSphere 8.5.5:
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.562 sec <<< FAILURE!
> be.alphacredit.tests.TestXSDValidationArquillian Time elapsed: 0 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:165)
> at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:102)
> at org.jboss.arquillian.test.spi.TestRunnerAdaptorBuilder.build(TestRunnerAdaptorBuilder.java:52)
> at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:113)
> 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:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> 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.reflect.InvocationTargetException
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
> at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:161)
> ... 15 more
> Caused by: java.lang.NoClassDefFoundError: Lcom/ibm/websphere/management/AdminClient;
> at java.lang.Class.getDeclaredFields0(Native Method)
> at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
> at java.lang.Class.getDeclaredFields(Class.java:1916)
> at org.jboss.arquillian.core.impl.Reflections.getFieldInjectionPoints(Reflections.java:74)
> at org.jboss.arquillian.core.impl.ExtensionImpl.of(ExtensionImpl.java:53)
> at org.jboss.arquillian.core.impl.ManagerImpl.inject(ManagerImpl.java:211)
> at org.jboss.arquillian.core.impl.InjectorImpl.inject(InjectorImpl.java:58)
> at org.jboss.arquillian.core.impl.loadable.ServiceRegistryLoader.createServiceInstance(ServiceRegistryLoader.java:108)
> 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:80)
> at org.jboss.arquillian.container.impl.client.container.ContainerRegistryCreator.createRegistry(ContainerRegistryCreator.java:78)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> 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:145)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
> at org.jboss.arquillian.core.impl.ManagerImpl.bindAndFire(ManagerImpl.java:265)
> at org.jboss.arquillian.core.impl.InstanceImpl.set(InstanceImpl.java:74)
> at org.jboss.arquillian.config.impl.extension.ConfigurationRegistrar.loadConfiguration(ConfigurationRegistrar.java:73)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> 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:145)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
> at org.jboss.arquillian.core.impl.ManagerImpl.start(ManagerImpl.java:290)
> at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.<init>(EventTestRunnerAdaptor.java:63)
> ... 20 more
> Caused by: java.lang.ClassNotFoundException: com.ibm.websphere.management.AdminClient
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> ... 55 more
> Here is the relevant part of my POM:
> <dependencies>
> <dependency>
> <groupId>com.ibm.websphere.j2ee</groupId>
> <artifactId>j2ee</artifactId>
> <scope>provided</scope>
> </dependency>
> ...............
> <dependency>
> <groupId>org.jboss.shrinkwrap.resolver</groupId>
> <artifactId>shrinkwrap-resolver-impl-maven</artifactId>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.jboss.arquillian.junit</groupId>
> <artifactId>arquillian-junit-container</artifactId>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.jboss.arquillian.protocol</groupId>
> <artifactId>arquillian-protocol-servlet</artifactId>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.jboss.arquillian.container</groupId>
> <artifactId>arquillian-was-remote-8.5</artifactId>
> <scope>test</scope>
> </dependency>
> Here is the arquillian.xml file:
> <?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/deployments/</property>
> </engine>
> <container qualifier="websphere" default="true">
> <configuration>
> <property name="remoteServerAddress">localhost</property>
> <property name="remoteServerSoapPort">8880</property>
> <property name="securityEnabled">false</property>
> <property name="username">nicolas</property>
> </configuration>
> </container>
> </arquillian>
> And here is my unit test:
> @RunWith(Arquillian.class)
> public class TestXSDValidationArquillian
> {
> private static final Logger slf4jLogger = LoggerFactory.getLogger(TestXSDValidationArquillian.class);
>
> @Deployment
> public static Archive<?> createTestArchive()
> {
> slf4jLogger.info("Loading pom.xml");
> PomEquippedResolveStage mavenResolver = Maven.resolver().loadPomFromFile("pom.xml");
> slf4jLogger.info("pom.xml loaded. Now importing dependencies");
> File[] libs = mavenResolver.importRuntimeAndTestDependencies().resolve().withTransitivity().asFile();
> slf4jLogger.info("Dependencies loaded. Creating web archive");
> WebArchive war = ShrinkWrap.create(WebArchive.class, "arquillian-test.war");
> slf4jLogger.info("Web archive created. Now, adding files to the archive");
> for (File file : libs)
> war.addAsLibrary(file);
> slf4jLogger.info("Web archive created");
> return war;
> }
>
> @Test
> public void test1(){}
> }
> What might be the problem here ? Many thanks in advance.
> Kind regards,
> Nicolas
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 8 months
[JBoss JIRA] (ARQ-2089) Can't use Arquillian with WebSphere 8.5.5
by nicolas duminil (JIRA)
[ https://issues.jboss.org/browse/ARQ-2089?page=com.atlassian.jira.plugin.s... ]
nicolas duminil commented on ARQ-2089:
--------------------------------------
My bad, I forgot to define the WAS85_HOME env variable and, hence, the build didn't find the was-public.jar refered through this variable. Defining this variable the exception is gone, however, the test (an empty test) takes more then 5 minutes. But I'll open another ticket for that. This one may be closed.
Kind regards,
Nicolas
> Can't use Arquillian with WebSphere 8.5.5
> -----------------------------------------
>
> Key: ARQ-2089
> URL: https://issues.jboss.org/browse/ARQ-2089
> Project: Arquillian
> Issue Type: Feature Request
> Components: WebSphere Containers
> Environment: WebSphere Application Server Full Profile (WAS), on Windows 10. Java 6 (requirement for WebSphere 8.5.5)
> Reporter: nicolas duminil
> Assignee: Gerhard Poul
>
> I get the following exception while trying to run arquillian tests on WebSphere 8.5.5:
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.562 sec <<< FAILURE!
> be.alphacredit.tests.TestXSDValidationArquillian Time elapsed: 0 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:165)
> at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:102)
> at org.jboss.arquillian.test.spi.TestRunnerAdaptorBuilder.build(TestRunnerAdaptorBuilder.java:52)
> at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:113)
> 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:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> 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.reflect.InvocationTargetException
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
> at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:161)
> ... 15 more
> Caused by: java.lang.NoClassDefFoundError: Lcom/ibm/websphere/management/AdminClient;
> at java.lang.Class.getDeclaredFields0(Native Method)
> at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
> at java.lang.Class.getDeclaredFields(Class.java:1916)
> at org.jboss.arquillian.core.impl.Reflections.getFieldInjectionPoints(Reflections.java:74)
> at org.jboss.arquillian.core.impl.ExtensionImpl.of(ExtensionImpl.java:53)
> at org.jboss.arquillian.core.impl.ManagerImpl.inject(ManagerImpl.java:211)
> at org.jboss.arquillian.core.impl.InjectorImpl.inject(InjectorImpl.java:58)
> at org.jboss.arquillian.core.impl.loadable.ServiceRegistryLoader.createServiceInstance(ServiceRegistryLoader.java:108)
> 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:80)
> at org.jboss.arquillian.container.impl.client.container.ContainerRegistryCreator.createRegistry(ContainerRegistryCreator.java:78)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> 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:145)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
> at org.jboss.arquillian.core.impl.ManagerImpl.bindAndFire(ManagerImpl.java:265)
> at org.jboss.arquillian.core.impl.InstanceImpl.set(InstanceImpl.java:74)
> at org.jboss.arquillian.config.impl.extension.ConfigurationRegistrar.loadConfiguration(ConfigurationRegistrar.java:73)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> 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:145)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
> at org.jboss.arquillian.core.impl.ManagerImpl.start(ManagerImpl.java:290)
> at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.<init>(EventTestRunnerAdaptor.java:63)
> ... 20 more
> Caused by: java.lang.ClassNotFoundException: com.ibm.websphere.management.AdminClient
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> ... 55 more
> Here is the relevant part of my POM:
> <dependencies>
> <dependency>
> <groupId>com.ibm.websphere.j2ee</groupId>
> <artifactId>j2ee</artifactId>
> <scope>provided</scope>
> </dependency>
> ...............
> <dependency>
> <groupId>org.jboss.shrinkwrap.resolver</groupId>
> <artifactId>shrinkwrap-resolver-impl-maven</artifactId>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.jboss.arquillian.junit</groupId>
> <artifactId>arquillian-junit-container</artifactId>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.jboss.arquillian.protocol</groupId>
> <artifactId>arquillian-protocol-servlet</artifactId>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.jboss.arquillian.container</groupId>
> <artifactId>arquillian-was-remote-8.5</artifactId>
> <scope>test</scope>
> </dependency>
> Here is the arquillian.xml file:
> <?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/deployments/</property>
> </engine>
> <container qualifier="websphere" default="true">
> <configuration>
> <property name="remoteServerAddress">localhost</property>
> <property name="remoteServerSoapPort">8880</property>
> <property name="securityEnabled">false</property>
> <property name="username">nicolas</property>
> </configuration>
> </container>
> </arquillian>
> And here is my unit test:
> @RunWith(Arquillian.class)
> public class TestXSDValidationArquillian
> {
> private static final Logger slf4jLogger = LoggerFactory.getLogger(TestXSDValidationArquillian.class);
>
> @Deployment
> public static Archive<?> createTestArchive()
> {
> slf4jLogger.info("Loading pom.xml");
> PomEquippedResolveStage mavenResolver = Maven.resolver().loadPomFromFile("pom.xml");
> slf4jLogger.info("pom.xml loaded. Now importing dependencies");
> File[] libs = mavenResolver.importRuntimeAndTestDependencies().resolve().withTransitivity().asFile();
> slf4jLogger.info("Dependencies loaded. Creating web archive");
> WebArchive war = ShrinkWrap.create(WebArchive.class, "arquillian-test.war");
> slf4jLogger.info("Web archive created. Now, adding files to the archive");
> for (File file : libs)
> war.addAsLibrary(file);
> slf4jLogger.info("Web archive created");
> return war;
> }
>
> @Test
> public void test1(){}
> }
> What might be the problem here ? Many thanks in advance.
> Kind regards,
> Nicolas
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 8 months
[JBoss JIRA] (ARQ-2089) Can't use Arquillian with WebSphere 8.5.5
by nicolas duminil (JIRA)
nicolas duminil created ARQ-2089:
------------------------------------
Summary: Can't use Arquillian with WebSphere 8.5.5
Key: ARQ-2089
URL: https://issues.jboss.org/browse/ARQ-2089
Project: Arquillian
Issue Type: Feature Request
Components: WebSphere Containers
Environment: WebSphere Application Server Full Profile (WAS), on Windows 10. Java 6 (requirement for WebSphere 8.5.5)
Reporter: nicolas duminil
Assignee: Gerhard Poul
I get the following exception while trying to run arquillian tests on WebSphere 8.5.5:
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.562 sec <<< FAILURE!
be.alphacredit.tests.TestXSDValidationArquillian Time elapsed: 0 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:165)
at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:102)
at org.jboss.arquillian.test.spi.TestRunnerAdaptorBuilder.build(TestRunnerAdaptorBuilder.java:52)
at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:113)
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:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
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.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:161)
... 15 more
Caused by: java.lang.NoClassDefFoundError: Lcom/ibm/websphere/management/AdminClient;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
at java.lang.Class.getDeclaredFields(Class.java:1916)
at org.jboss.arquillian.core.impl.Reflections.getFieldInjectionPoints(Reflections.java:74)
at org.jboss.arquillian.core.impl.ExtensionImpl.of(ExtensionImpl.java:53)
at org.jboss.arquillian.core.impl.ManagerImpl.inject(ManagerImpl.java:211)
at org.jboss.arquillian.core.impl.InjectorImpl.inject(InjectorImpl.java:58)
at org.jboss.arquillian.core.impl.loadable.ServiceRegistryLoader.createServiceInstance(ServiceRegistryLoader.java:108)
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:80)
at org.jboss.arquillian.container.impl.client.container.ContainerRegistryCreator.createRegistry(ContainerRegistryCreator.java:78)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
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:145)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
at org.jboss.arquillian.core.impl.ManagerImpl.bindAndFire(ManagerImpl.java:265)
at org.jboss.arquillian.core.impl.InstanceImpl.set(InstanceImpl.java:74)
at org.jboss.arquillian.config.impl.extension.ConfigurationRegistrar.loadConfiguration(ConfigurationRegistrar.java:73)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
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:145)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
at org.jboss.arquillian.core.impl.ManagerImpl.start(ManagerImpl.java:290)
at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.<init>(EventTestRunnerAdaptor.java:63)
... 20 more
Caused by: java.lang.ClassNotFoundException: com.ibm.websphere.management.AdminClient
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 55 more
Here is the relevant part of my POM:
<dependencies>
<dependency>
<groupId>com.ibm.websphere.j2ee</groupId>
<artifactId>j2ee</artifactId>
<scope>provided</scope>
</dependency>
...............
<dependency>
<groupId>org.jboss.shrinkwrap.resolver</groupId>
<artifactId>shrinkwrap-resolver-impl-maven</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.junit</groupId>
<artifactId>arquillian-junit-container</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.protocol</groupId>
<artifactId>arquillian-protocol-servlet</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.container</groupId>
<artifactId>arquillian-was-remote-8.5</artifactId>
<scope>test</scope>
</dependency>
Here is the arquillian.xml file:
<?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/deployments/</property>
</engine>
<container qualifier="websphere" default="true">
<configuration>
<property name="remoteServerAddress">localhost</property>
<property name="remoteServerSoapPort">8880</property>
<property name="securityEnabled">false</property>
<property name="username">nicolas</property>
</configuration>
</container>
</arquillian>
And here is my unit test:
@RunWith(Arquillian.class)
public class TestXSDValidationArquillian
{
private static final Logger slf4jLogger = LoggerFactory.getLogger(TestXSDValidationArquillian.class);
@Deployment
public static Archive<?> createTestArchive()
{
slf4jLogger.info("Loading pom.xml");
PomEquippedResolveStage mavenResolver = Maven.resolver().loadPomFromFile("pom.xml");
slf4jLogger.info("pom.xml loaded. Now importing dependencies");
File[] libs = mavenResolver.importRuntimeAndTestDependencies().resolve().withTransitivity().asFile();
slf4jLogger.info("Dependencies loaded. Creating web archive");
WebArchive war = ShrinkWrap.create(WebArchive.class, "arquillian-test.war");
slf4jLogger.info("Web archive created. Now, adding files to the archive");
for (File file : libs)
war.addAsLibrary(file);
slf4jLogger.info("Web archive created");
return war;
}
@Test
public void test1(){}
}
What might be the problem here ? Many thanks in advance.
Kind regards,
Nicolas
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 8 months