wood burning stoves 2.0*
The moose likes Tomcat and the fly likes easiest way to install/configure tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "easiest way to install/configure tomcat" Watch "easiest way to install/configure tomcat" New topic

easiest way to install/configure tomcat

pooja jain
Ranch Hand

Joined: Jan 12, 2005
Posts: 213
easiest way to install/configure tomcat:

1. download tomcat installation and unzip it.
2. set two environment variable: JAVA_HOME and CATELINA_HOME pointing to jdk and tomcat directory respectively.

that should work.

pooja jain
Ranch Hand

Joined: Jan 12, 2005
Posts: 213
why do we need all these: http://www.coreservlets.com/Apache-Tomcat-Tutorial/


Change the port to 80. Edit install_dir/conf/server.xml and change the port attribute of the Connector element from 8080 to 80.
Turn on servlet reloading. Edit install_dir/conf/context.xml and change <Context> to <Context reloadable="true" privileged="true">.
Enable the invoker servlet. Go to install_dir/conf/web.xml and uncomment the servlet and servlet-mapping elements that map the invoker servlet to /servlet/*.
Turn on directory listings. Go to install_dir/conf/web.xml, find the init-param entry for listings, and change the value from false to true.


Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074

Hello Pooja,

Do you have a question? Please ask it clearly, then we can answer it for you.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
pooja jain
Ranch Hand

Joined: Jan 12, 2005
Posts: 213
Originally posted by Jesper Young:
Hello Pooja,

Do you have a question? Please ask it clearly, then we can answer it for you.

why do we need all these? (steps mentioned in above post and in link mentioned in above post)

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41062
Note what that page says in the first paragraph:
Most people will just want to download the preconfigured Tomcat version, set JAVA_HOME and CLASSPATH, and they are done. But following is a summary of the steps for people who want to change the configuration or do it themselves.

Those extra steps make changes to the standard configuration, and are entirely optional.

Ping & DNS - my free Android networking tools app
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Originally posted by pooja jain:
why do we need all these?

You don't need them but I'm sure if you looked at each of the configuration changes you'll be able to imagine how they might be useful to someone in a development environment.

With the 'reloadable' attribute set to true, Tomcat will watch your class files and automatically reload the application if one of them is updated (preventing you from having to restart the app every time you compile something).

Turning on directory listings makes it easy for you to see what files are in a particular directory (as long as a welcome-file is not configured).

The InvokerServlet allows a developer (in a test or development environment) to run servlets without having to declare and map them in the deployment descriptor (read the link to find out why using this technique can cause a lot of features to fail. Many of us feel there is never a good reason to use the InokerServlet).

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link: http://aspose.com/file-tools
subject: easiest way to install/configure tomcat
Similar Threads
How to install war application
increase java heap size
tomcat at linux startup
problem starting tomcat
installation of tomcat 5.0.28