Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-7100

Exploding vfsmemory:// contents is empty for web deployments

XMLWordPrintable

      The following patch addresses this:

      [alrubinger@localhost Branch_5_x]$ svn di server/
      When using an in-memory archive backed by VFS, we're using an "unjar"; this leaves out any RAM-backed resources. Instead explode the contents, regardless of what's behind the virtual abstraction:

      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)
        {

      This was exposed by prototyping in EMB-32.

              arubinge@redhat.com Andrew Rubinger (Inactive)
              arubinge@redhat.com Andrew Rubinger (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: