Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-866

Allow catalina.base to be configured separately from catalina.home in the Tomcat managed adapters

XMLWordPrintable

      The Tomcat managed container adapter assumes that catalina.base is the same as catalina.home.

      String absolutePath = new File(CATALINA_HOME).getAbsolutePath();
      ...
      cmd.add("-Dcatalina.base=" + absolutePath);
      cmd.add("-Dcatalina.home=" + absolutePath);
      

      However, this is not necessary true. For instance, when using Tomcat from Eclipse, the catalina.base (which includes the configuration files) is managed inside the Eclipse workspace. This allows the developer to modify Tomcat settings without affecting the system installation.

      The fix for this problem is to add a configuration property named "catalinaBase" and honor if it's set when building the startup script.

      This affects all the Tomcat managed containers (5, 6 and 7).

              sfcoy Stephen Coy (Inactive)
              dan.j.allen Dan Allen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: