Skip to content

Commit

Permalink
Merge pull request #1608 from arjantijms/fix_com.sun.ts.tests.ejb30.m…
Browse files Browse the repository at this point in the history
…isc.metadataComplete.warejb.ClientTest

Add web.xml which was missing and instead wrong filename included
  • Loading branch information
arjantijms authored Oct 21, 2024
2 parents bdb9f5f + da55a9d commit 49f453f
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public static EnterpriseArchive createDeployment(@ArquillianResource TestArchive
com.sun.ts.tests.servlet.common.util.Data.class
);
// The web.xml descriptor
URL warResURL = Client.class.getResource("com/sun/ts/tests/ejb30/misc/metadataComplete/warejb/misc_metadataComplete_warejb_web.xml");
URL warResURL = Client.class.getResource("/com/sun/ts/tests/ejb30/misc/metadataComplete/warejb/misc_metadataComplete_warejb_web.xml");
if(warResURL != null) {
misc_metadataComplete_warejb_web.addAsWebInfResource(warResURL, "web.xml");
}
Expand All @@ -77,14 +77,6 @@ public static EnterpriseArchive createDeployment(@ArquillianResource TestArchive
misc_metadataComplete_warejb_web.addAsWebInfResource(warResURL, "sun-web.xml");
}

// Any libraries added to the war

// Web content
warResURL = Client.class.getResource("/com/sun/ts/tests/ejb30/misc/metadataComplete/warejb/misc_metadataComplete_warejb_web.xml");
if(warResURL != null) {
misc_metadataComplete_warejb_web.addAsWebResource(warResURL, "//misc_metadataComplete_warejb_web.xml");
}

// Call the archive processor
archiveProcessor.processWebArchive(misc_metadataComplete_warejb_web, Client.class, warResURL);

Expand Down

0 comments on commit 49f453f

Please sign in to comment.