Uploaded image for project: 'Codehaus Cargo'
  1. CARGO-1349

The shared.loader property replacement creates wrong entries

    Details

    • Type: Bug
    • Status: Closed (View workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects versions: 1.4.16
    • Fix versions: 1.4.17
    • Components: Tomcat
    • Labels:
      None

      Description

      When starting Tomcat Standalone Local in the file catalina.properties the value for shared.loader is always replaced with the following values:

      ${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar
      

      It is not possible to change this. This is done without respect if already is a value in catalina.properties. For example:

      shared.loader=${catalina.home}/shared/lib/*.jar
      

      is changed to:

      shared.loader=${catalina.base}/shared/classes,${catalina.base}/share/lib/*.*+jar${cata*ina.home}/shared/lib/*.jar
      

      The delimiter is missing!!!

      The cause for this is the way the properties file is changed. This is done in DefaultFileHandler.java and is a simple String.replace:

      replace("shared.loader=", "shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar")
      

        Attachments

          Activity

            People

            • Assignee:
              alitokmen S. Ali Tokmen
              Reporter:
              wklaus Wolfgang Klaus (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: