diff --git a/appserver/web/weld-integration/src/main/java/org/glassfish/weld/RootBeanDeploymentArchive.java b/appserver/web/weld-integration/src/main/java/org/glassfish/weld/RootBeanDeploymentArchive.java index 17b72f7a377..56c9f99e9db 100644 --- a/appserver/web/weld-integration/src/main/java/org/glassfish/weld/RootBeanDeploymentArchive.java +++ b/appserver/web/weld-integration/src/main/java/org/glassfish/weld/RootBeanDeploymentArchive.java @@ -159,7 +159,9 @@ public WeldUtils.BDAType getModuleBDAType() { @Override RootBeanDeploymentArchive deepCopy() { - return new RootBeanDeploymentArchive(super.deepCopy(), moduleBda.deepCopy()); + RootBeanDeploymentArchive copy = new RootBeanDeploymentArchive(super.deepCopy(), moduleBda.deepCopy()); + copy.getBeanDeploymentArchives().add(copy.moduleBda); + return copy; } @Override