I am charged with making migrating an app from centos 5.5 to centos 7.2. I can start my tomcat app using systemd but the app's log file is not being written to /home/tomcat where people expect it to be. (The app lives in /home/tomcat/uu/uusdc8.war.)
As far as I know, logging is 100% unconfigured for the app. If I run /opt/tomcat/apache-tomcat-7.0.27/bin/startup.sh, the app log is written to whatever dir I executed it from.
My question is, what is the simplest way to make tomcat/systemd write the app.log file to ~tomcat ? Here's an error I see in catalina.out.
log4j:ERROR Either File or DatePattern options are not set for appender [JSON]. log4j:ERROR setFile(null,true) call failed. java.io.FileNotFoundException: uusdc8.log (Permission denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.java:221) at java.io.FileOutputStream.(FileOutputStream.java:142) at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)