Where tomcat6 application creates its files?
I'm developing on Debian the servlet application that previously was developed by my colleagues who left. This application uses three files:
the paths of the files that occurs in code are just filenames.
This causes the log and database files to be created in my home folder when I run it from eclipse (with tomcat installed in my home folder).
Now I want to deploy it to the system tomcat (the one installed with aptitude). I copy war file to the webapps folder. When I turn the tomcat on, with:
sudo start service tomcat6
It says "ok" but breaks later or already says "failed".
I found in tomcat log file exceptions about the files my application uses. It can't create them/read them.
Where does it try to create them? Should I create them for it? What privileges should the files have - to what user should they belong? Is there some convention for it?
Sqlite database file is created by passing connection string to DriverManager. Log file is created by adding handler to Logger.
I haven't found problem with configuration file, it is included in src/main/resources. Should I put the other files there? But they don't exists before running the application, should I change it? Is this the standard way to deal with application files?