• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Location of Tomcat HOME directory

 
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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]
 
Rancher
Posts: 618
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 623
1
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 623
1
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 623
1
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic