Uploaded image for project: 'Archiva (Retired)'
  1. Archiva (Retired)
  2. MRM-1983

RHEL7 - RPM Tomcat installs with symlinks from /usr/share/tomcat. Archiva cannot follow

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.2.3
    • 3.1.0
    • Audit Logging
    • None
    • Red Hat Enterprise Linux 7

    Description

      When installing Tomcat 7 through RHEL repositories, it sets up Tomcat in a "Red Hat" fashion. This means config files go in /etc, log files go in /var/log, webapps go in /var/lib, and so on. $CATALINA_HOME is then set as /usr/share/tomcat which holds symlinks all over the system. The Archiva installation instructions indicate setting -Dappserver.home=$CATALINA_HOME -Dappserver.base=$CATALINA_HOME.

      When configured in this way, the system is either unable to recognize that a logs directory exists, or is unable to follow the link as it errors:

      2018-08-01 09:17:23,496 localhost-startStop-1 ERROR Cannot access RandomAccessFile java.io.IOException: Could not create directory /$CATALINA_HOME/logs java.io.IOException: Could not create directory /$CATALINA_HOME/logs 

      However, if configured to set those two home directives to =/actual/path/to/archiva then the system is able to find the directory and write a data and logs directory to that location.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Matakaheru Matakaheru
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: