Installing Tomcat:

1. Download the software. 

2. Uncompress, unarchive: this creates a folder. 

3. Move into the folder, into conf, put your port(s) into server.xml

4. Set up CLASSPATH, CATALINA_HOME, JAVA_HOME in ~/.bash_profile

5. Start the server 

6. Stop the server 



   http://silo.cs.indiana.edu:18740/chat/servlet/Chat



   b = (n == 0)


   b = ! (n == 0)


   C - - - - - - T -     re 



  294  ls
  295  cp /l/www/classes/a348/spr2013/software/apache-tomcat-7.0.35.tar.gz .
  296  ls -l
  297  clear
  298  ls
  299  ls -ld apache-tomcat-7.0.35.tar.gz
  300  gunzip apache-tomcat-7.0.35.tar.gz
  301  ls -ld apache-tomcat-7.0.35.tar
  302  tar xvf apache-tomcat-7.0.35.tar
  303  clear
  304  ls -ld apa*
  305  rm apache-tomcat-7.0.35.tar
  306  cd apache-tomcat-7.0.35/
  307  ls
  308  cd conf/
  309  ls -l
  310  mv server.xml server.xml-backup
  311  pico -w server.xml
  312  pico ~/.bash_profile
  313  echo $CATALINA_HOME
  314  source ~/.bash_profile
  315  echo $CATALINA_HOME
  316  $CATALINA_HOME/bin/startup.sh
  317  $CATALINA_HOME/bin/shutdown.sh
  318  pwd
  319  ls -l
  320  pico -w tomcat-users.xml
  321  $CATALINA_HOME/bin/startup.sh
  322  /u/carterh/apache-tomcat-7.0.35/bin/shutdown.sh
  323  clear
  324  pico -w tomcat-users.xml
  325  cd ../logs/
  326  ls
  327  rm *
  328  /u/carterh/apache-tomcat-7.0.35/bin/startup.sh
  329  clear
  330  mkdir $CATALINA_HOME/webapps/iceblox
  331    mkdir $CATALINA_HOME/webapps/iceblox/WEB-INF
  332    mkdir $CATALINA_HOME/webapps/iceblox/WEB-INF/classes
  333    mkdir $CATALINA_HOME/webapps/iceblox/WEB-INF/lib
  334    cp /l/www/classes/c212/fall2010/notes/iceblox/Iceblox.java $CATALINA_HOME/webapps/iceblox
  335    cp /l/www/classes/c212/fall2010/notes/iceblox/iceblox.gif  $CATALINA_HOME/webapps/iceblox
  336    cp /l/www/classes/c212/fall2010/notes/iceblox/iceblox.html $CATALINA_HOME/webapps/iceblox
  337  clear
  338  cd $CATALINA_HOME
  339  cd webapps/
  340  ls
  341  cd iceblox/
  342  ls -l
  343  javac Iceblox.java
  344  clear
  345    mkdir $CATALINA_HOME/webapps/chat
  346    mkdir $CATALINA_HOME/webapps/chat/WEB-INF
  347    mkdir $CATALINA_HOME/webapps/chat/WEB-INF/classes
  348    mkdir $CATALINA_HOME/webapps/chat/WEB-INF/lib
  349    cp /l/www/classes/c212/fall2012/chat/Chat.java        $CATALINA_HOME/webapps/chat/WEB-INF/classes
  350    cp /l/www/classes/c212/fall2012/chat/ChatServlet.java $CATALINA_HOME/webapps/chat/WEB-INF/classes
  351    cp /l/www/classes/c212/fall2012/chat/web.xml          $CATALINA_HOME/webapps/chat/WEB-INF
  352    cp /l/www/classes/c212/fall2012/chat/ChatApplet.java  $CATALINA_HOME/webapps/chat
  353    cp /l/www/classes/c212/fall2012/chat/HttpMessage.java $CATALINA_HOME/webapps/chat
  354  clear
  355  cd $CATALINA_HOME
  356  cd webapps/
  357  ls
  358  cd chat/
  359  ls
  360  pico -w ChatApplet.java
  361  javac *.java
  362  cd WEB-INF/
  363  ls -l
  364  cat web.xml
  365  cd classes/
  366  ls -l
  367  pico -w Chat.java
  368  javac *.java
  369  clear
  370  history
[carterh@silo classes]$