0 Replies Latest reply on Jul 5, 2018 3:21 AM by indevrus

    Arquillian build fail

    indevrus

      I try to launch arquillian tests, but every time I get this error.

       

      Running org.arquillian.example.ClassForTestingTest

      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.3 sec <<< FAILURE! - in org.arquillian.example.ClassForTestingTest

      org.arquillian.example.ClassForTestingTest  Time elapsed: 0.3 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.JUnit4Provider.execute(JUnit4Provider.java:264)

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

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

      at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)

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

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

      Caused by: java.lang.reflect.InvocationTargetException: null

      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 org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:161)

      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.JUnit4Provider.execute(JUnit4Provider.java:264)

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

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

      at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)

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

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

      Caused by: java.lang.AbstractMethodError: org.apache.xerces.dom.DocumentImpl.setXmlStandalone(Z)V

      at org.jboss.shrinkwrap.descriptor.spi.node.dom.XmlDomDescriptorExporterImpl.to(XmlDomDescriptorExporterImpl.java:60)

      at org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptorExporterImpl.to(NodeDescriptorExporterImpl.java:52)

      at org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptorExporterImpl.to(NodeDescriptorExporterImpl.java:29)

      at org.jboss.shrinkwrap.descriptor.spi.node.dom.XmlDomDescriptorExporter.to(XmlDomDescriptorExporter.java:51)

      at org.jboss.shrinkwrap.descriptor.spi.node.dom.XmlDomDescriptorExporter.to(XmlDomDescriptorExporter.java:33)

      at org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptorImplBase.exportTo(NodeDescriptorImplBase.java:53)

      at org.jboss.shrinkwrap.descriptor.spi.DescriptorImplBase.exportAsString(DescriptorImplBase.java:82)

      at org.jboss.arquillian.config.impl.extension.ConfigurationSysPropResolver.resolveSystemProperties(ConfigurationSysPropResolver.java:54)

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

      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: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)

      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 org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:161)

      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.JUnit4Provider.execute(JUnit4Provider.java:264)

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

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

      at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)

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

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

       

      My pom.xml file looks like that.

       

      <?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/xsd/maven-4.0.0.xsd" >

        

         <parent>

         <artifactId>eps2</artifactId>

         <groupId>ru.acs.fts.eps2</groupId>

         <version>1.0</version>

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

         </parent>

         <modelVersion>4.0.0</modelVersion>

       

         <artifactId>router</artifactId>

         <version>${routerVersion}</version>

         <name>EPS2 Intelligent Router</name>

         <packaging>war</packaging>

       

         <dependencyManagement>

         <dependencies>

         <dependency>

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

         <artifactId>arquillian-bom</artifactId>

         <version>1.1.11.Final</version>

         <scope>import</scope>

         <type>pom</type>

         </dependency>

         </dependencies>

         </dependencyManagement>

       

         <build>

         <plugins>

         <plugin>

         <groupId>pl.project13.maven</groupId>

         <artifactId>git-commit-id-plugin</artifactId>

         <version>${maven.git.commit.id-version}</version>

         <executions>

         <execution>

         <goals>

         <goal>revision</goal>

         </goals>

         </execution>

         </executions>

         <configuration>

         <prefix>git</prefix>

         <dateFormat>dd.MM.yyyy '@' HH:mm:ss z</dateFormat>

         <verbose>false</verbose>

         <useNativeGit>false</useNativeGit>

         <dotGitDirectory>${project.basedir}/../../../.git</dotGitDirectory>

         <skipPoms>true</skipPoms>

         <generateGitPropertiesFile>false</generateGitPropertiesFile>

         <failOnNoGitDirectory>false</failOnNoGitDirectory>

         <abbrevLength>7</abbrevLength>

         <skip>false</skip>

         <runOnlyOnce>false</runOnlyOnce>

         <excludeProperties>

         <excludeProperty>git.remote.origin.url</excludeProperty>

         </excludeProperties>

         <gitDescribe>

         <skip>false</skip>

         <always>false</always>

         <abbrev>7</abbrev>

         <dirty>-dirty</dirty>

         <match>*</match>

         <forceLongFormat>false</forceLongFormat>

         </gitDescribe>

         </configuration>

         </plugin>

         <plugin>

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

         <artifactId>maven-compiler-plugin</artifactId>

         <configuration>

         <source>${java.version}</source>

         <target>${java.version}</target>

         </configuration>

         <version>${maven.compiler-version}</version>

         </plugin>

       

         <plugin>

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

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

         <version>${maven.surefire-version}</version>

         <configuration>

         <redirectTestOutputToFile>true</redirectTestOutputToFile>

         <additionalClasspathElements>

         <additionalClasspathElement>${project.basedir}/../../Tools/tests/com.ibm.mq-7.0.1.jar</additionalClasspathElement>

         <additionalClasspathElement>${project.basedir}/../../Tools/tests/com.ibm.mq.jmqi-7.0.1.jar</additionalClasspathElement>

         <additionalClasspathElement>${project.basedir}/../../Tools/tests/com.ibm.mqjms-7.0.1.jar</additionalClasspathElement>

         <additionalClasspathElement>${project.basedir}/../../Tools/tests/dhbcore-7.0.1.jar</additionalClasspathElement>

         <additionalClasspathElement>${project.basedir}/../../Tools/tests/transactions-jdbc-3.9.2.jar</additionalClasspathElement>

         </additionalClasspathElements>

         </configuration>

         </plugin>

       

         <plugin>

         <artifactId>maven-war-plugin</artifactId>

         <version>${maven.war-version}</version>

         <configuration>

         <attachClasses>true</attachClasses>

         </configuration>

         </plugin>

         <plugin>

         <groupId>org.codehaus.mojo</groupId>

         <artifactId>build-helper-maven-plugin</artifactId>

         <version>1.1</version>

         <executions>

         <execution>

         <id>add-source</id>

         <phase>generate-sources</phase>

         <goals>

         <goal>add-source</goal>

         </goals>

         <configuration>

         <sources>

         <source>

        src/test/java/

         </source>

         </sources>

         </configuration>

         </execution>

         </executions>

         </plugin>

         </plugins>

         <resources>

         <resource>

         <directory>src/main/resources</directory>

         <filtering>true</filtering>

         <includes>

         <include>**/*</include>

         </includes>

         </resource>

         <resource>

         <directory>src/main/webapp</directory>

         <includes>

         <include>**/*</include>

         </includes>

         </resource>

         </resources>

         </build>

       

         <dependencies>

         <dependency>

         <groupId>ru.acs.fts.eps2</groupId>

         <artifactId>edecl-data-core</artifactId>

         <version>${edecl-data-core.version}</version>

         <type>jar</type>

         <scope>compile</scope>

         </dependency>

         <dependency>

         <groupId>ru.acs.fts.eps2</groupId>

         <artifactId>engine</artifactId>

         <version>2.0.0</version>

         <type>jar</type>

         <scope>compile</scope>

         </dependency>

         <dependency>

         <groupId>ru.acs.fts.eps2</groupId>

         <artifactId>eps2-utils</artifactId>

         <version>1.0</version>

         <type>jar</type>

         <scope>compile</scope>

         </dependency>

         <dependency>

         <groupId>ru.kontur.fts.eps</groupId>

         <artifactId>eps-edecl-data</artifactId>

         <version>${eps-edecl-data.version}</version>

         <type>jar</type>

         </dependency>

       

         <dependency>

         <groupId>org.springframework</groupId>

         <artifactId>spring-test</artifactId>

         <version>3.2.8.RELEASE</version>

         <type>jar</type>

         <scope>test</scope>

         </dependency>

         <dependency>

         <groupId>javax.transaction</groupId>

         <artifactId>jta</artifactId>

         <version>1.1</version>

         <type>jar</type>

         <scope>test</scope>

         </dependency>

         <dependency>

         <groupId>org.springframework</groupId>

         <artifactId>spring-web</artifactId>

         <version>3.2.8.RELEASE</version>

         <type>jar</type>

         <scope>compile</scope>

         </dependency>

         <dependency>

         <groupId>org.springframework</groupId>

         <artifactId>spring-beans</artifactId>

         <version>3.2.8.RELEASE</version>

         <type>jar</type>

         <scope>compile</scope>

         </dependency>

         <dependency>

         <groupId>org.springframework</groupId>

         <artifactId>spring-orm</artifactId>

         <version>3.2.8.RELEASE</version>

         <type>jar</type>

         <scope>compile</scope>

         </dependency>

         <dependency>

         <groupId>org.springframework</groupId>

         <artifactId>spring-jdbc</artifactId>

         <version>3.2.8.RELEASE</version>

         <type>jar</type>

         <scope>compile</scope>

         </dependency>

         <dependency>

         <groupId>org.springframework</groupId>

         <artifactId>spring-context</artifactId>

         <version>3.2.8.RELEASE</version>

         <type>jar</type>

         <scope>compile</scope>

         </dependency>

         <dependency>

         <groupId>org.springframework</groupId>

         <artifactId>spring-core</artifactId>

         <version>3.2.8.RELEASE</version>

         <type>jar</type>

         <scope>compile</scope>

         </dependency>

         <dependency>

         <groupId>org.springframework</groupId>

         <artifactId>spring-jms</artifactId>

         <version>3.2.8.RELEASE</version>

         <type>jar</type>

         <scope>compile</scope>

         </dependency>

         <dependency>

         <groupId>org.springframework</groupId>

         <artifactId>spring-aop</artifactId>

         <version>3.2.8.RELEASE</version>

         <type>jar</type>

         <scope>compile</scope>

         </dependency>

         <dependency>

         <groupId>org.springframework.ws</groupId>

         <artifactId>spring-oxm</artifactId>

         <version>1.5.10</version>

         <type>jar</type>

         <scope>compile</scope>

         </dependency>

         <dependency>

         <groupId>javax.persistence</groupId>

         <artifactId>persistence-api</artifactId>

         <version>1.0</version>

         <type>jar</type>

         <scope>compile</scope>

         </dependency>

         <dependency>

         <groupId>org.eclipse.persistence</groupId>

         <artifactId>eclipselink</artifactId>

         <version>1.2.0</version>

         <type>jar</type>

         <scope>compile</scope>

         </dependency>

         <dependency>

         <groupId>com.ibm</groupId>

         <artifactId>com.ibm.mq</artifactId>

         <version>7.0.1</version>

         <type>jar</type>

         <scope>provided</scope>

         </dependency>

         <dependency>

         <groupId>com.ibm</groupId>

         <artifactId>com.ibm.mqjms</artifactId>

         <version>7.0.1</version>

         <type>jar</type>

         <scope>provided</scope>

         </dependency>

         <dependency>

         <groupId>com.ibm</groupId>

         <artifactId>com.ibm.mq.jmqi</artifactId>

         <version>7.0.1</version>

         <type>jar</type>

         <scope>provided</scope>

         </dependency>

         <dependency>

         <groupId>javax.jms</groupId>

         <artifactId>jms</artifactId>

         <version>1.1</version>

         <type>jar</type>

         <scope>compile</scope>

         </dependency>

         <dependency>

         <groupId>cglib</groupId>

         <artifactId>cglib-nodep</artifactId>

         <version>2.2</version>

         <type>jar</type>

         <scope>compile</scope>

         </dependency>

         <dependency>

         <groupId>org.slf4j</groupId>

         <artifactId>slf4j-log4j12</artifactId>

         <version>1.7.2</version>

         <type>jar</type>

         <scope>compile</scope>

         </dependency>

         <dependency>

         <groupId>com.oracle</groupId>

         <artifactId>ojdbc14</artifactId>

         <version>10.2.0.3.0</version>

         <type>jar</type>

         <scope>compile</scope>

         </dependency>

         <dependency>

         <groupId>xpp3</groupId>

         <artifactId>xpp3</artifactId>

         <version>1.1.3.3</version>

         <type>jar</type>

         <scope>compile</scope>

         </dependency>

         <dependency>

         <groupId>commons-lang</groupId>

         <artifactId>commons-lang</artifactId>

         <version>2.4</version>

         <type>jar</type>

         <scope>compile</scope>

         </dependency>

         <dependency>

         <groupId>commons-io</groupId>

         <artifactId>commons-io</artifactId>

         <version>2.4</version>

         <type>jar</type>

         <scope>compile</scope>

         </dependency>

         <dependency>

         <groupId>commons-codec</groupId>

         <artifactId>commons-codec</artifactId>

         <version>1.8</version>

         <type>jar</type>

         <scope>compile</scope>

         </dependency>

         <dependency>

         <groupId>joda-time</groupId>

         <artifactId>joda-time</artifactId>

         <version>${joda.time-version}</version>

         <type>jar</type>

         <scope>compile</scope>

         </dependency>

         <dependency>

         <groupId>com.atomikos</groupId>

         <artifactId>transactions-jta</artifactId>

         <version>3.9.2</version>

         <type>jar</type>

         <scope>compile</scope>

         </dependency>

         <dependency>

         <groupId>org.springframework</groupId>

         <artifactId>spring-tx</artifactId>

         <version>3.2.8.RELEASE</version>

         <type>jar</type>

         <scope>compile</scope>

         </dependency>

       

         <dependency>

         <groupId>ru.acs.fts.schemas</groupId>

         <artifactId>eps-fts-schemas</artifactId>

         <version>${eps-fts-schemas.version}</version>

         <scope>compile</scope>

         <type>jar</type>

         </dependency>

       

         <dependency>

         <groupId>ru.kontur.fts.common</groupId>

         <artifactId>risk-category-service-api</artifactId>

         <version>1.0.0</version>

         </dependency>

         <dependency>

         <groupId>org.jboss.spec</groupId>

         <artifactId>jboss-javaee-7.0</artifactId>

         <version>1.1.1.Final</version>

         <type>pom</type>

         <scope>provided</scope>

         </dependency>

         <dependency>

         <groupId>junit</groupId>

         <artifactId>junit</artifactId>

         <version>4.12</version>

         <scope>compile</scope>

         </dependency>

       

         <dependency>

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

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

         <version>1.1.11.Final</version>

         <scope>test</scope>

         </dependency>

       

         <dependency>

         <groupId>org.jboss.weld</groupId>

         <artifactId>weld-core</artifactId>

         <version>1.1.1.Final</version>

         <scope>test</scope>

         </dependency>

       

         <dependency>

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

         <artifactId>arquillian-bom</artifactId>

         <version>1.1.11.Final</version>

         <scope>import</scope>

         <type>pom</type>

         </dependency>

       

         </dependencies>

       

         <profiles>

         <profile>

         <id>arquillian-jbossas-embedded</id>

         <activation>

         <activeByDefault>true</activeByDefault>

         </activation>

         <dependencies>

         <dependency>

         <groupId>org.jboss.spec</groupId>

         <artifactId>jboss-javaee-6.0</artifactId>

         <version>3.0.3.Final</version>

         <type>pom</type>

         <scope>provided</scope>

         </dependency>

         <dependency>

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

         <artifactId>arquillian-weld-ee-embedded-1.1</artifactId>

         <version>1.0.0.Final</version>

         </dependency>

         <dependency>

         <groupId>org.jboss.weld</groupId>

         <artifactId>weld-core</artifactId>

         <version>1.1.1.Final</version>

         <scope>test</scope>

         </dependency>

       

         <dependency>

         <groupId>org.slf4j</groupId>

         <artifactId>slf4j-simple</artifactId>

         <version>1.6.4</version>

         <scope>test</scope>

         </dependency>

         </dependencies>

         </profile>

         <profile>

         <id>arquillian-jbossas-managed</id>

         <dependencies>

         <dependency>

         <groupId>org.jboss.spec</groupId>

         <artifactId>jboss-javaee-6.0</artifactId>

         <version>3.0.3.Final</version>

         <type>pom</type>

         <scope>provided</scope>

         </dependency>

         <dependency>

         <groupId>org.jboss.as</groupId>

         <artifactId>jboss-as-arquillian-container-managed</artifactId>

         <version>7.2.0.Final</version>

         <scope>test</scope>

         </dependency>

         <dependency>

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

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

         <version>1.1.11.Final</version>

         <scope>test</scope>

         </dependency>

       

         <dependency>

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

         <artifactId>shrinkwrap-resolver-impl-maven</artifactId>

         <version>3.1.3</version>

         <scope>test</scope>

         </dependency>

       

         </dependencies>

         </profile>

         </profiles>

       

      </project>