Uploaded image for project: 'OODT'
  1. OODT
  2. OODT-650

Remove duplicate context container from CAS-Product web application

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 0.7
    • Fix Version/s: 0.7
    • Component/s: product server
    • Labels:
    • Skill Level:
      Don't Know (Unsure) - The default level

      Description

      The CAS-Product web application has two examples of Tomcat context containers. The first example 'cas-product-tomcat-5.5.9.xml' is in src/main/resources, and the second example 'context.xml' is in src/main/webapp/META-INF.

      When building the webapp, both files are copied into the same META-INF directory in the target WAR. The context.xml file is copied by default and the cas-product-tomcat-5.5.9.xml file is copied by the following maven-war-plugin configuration in the POM:

      <containerConfigXML>
        src/main/resources/cas-product-tomcat-5.5.9.xml
      </containerConfigXML>
      

      So we end up with two almost identical context container files in META-INF:

      META-INF
      - cas-product-tomcat-5.5.9.xml
      - context.xml
      

      I was thinking that we could remove cas-product-tomcat-5.5.9.xml from src/main/resources and keep src/main/webapp/META-INF/context.xml.

        Attachments

          Activity

            People

            • Assignee:
              rlaidlaw Ross Laidlaw
              Reporter:
              rlaidlaw Ross Laidlaw
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: