Apache Tomcat Webserver



  1. For apache tomcat you must have eclipse IDE.

  2. So for this go to official tomcat website.

  3. apache tomcat server installation

  4. Choose latest version of tomcat i.e. tomcat 8.0

  5. apache tomcat server installation

  6. Download windows service installer in core section.

  7. apache tomcat server installation

  8. Once the downloading is completed, one can run the executable (.exe) file.

  9. As a result, apache tomcat setup will start wherein click on ‘next’ button.

  10. apache tomcat server installation

  11. Click I agree to License Agreement.

  12. apache tomcat server installation

    apache tomcat server installation

  13. Check all the checkboxes and click on ‘next’ button.

  14. apache tomcat server installation

  15. Be sure that the port you are using must be free and then click on ‘next’ button.

  16. apache tomcat server installation

  17. Now choose path for java JRE installer.

  18. Once the path is chosen, click on ‘next’ button.

  19. apache tomcat server installation

  20. Now click on ‘Install’ button.

  21. apache tomcat server installation

  22. On clicking ‘install’ button, installation of tomcat will start.

  23. apache tomcat server installation

  24. Once Installation of tomcat is completed, uncheck both the boxes and click on ‘finish’ as shown below.

  25. apache tomcat server installation

  1. Start your eclipse IDE.

  2. web application using tomcat server

  3. Once eclipse IDE opens go to the ‘window’ tab in the ‘menu’ bar.

  4. web application using tomcat server

  5. In the ‘window’ tab click on ‘preferences’ section

  6. web application using tomcat server

  7. Click on ‘server’ option in ‘preferences’ section as shown in the above image.

  8. In ‘server’ section go to ‘runtime environment’ a shown below.

  9. web application using tomcat server

  10. Click on ‘add’ button.

  11. web application using tomcat server

  12. Choose version of tomcat which one wants to download and click on ‘next’ button.

  13. web application using tomcat server

  14. One need to browse path where you want to download the tomcat version.

  15. web application using tomcat server

  16. When you browse for tomcat path you need to go C drive->program files->apache software foundation and here you will find tomcat 8.

  17. web application using tomcat server

  18. Once you have chosen the tomcat path click on ‘ok’ and then on ‘finish’.

  19. web application using tomcat server

  20. Now again click on ‘Ok’

  21. web application using tomcat server

  22. Now tomcat 8 is configured so we need to start the server, for which we need to open server perspective. For this go to ‘window’ tab -> ‘show view’ section and even after this, if it does not show server then go to ‘other’.

  23. web application using tomcat server

    web application using tomcat server

    web application using tomcat server

  24. Then open new perspective called ‘server’.

  25. web application using tomcat server

  26. Right-click on the screen and then click new-> server, where a window will open and we will get an option to choose the ‘tomcat version’.

  27. web application using tomcat server

  28. As we have configured tomcat 8, choose tomcat 8 and then click on ‘next’ button.

  29. web application using tomcat server

    web application using tomcat server

  30. This will add tomcat server to localhost.

  31. web application using tomcat server

  32. Select the ‘server’ and click on ‘start server’ button which is on right side of console window.

  33. web application using tomcat server

  34. Once we click on ‘start’ button we will be able to see some messages, so we just need to allow those messages and after some moments the server will start and get synchronized.

  35. web application using tomcat server

  36. Now open browser and type ‘localhost:8080’ which is the port we have configured and press enter.

  37. web application using tomcat server

  38. We will observe that it throws ‘404 error’.

  39. This URL can also be opened in eclipse IDE.

  40. web application using tomcat server