0 Replies Latest reply on Jun 30, 2006 1:13 PM by Anthony Whitford

    Virtual Directory

    Anthony Whitford Newbie

      We are trying to migrate to JBoss 4.0.4 GA (from another app server). One of the issues that we can't seem to get to work to our satisfaction is virtual directories.

      For WebLogic, there is the virtual-directory-mapping element in weblogic.xml like:


      For JRun, there is the virtual-mapping element in jrun-web.xml like:

      So what is the equivalent in JBoss?

      We thought that we could just specify additional context elements in server.xml, but we discovered that then security isn't enforced because the webapp having the root context (/) is considered separate from the context serving the virtual directory. (Adding WEB-INF/web.xml to the various directories being shared is not viable.)

      I'm searching for the best solution... I'm trying to avoid alternatives like:
      1. Adding Apache as a front end, then using Apache to serve the virtual directories. Apache will need to do the authentication and SSL.
      2. Adding a Servlet do to the virtual directory. I'm kind of shocked that this hasn't already been done by someone -- I can't seem to find an open source version.
        What is the recommended solution?