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

    Details

      Description

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  alrubinger Andrew Rubinger
                  Reporter:
                  alrubinger Andrew Rubinger
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: