Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-184

ClassNotFoundException on Arquillian Test use user own Classes with org.wildfly.swarm.ContainerFactory#newContainer()

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.0.0.Alpha6
    • Component/s: core
    • Labels:
      None

      Description

      My Arquillian Test implements org.wildfly.swarm.ContainerFactory and newContainer() because I want to set up my own datasource.

      In newContainer(), I use my utililty class for setup container.
      https://github.com/emag/wildfly-swarm-tour/blob/classnotfound/complete/lifelog-arquillian/src/test/java/wildflyswarmtour/lifelog/api/EntryControllerIT.java#L50

      the class is here.
      https://github.com/emag/wildfly-swarm-tour/blob/classnotfound/complete/lifelog-arquillian/src/main/java/wildflyswarmtour/lifelog/LifeLogContainer.java

      And then, I got ClassNotFoundException. logs is here.
      https://gist.github.com/emag/74b8d4b2c8efa9ab7ea0#file-stacktrace-md

      You can reproduce it with the following step. I'm using wf-swarm HEAD(5e11be8).

      git clone https://github.com/emag/wildfly-swarm-tour.git && cd wildfly-swarm-tour/complete && git checkout -b classnotfound origin/classnotfound && mvn clean verify -pl lifelog-arquillian
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tcrawley Toby Crawley
                Reporter:
                emag Yoshimasa Tanabe
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: