Where is the best location to deploy an application on Tomcat over Linux?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Where is the best location to deploy an application on Tomcat over Linux?
# 1  
Old 11-19-2015
Where is the best location to deploy an application on Tomcat over Linux?

Hi,

I'm trying to figure out the best location to deploy an application on Tomcat over Linux server.

The application structure is as follows:

1. WAR - the app itself.
2. conf - configuration files that are part of the product, not to be changed in deployment
3. local_conf - overriding conf in deployment
4. logs
5. data - user data (e.g. stuff users uploads to the server)
6. admin tools - a set of scripts and other tools used by system administrators (e.g. tools to maintain user data)
7. Tomcat

Option 1 - Classic
--------------------
Put everything where it is supposed to be according to Linux classic structure the way I understand it (comments are welcome):

- Tomcat goes to /usr/local/tomcat, WAR deployed inside it.
- conf and local_conf go to /etc/conf/myapp/conf and /etc/conf/myapp/local_conf
- logs go to /var/log/myapp
- data to somewhere under /var, maybe /var/data/myapp
- admin tools - not completely sure where these should go, maybe /usr/sbin/myapp

Option 2 - User home directory
-----------------------------------
Put everything under the home directory of the user that runs the service.

Is the classic approach the preferred one, or is it considered obsolete? Is option 2 a good alternative?

There may also be mixed approaches, e.g. option 2 with logs in /var/log.

Any input is appreciated.

Last edited by moshebs; 11-19-2015 at 04:08 AM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Tomcat..Unable to deploy application remotely in tomcat

Hi, We have upgrade tomcat from 5.0.20 to 7.0.33 and made changes to server.xml file according to newer version.. how ever the upgrade went fine and now i am unable to deploy application remotely.. it is giving 403 access denied error.. we have seperate appbase directory mentioned in server.xml..... (0 Replies)
Discussion started by: phani4u
0 Replies

2. UNIX for Dummies Questions & Answers

Linux user location/directoires

Hi, I need to create a user. I know it sounds simple but I'm having a slight issue with it. For example I want to create user1 with home location of /home/projects/user1. I went ahead and created the projects directory using mkdir under /home, and using vi I created the user1 directory under... (2 Replies)
Discussion started by: abhi7514
2 Replies

3. UNIX for Dummies Questions & Answers

linux tomcat load average issue

Hello I am running a liferay application in tomcat on one of my hosted linux machine having 4GB of ram and 1 CPU. I get the tomcat response really slow and with much digging I found that the cpu might be loaded and can be tracked with top command. The following is the output of top command:... (0 Replies)
Discussion started by: dhavaln
0 Replies

4. Shell Programming and Scripting

Executing remote application using ssh without full reference to its location

Hello again :) , My script has an ssh command to run a script on a remote machine. The script has commands such as sqlplus and unzip. However, the return I get in my own terminal says it can't find sqlplus and unzip. the ssh command is: ssh user@host "cd ScriptDir; ./Script.sh" and the... (6 Replies)
Discussion started by: jangozo
6 Replies

5. IP Networking

can I use tomcat server for my chatting application?

Hello, I have a socket programming code to do chatting(both server and client). But this is limited to a single machines with multi users. But my target is to perform chat operation on multiple IP addresses in a given LAN in college. Can you please tell me if I can use TOMCAT as my server to... (3 Replies)
Discussion started by: nsharath
3 Replies

6. UNIX for Dummies Questions & Answers

TomCat access in an Remote Linux Server

Hi all, I Installed Tomcat in an remote linux server (/usr/tomcat)and start service, using ./startup.sh (and tried with ./catalina.sh too). //----------------------------------------------------------------// # ./startup.sh Using CATALINA_BASE: /usr/tomcat/apache-tomcat-6.0.16/ Using... (1 Reply)
Discussion started by: gothama
1 Replies

7. UNIX for Advanced & Expert Users

Securing Tomcat under Linux/Unix

Hi This being my first post I have to say that you guys seem to have a nice community going. My question is regarding securing Tomcat 5.0 on a Linuxbased system (Red Hat 9) and particularly concerning file access for Tomcat. The problem is that it is possible to gain access to any file on a... (0 Replies)
Discussion started by: starkis
0 Replies

8. UNIX for Advanced & Expert Users

How to move an application from one location to another

Hi all, I have installed an application (RRDTool) in /usr/local directory, Can any one tell me how I can move this to some other location along with the libraries. Thanks in Advance. (3 Replies)
Discussion started by: KK Varma
3 Replies

9. Linux

jsp not working on linux running tomcat server

hey there we cant seem to get jsp to load pages properly on linux running tomcat 4 server. everytime we run .jsp files, the source code comes up instead of the actual file contents. any suggestions?? cheers mile1982 (1 Reply)
Discussion started by: mile1982
1 Replies
Login or Register to Ask a Question