0 Replies Latest reply on May 10, 2018 2:07 AM by iabughosh

    Wrong maven dependency links in Arquillian version 1.4.0.Final

    iabughosh

      Dears,

      I am using latest arquillian,graphene & selenuim dependecies for my unit testing but i am facing an error when first time i've tried to run my test, the error is :

      java.io.FileNotFoundException: /var/lib/jenkins/.m2/repository/xalan/xalan/2.7.2/serializer.jar (No such file or directory)

      at java.util.zip.ZipFile.open(Native Method)

      at java.util.zip.ZipFile.<init>(ZipFile.java:225)

      at java.util.zip.ZipFile.<init>(ZipFile.java:155)

      at java.util.jar.JarFile.<init>(JarFile.java:166)

      at java.util.jar.JarFile.<init>(JarFile.java:130)

      at org.apache.tomcat.util.compat.JreCompat.jarFileNewInstance(JreCompat.java:188)

      at org.apache.tomcat.util.scan.JarFileUrlJar.<init>(JarFileUrlJar.java:65)

      at org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:49)

      at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:374)

      at org.apache.tomcat.util.scan.StandardJarScanner.processURLs(StandardJarScanner.java:309)

      at org.apache.tomcat.util.scan.StandardJarScanner.doScanClassPath(StandardJarScanner.java:266)

      at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:229)

      at org.apache.catalina.startup.ContextConfig.processJarsForWebFragments(ContextConfig.java:1888)

      at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1116)

      at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:765)

      at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)

      at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)

      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5138)

      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754)

      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)

       

      it  searches for serializer.jar inside xalan directory, as a walkaround i went to .m2 repository and copies serializer.jar into /var/lib/jenkins/.m2/repository/xalan/xalan/2.7.2/.

       

      here is my pom.xml dependecies for arquillian :

      <dependencyManagement>
      <dependencies>
      <dependency>
                  <groupId>org.jboss.arquillian</groupId>
                  <artifactId>arquillian-bom</artifactId>
                  <version>1.4.0.Final</version>
                  <scope>import</scope>
                  <type>pom</type>
              </dependency>
              <dependency>
                  <groupId>org.jboss.arquillian.selenium</groupId>
                  <artifactId>selenium-bom</artifactId>
                  <version>3.11.0</version>
                  <type>pom</type>
                  <scope>import</scope>
              </dependency>
              <dependency>
                  <groupId>org.jboss.arquillian.extension</groupId>
                  <artifactId>arquillian-drone-bom</artifactId>
                  <version>2.5.1</version>
                  <type>pom</type>
                  <scope>import</scope>
              </dependency>
      </dependencies>
      </dependencyManagement>
      
      <dependency>
          <groupId>org.jboss.arquillian.graphene</groupId>
          <artifactId>graphene-webdriver</artifactId>
          <version>2.3.2</version>
          <type>pom</type>
          <scope>test</scope>
      </dependency>
      

       

       

      Regards.