Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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?