• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Location of Tomcat HOME directory

 
Sandra Bachan
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I followed directions for downloading tomcat6 from

http://www.ubuntugeek.com/how-to-ins...04-jaunty.html

It seems there are multiple directories for tomcat6

/etc/tomcat6
/usr/share/tomcat6
/usr/share/doc/tomcat6
/var/cache/tomcat6
/var/lib/tomcat6
/var/log/tomcat6

I am trying to create the deployment environment as shown in the attached screenshot.

Thank you!
Deployment_Environment.png
[Thumbnail for Deployment_Environment.png]
 
Tom Reilly
Rancher
Posts: 618
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I installed tomcat in a different directory so don't know the default directory. The tomcat home directory is the directory that contains the webapps directory. The other directories I see in mine are bin, conf, lib, logs, temp, and work. My guess would be /var/lib.
 
Piotr Nowicki
Ranch Hand
Posts: 611
1
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sandra - I'm guessing that you have installed tomcat6 using the APT feature. Well, it then tries (and does) install multiple tomcat-related files/directories and symbolic links in your system in few locations, which in my opinion, could be confusing for first-timers.

If I may suggest, I think it would be easier if you download the tomcat directly from the Apache WWW (http://tomcat.apache.org/download-60.cgi) - there is nothing to install, as it is just about unzipping the directory where you will like. Then you will have the exact structure you want in one place.

Cheers!
 
Sandra Bachan
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pedro Kowalski wrote:Sandra - I'm guessing that you have installed tomcat6 using the APT feature. Well, it then tries (and does) install multiple tomcat-related files/directories and symbolic links in your system in few locations, which in my opinion, could be confusing for first-timers.

If I may suggest, I think it would be easier if you download the tomcat directly from the Apache WWW (http://tomcat.apache.org/download-60.cgi) - there is nothing to install, as it is just about unzipping the directory where you will like. Then you will have the exact structure you want in one place.

Cheers!


What is the APT feature?
 
Piotr Nowicki
Ranch Hand
Posts: 611
1
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I guess that you have a Ubuntu (I can't access the link you provided, but I assume that ubuntugeeks.com means something :-)

Apt is a packaging tool, which in short, means that if you install something through Synaptic (program with GUI for Ubuntu for APT) or through command line (using apt-get install ....).
Take a look at this site: https://help.ubuntu.com/community/AptGet/Howto
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11914
209
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sandra

The link you gave doesn't seem to work. I'm guessing you meant http://www.ubuntugeek.com/how-to-install-tomcat-6-on-ubuntu-9-04-jaunty.html

It mentions (in part)

* ls /var/lib/tomcat6 directory.

* you should see these directories conf, logs, webapps, work

* webapps is where your servlets will go ( or at least a xml file that points to them )

So you would have:

/var/lib/tomcat6/webapps/beers1/...
 
Sandra Bachan
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@ Pedro

I must have copied and pasted incorrectly
Ubuntu is a neat operating system. Now I realize what APT is....I didn't use it to download Tomcat, hence the initial confusion with home directories

@ Andrew

Guess I didn't read the fine print

I tried out the hands-on example on Head First Servlets and JSP, Chapter 3 and so far it seems to be working....
 
Piotr Nowicki
Ranch Hand
Posts: 611
1
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sandra Bachan wrote:
(...)
Ubuntu is a neat operating system. Now I realize what APT is....I didn't use it to download Tomcat, hence the initial confusion with home directories
(...)


Well, if you executed this line from your tutorial:
sudo apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user tomcat6-docs tomcat6-examples


than you have used it :-)

Cheers!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic