When using a vfsmemory:// archive as my deployment root, I'm finding that the full contents aren't copied into the un-jarred root used by AbstractWarDeployer. This means that any in-memory resources are missing from the deployment.
So I've opened:
https://jira.jboss.org/jira/browse/JBAS-7100
..and applied this patch:
Index: server/src/main/org/jboss/web/deployers/AbstractWarDeployer.java =================================================================== --- server/src/main/org/jboss/web/deployers/AbstractWarDeployer.java (revision 91204) +++ server/src/main/org/jboss/web/deployers/AbstractWarDeployer.java (working copy) -357,7 +357,7 @@ VFSDeploymentUnit vfsUnit = (VFSDeploymentUnit)unit; VirtualFile root = vfsUnit.getRoot(); - VirtualFile unjared = VFSUtils.unjar(root); + VirtualFile unjared = VFSUtils.explode(root); // file was not unjared yet if (root != unjared) {
Looks like this introduces a side-effect which can result in deployment errors http://www.jboss.org/index.html?module=bb&op=viewtopic&t=159375