Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.2.3
-
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.