Skip to content

Commit

Permalink
fix ContextTests deployment, put ejb classes only into jar
Browse files Browse the repository at this point in the history
  • Loading branch information
aubi authored and Petr Aubrecht committed Mar 23, 2022
1 parent 86ff57e commit 6d7618b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ public class ContextTests extends TestClient {
public static EnterpriseArchive createDeployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class)
.addPackages(true, getFrameworkPackage(), getCommonPackage(), ContextTests.class.getPackage())
.deleteClass(SecurityTestEjb.class) // SecurityTestEjb and SecurityTestRemote are in the jar
.deleteClass(SecurityTestRemote.class)
.addAsWebInfResource(ContextTests.class.getPackage(), "web.xml", "web.xml");

JavaArchive jar = ShrinkWrap.create(JavaArchive.class)
Expand Down

0 comments on commit 6d7618b

Please sign in to comment.