Skip to content

Tomcat Setup for Front End Debugging

Sharan Srivatsa edited this page Apr 12, 2018 · 2 revisions

(https://wolfpaulus.com/mac/tomcat/)

  • java -version
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
id -un // Do this to get your username. For me it was Sharan
sudo chown -R Sharan /Library/Tomcat
  • sudo chmod +x /Library/Tomcat/bin/*.sh

For starting and stopping tomcat

  • /Library/Tomcat/bin/startup.sh
  • /Library/Tomcat/bin/shutdown.sh

For running an web page inside TomCat

  1. In /usr/local/apache-tomcat-9.0.7/webapps create a project folder. Call it MyApp for example
engr2-3-183-dhcp:MyApp Sharan$ ls
3.html	us.json
engr2-3-183-dhcp:MyApp Sharan$ 
  1. Rename the html file to index.html

  2. Start Tomcat

  3. http://localhost:8080/MyApp/

Clone this wiki locally