All other writing should be done to directories/files declared as parameters to your context or servlets. For example: <context-param> <param-name>logFile</param-name> <param-value>/tmp/blahblahLogs/blahblahLogFile.txt</param-value> </context-param>
This way other people using/deploying your app can configure these settings to a directory that suits their deployment. >> Do we need to make sure the file blahblahLogFile.txt exists before deploying the application?