Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-5981

Web Context Path configuration broken in Tomcat

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Incomplete
    • Affects Version/s: 5.4
    • Fix Version/s: None
    • Component/s: Runtime

      Description

      Changes to the org.nuxeo.ecm.contextPath variable option are not taking effect. It changes the path attribute of the Context element in nuxeo.xml but the webapp is still deployed under nuxeo.

      Looking at the tomcat 6.0 docs, the problem is that when using a context.xml file the path attribute is ignored and the context path is inferred purely from the filename/path of the context file.

      For the path attribute the documentation states:

      The value of this field must not be set except when statically defining a Context in server.xml, as it will be inferred from the filenames used for either the .xml context file or the docBase.

      Thus on copying the nuxeo.xml template file in templates/default/conf/Catalina/localhost it needs to be renamed to ${org.nuxeo.ecm.contextPath}.xml (minus any leading or trailing slashes).

      In addition TomcatConfigurator with the hardcoded constant would need modification too.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: