官术网_书友最值得收藏!

Adding/configuring Apache Tomcat in Eclipse

In this section, we will learn how to add and configure Apache Tomcat in Eclipse. This will help to start and stop the server from within the Eclipse IDE.

The following steps need to be taken to achieve this objective:

  1. Make sure you are in Java EE perspective.
  2. Click on the Servers tab in the lower panel. You will find a link saying No servers are available. Click this link to create a new server.... Click on this link.
  3. Type Tomcat under Select the server type. It would show a list of Tomcat servers with different versions. Select Tomcat v8.5 Server, and click on Next
  4. Select the Tomcat installation directory. Click on the Installed JREs... button, and make sure that the appropriate JRE is checked. Click on Next.
  5. Click on Finish. This would create an entry for the Tomcat server in the Servers tab.
  6. Double-click on Tomcat server. This would open up a configuration window where multiple options such as Server Locations, Server Options, Ports can be configured.
  7. Under Server Locations, click on the Browse Path button to select the path to the webapps folder within your local Tomcat installation folder. Once done, save it using Ctrl S.
  8. Right-click on the Tomcat Server link listed under the Servers panel, and click on Start.
  9. This should start the server. You should be able to access the Tomcat page on the URL http://localhost:8080/.
主站蜘蛛池模板: 儋州市| 新宁县| 辉南县| 台湾省| 石柱| 威信县| 阆中市| 屏南县| 海原县| 五常市| 浦东新区| 从江县| 乌鲁木齐市| 光山县| 蕉岭县| 巴楚县| 乌鲁木齐县| 封丘县| 凉山| 偃师市| 垫江县| 林芝县| 波密县| 都兰县| 子长县| 龙南县| 偃师市| 固安县| 绥化市| 手游| 宜兰市| 柳州市| 夏邑县| 沁源县| 甘德县| 罗江县| 贵溪市| 乌鲁木齐市| 贺兰县| 肇东市| 曲阳县|