Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Installing Tomcat

Status
Not open for further replies.

Bao

Programmer
Jul 20, 2001
3
US
Hi, I am a newbie to Tomcat, and I have trouble configure the envoirnment and don't know some of the basic ideas, would you please help me? Thank you very much.

Is Tomcat all I need to install if I want to run servlet and jsp to work with a web page and database in a Unix enviornment?

When I was installing tomcat, I was asked to set the envoirment variable JAVA_HOME=/usr/local/jdk1.3 in order to start the tomcat server, however, I don't know where the jdk is located in my envoirnment, is there a way to find out where it is?

Do I need to have all the pages as jsp? can I also have static HTML page, if yes, where should I put the static HTML page (I know that the jsp pages should be placed in webapps)?

Where should I put my index.html that user can see when first entering the page? Is it in webapps or in /webapps/ROOT?

Thank you very much
 
try
%> echo $JAVA_HOME

maybe you'll get lucky and the variable will be set. If it isn't, check /opt, /usr/local, and /usr/share. If installed via RPM, check /usr/lib.

I would do:
%> find / -iname '*jdk*' 2>/dev/null
or use it's equivalent (locate) and see what shows on screen.

I'm still a newbie at tomcat myself, so I can't answer all your questions confidently, but I'll tell you what I know.

From what I can tell, you can use Tomcat as a standalone w/o Apache. If you're going to, and you use default config, point your browser to and you should get the ROOT directory. I think the index.html should go in /webapps/ROOT, but again I'm not sure.

I run apache + tomcat, but I think that tomcat should be able to handle html pages as well. I'm not sure about this, however, but it seems logical that it would.

hth, and as always, ymmv. leo

------------
Leo Mendoza
lmendoza@garbersoft.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top