Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-1256

Need to better support jboss-deployment-structure.xml in servlet protocol tests

    Details

    • Type: Enhancement
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0.3.Final
    • Fix Version/s: None
    • Component/s: JBoss AS Containers
    • Labels:
      None

      Description

      In my case, I have many archives that get deployed (up to 9 in one test case). I noticed that my tests we are all working over JMX, but since we consider them integration tests I wanted to run them closer to how they should run so I switched over to servlet 3.0 protocol (and yes I included the protocol in my path). In addition, my deployments are created using ShrinkWrap's maven resolver to pull them down. I don't recreate them instead I just import the created archive as a java archive (everything is essentially an EJB JAR).

      I found that many tests failed, and after researching it was because JBoss AS 7 was looking in test.war!/WEB-INF/ for jboss-deployment-structure.xml not one of the files in the lib directory, which is exactly as designed. However Arquillian doesn't seem to have a way to tell it to use the jboss-deployment-structure.xml from my JAR as the WAR file.

      I could change the deployment to create a WAR but that impacts my resulting structure since we look explicitly for JARs based on where they should be tested.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                meetoblivion John Ament
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: