Hi guys,
Saw many mails about configuring tomcat lately.
I have installed tomcat in my redhat 6.2 linux box and
everything works fine.Iam attaching the procedure i
followed while installing it.It is just an extract of
steps from the doc's that comes with the tomcat
utilities.If u need detailed explanations about the
steps please look at the docs.

U can feel free to hate - mail me if there is anything
wrong with the doc .

bye & good luck
dushyanth


Tomcat  configuration In Linux : How To

1)   First, you must have the jakarta-ant workspace
checked out parallel to this workspace
(jakarta-tomcat). Without jakarta-ant, you won't
be able to build.  When you have completed your
downloads and checkouts,you should have the following
directory structure:

$JAKARTA_HOME/
        jakarta-ant/    <-- Contains jakarta-ant files
        jakarta-tomcat/ <-- Contains jakarta-tomcat files

2) Configuring Ant :

       (i  )  add tools.jar from your JDK distribution
to your classpath;
         export CLASSPATH=JDK_HOME/lib/tools.jar

       (ii )  cd into jakarta-ant directory

       (iii)  run ./bootstrap.sh

       (iv)   run ./build.sh

       (v)    Assume Ant is installed in
/usr/local/ant. The following sets up the
              environment:

              export ANT_HOME=/usr/local/ant
              export JAVA_HOME=/usr/local/jdk-1.2.2
              export PATH=${PATH}:${ANT_HOME}/bin

       (vi)   The classpath for Ant must contain
ant.jar and xml.jar

3) configuring tomcat :

       (i) cd into jakarta-tomcat directory

       (ii) run ./build.sh

       (iii) Add this line to the end of your
httpd.conf file

Include
JAKARTA_HOME/build/tomcat/conf/tomcat-apache.conf

       (iv) cd into JAKARTA_HOME/build/tomcat/bin/

       (v)  run ./startup.sh

       (vi) start ur apache web server

       (vii)The examples should work now. try
http://localhost:8080/examples

4) Adding ur own sevlets and jsp codes

       (i)  cd into JAKARTA_HOME/build/tomcat/webapps/

       (ii) create any directory.
            (for ex) mkdir myProject.

       (ii) cd into JAKARTA_HOME/build/tomcat/conf/

       (iv) edit server.xml and add this 2 lines

<Context path="/myProject" docBase="webapps/myProject"
debug="0" reloadable="true" >
</Context>

        (v) add ur servlets or jsp files to this
directory
        (vi) set the classpath to where your compiled
classes are.
        (vii) shutdown apache.
        (viii) restart tomcat
        (ix) start apache

Now u should be able to run ur servlets without any
problem.






=====
H.Dushyanth
Web Programmer
Archean Infotech Limited
http://www.archeanit.com
Where Technology Meets Business

____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.in address at http://mail.yahoo.co.in

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to