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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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?