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

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/.
主站蜘蛛池模板: 武宁县| 宣威市| 康平县| 成安县| 循化| 长顺县| 东方市| 兰西县| 瓦房店市| 芜湖市| 西和县| 额尔古纳市| 新和县| 三台县| 兴海县| 玛纳斯县| 北流市| 合阳县| 开阳县| 海兴县| 高陵县| 西盟| 长阳| 阿尔山市| 湘乡市| 临汾市| 白城市| 桓台县| 天门市| 鹿邑县| 宿迁市| 太康县| 安新县| 肥城市| 瑞金市| 新安县| 金湖县| 常州市| 荣成市| 漾濞| 凤山市|