Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 09-27-2012, 04:57 AM   #1
LQ Newbie
Registered: Apr 2012
Posts: 7

Rep: Reputation: Disabled
Where tomcat6 application creates its files?

Hi everyone!

I'm developing on Debian the servlet application that previously was developed by my colleagues who left. This application uses three files:

sqlite database

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?


sqlite3, tomcat6

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat6: each application -> a different user brgsousa Linux - Software 3 01-18-2011 06:54 AM
gcc only creates .o files, does not link jmite Linux - Newbie 1 10-19-2008 11:31 PM
linux creates duplicate files bnebradd Linux - Newbie 17 07-08-2007 06:11 PM
which module creates device files baloon Red Hat 8 03-29-2007 04:00 PM
LXer: Piracy creates jobs, FOSS creates opportunities LXer Syndicated Linux News 0 11-02-2006 12:33 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:27 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration