glassfish
  1. glassfish
  2. GLASSFISH-4792

Honor context-root in sun-web.xml even if web module in bundled in EAR file

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: V3
    • Fix Version/s: not determined
    • Component/s: deployment
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: Sun

    • Issuezilla Id:
      4,792

      Description

      vbkraemer wrote (see http://forums.java.net/jive/thread.jspa?messageID=269540
      for complete background):

      The context-root of a web app deployed inside an ear is determined by:

      1. the value of the context-root element in the ear file's
      sun-application.xml file
      2. the value of context-root element in the ear file's application.xml
      3. the default value computed by using the module's web-uri...

      (in order)

      Adding a forth method of determining the context-root, that requires
      introspection of a second level of archived content, may have seemed
      like overkill to the implementors.

      Honoring the context-root specified in a web module's sun-web.xml regardless of
      whether the web module is deployed on its own, or as part of an EAR, would be a
      good idea. This would allow for the web module to simply be "dropped" into an
      EAR (and have its context-root take effect), without having to edit any
      sun-application.xml or application.xml.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Hong Zhang
            Reporter:
            jluehe
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: