File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Location of Tomcat HOME directory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Location of Tomcat HOME directory" Watch "Location of Tomcat HOME directory" New topic
Author

Location of Tomcat HOME directory

Sandra Bachan
Ranch Hand

Joined: Feb 18, 2010
Posts: 434
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!


[Thumbnail for Deployment_Environment.png]



Marriage Made in Heaven
http://www.youtube.com/user/RohitWaliaWedsSonia
Tom Reilly
Rancher

Joined: Jun 01, 2010
Posts: 618
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

Joined: Jul 13, 2010
Posts: 610

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!


OCP Java SE 6 Programmer, OCM Java SE 6 Developer, OCE Java EE 6 JSPSD, OCE Java EE 6 EJBD, OCE Java EE 6 JPAD, Spring 3.0 Core Professional.
Sandra Bachan
Ranch Hand

Joined: Feb 18, 2010
Posts: 434
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

Joined: Jul 13, 2010
Posts: 610

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

Joined: Mar 28, 2003
Posts: 11477
    
  94

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/...


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Sandra Bachan
Ranch Hand

Joined: Feb 18, 2010
Posts: 434
@ 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

Joined: Jul 13, 2010
Posts: 610

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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Location of Tomcat HOME directory