3 Replies Latest reply on Aug 1, 2015 9:17 PM by Rafael Neves

    Arquillian arquillian-tomcat-embedded-7 deployment issue

    Ivan Hubavi Newbie

      Greetings,

      I have to test war app on Tomcat 7 embedded container.

      The issue I have happens in war deployment. My issue looks similar to this one: https://developer.jboss.org/thread/243524?_sscc=t

      According to me, the issue I observe on my side, is caused because of POM dependencies content discrepancies. Please, give me a hint what is wrong with my setup, how to make it work.

      Thanks

       

      My POM:

      <dependencies>

            

             <!-- Dependency Injections -->

                    <dependency>

                      <groupId>org.jboss.forge.furnace.container</groupId>

                      <artifactId>cdi-api</artifactId>

                      <version>2.16.0.Final</version>

                    </dependency>

                          

             <!-- ARQUILLIAN  -->

       

                    <dependency>

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

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

                           <version>1.0.2.Final</version>

                           <type>pom</type>

                    </dependency>

                   

                    <dependency>

                            <groupId>junit</groupId>

                           <artifactId>junit</artifactId>

                           <version>4.12</version>

                      </dependency>

       

                      <dependency>

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

                            <artifactId>arquillian-bom</artifactId>

                           <version>1.1.8.Final</version>

                           <type>pom</type>

                      </dependency>

       

                    <dependency>

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

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

                           <version>1.1.8.Final</version>

                    </dependency>

       

             <!-- AQRQUILLIAN CONTAINER ADAPTER TOMCAT -->

            

                    <dependency>

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

                      <artifactId>arquillian-tomcat-embedded-7</artifactId>

                      <version>1.0.0.CR7</version>

                   </dependency>


                   <dependency>

                      <groupId>org.apache.tomcat.embed</groupId>

                      <artifactId>tomcat-embed-core</artifactId>

                      <version>8.0.21</version>

                   </dependency>

       

                   <dependency>

                      <groupId>org.apache.tomcat.embed</groupId>

                      <artifactId>tomcat-embed-jasper</artifactId>

                      <version>8.0.21</version>

                   </dependency>

       

                   <dependency>

                      <groupId>org.apache.tomcat.embed</groupId>

                      <artifactId>tomcat-embed-logging-juli</artifactId>

                      <version>8.0.21</version>

                   </dependency>

       

                   <dependency>

                      <groupId>org.eclipse.jdt.core.compiler</groupId>

                      <artifactId>ecj</artifactId>

                      <version>4.4.2</version>

                   </dependency>

       

                    <dependency>

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

                       <artifactId>weld-servlet-test-base</artifactId>

                       <version>3.0.0.Alpha8</version>

             </dependency>

       

                    <dependency>

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

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

                        <version>2.2.0-beta-2</version>

                        <scope>test</scope>

                     </dependency>

       

             <!--  DRONE -->

       

                    <dependency>

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

                           <artifactId>arquillian-drone-webdriver-depchain</artifactId>

                           <type>pom</type>

                           <version>${version.arquillian-drone-webdriver-depchain}</version>

                           <scope>test</scope>

                           <exclusions>

                                 <exclusion>

                                        <artifactId>xalan</artifactId>

                                        <groupId>xalan</groupId>

                                 </exclusion>

                           </exclusions>

                    </dependency>

                   

                   

                    <!-- GRAPHENE -->

       

                    <dependency>

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

                           <artifactId>graphene-webdriver</artifactId>

                           <version>${version.graphene-webdriver}</version>

                           <type>pom</type>

                           <scope>test</scope>

                    </dependency>

       

                    <!-- Arquillian Reporter -->

                    <dependency>

                        <groupId>org.arquillian.extension</groupId>

                        <artifactId>arquillian-recorder-reporter-impl</artifactId>

                        <version>1.0.0.Final</version>

                    </dependency>

                   

                    <dependency>

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

                           <artifactId>arquillian-browser-screenshooter</artifactId>

                           <version>2.1.0.Alpha2</version>

                    </dependency>

       

             </dependencies>

       

      TRACE is:

      1. java.lang.NoSuchMethodError: org.apache.catalina.util.ContextName.<init>(Ljava/lang/String;)V

                      at org.jboss.arquillian.container.tomcat.embedded_7.EmbeddedHostConfig.getContextName(EmbeddedHostConfig.java:85)

                      at org.jboss.arquillian.container.tomcat.embedded_7.EmbeddedHostConfig.deployWAR(EmbeddedHostConfig.java:61)

                      at org.jboss.arquillian.container.tomcat.embedded_7.TomcatContainer.deploy(TomcatContainer.java:212)

                      at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:161)

                      at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:128)

                      at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.executeOperation(ContainerDeployController.java:271)

                      at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.deploy(ContainerDeployController.java:127)

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

                      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

                      at java.lang.reflect.Method.invoke(Unknown Source)

                      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java: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.container.impl.client.container.DeploymentExceptionHandler.verifyExpectedExceptionDuringDeploy(DeploymentExceptionHandler.java:50)

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

                      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

                      at java.lang.reflect.Method.invoke(Unknown Source)

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

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

                      at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createDeploymentContext(ContainerDeploymentContextHandler.java:78)

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

                      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

                      at java.lang.reflect.Method.invoke(Unknown Source)

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

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

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

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

                      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

                      at java.lang.reflect.Method.invoke(Unknown Source)

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

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

                      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.EventImpl.fire(EventImpl.java:67)

                      at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:95)

                      at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:80)

                      at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.forEachDeployment(ContainerDeployController.java:263)

                      at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.forEachManagedDeployment(ContainerDeployController.java:239)

                      at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.deployManaged(ContainerDeployController.java:79)

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

                      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

                      at java.lang.reflect.Method.invoke(Unknown Source)

                      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java: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.EventImpl.fire(EventImpl.java:67)

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

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

                      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

                      at java.lang.reflect.Method.invoke(Unknown Source)

                      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java: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.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:92)

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

                      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

                      at java.lang.reflect.Method.invoke(Unknown Source)

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

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

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

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

                      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

                      at java.lang.reflect.Method.invoke(Unknown Source)

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

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

                      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.test.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:87)

                      at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:201)

                      at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:422)

                      at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:54)

                      at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:218)

                      at org.junit.runners.ParentRunner.run(ParentRunner.java:363)

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

                      at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)

                      at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

                      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)

                      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)

                      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)

                      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)