1 Reply Latest reply on Dec 31, 2013 4:48 AM by Hans-Michael Rupp

    java.lang.NoClassDefFoundError: org/jboss/logging/DelegatingBasicLogger

    Hans-Michael Rupp Novice

      Hallo I am trying to start with Arquillian with a project generated with the jboss-javaee6-webapp Archetype.

       

      My Test:

      @RunWith(Arquillian.class)

      public class AktionEditTest {

         

          @Deployment

          public static Archive<?> createTestArchive() {

              return ShrinkWrap.create(WebArchive.class, "test.war").addClasses(Aktion.class, Konto.class, Spende.class, AktionEditController.class)

                      .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");

          }

         

          @Inject

          AktionEditController aktionEditController;

         

          @Test

          public void testAddAktion() throws Exception {

              assertNotNull(aktionEditController);

          }

       

      }

       

      When I run it with

      mvn clean test -Parq-jbossas-remote

      (JBoss EAP 6.1 is started)

      I get

      java.lang.NoClassDefFoundError: org/jboss/logging/DelegatingBasicLogger

          at java.lang.ClassLoader.defineClass1(Native Method)

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

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

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

          at java.net.URLClassLoader.access$100(URLClassLoader.java:71)

       

      The profile from pom.xml:

       

      <profile>

                  <!-- An optional Arquillian testing profile that executes tests

                      in a remote JBoss AS instance -->

                  <!-- Run with: mvn clean test -Parq-jbossas-remote -->

                  <id>arq-jbossas-remote</id>

                  <dependencies>

                      <dependency>

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

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

                          <scope>test</scope>

                      </dependency>

                       <dependency>

                         <groupId>org.jboss.logging</groupId>

                         <artifactId>jboss-logging</artifactId>

                         <version>3.0.0.CR1</version>

                         <scope>provided</scope>

                      </dependency>

                  </dependencies>

                  <repositories>

                      <repository>

                          <id>prime-repo</id>

                          <name>PrimeFaces Maven Repository</name>

                          <url>http://repository.primefaces.org</url>

                          <layout>default</layout>

                      </repository>

                  </repositories>

              </profile>

       

      Thanks for any suggestions.

       

      Hans