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

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/.
主站蜘蛛池模板: 榆中县| 都兰县| 福鼎市| 奈曼旗| 淮北市| 郓城县| 思茅市| 清水县| 祁连县| 板桥市| 海原县| 辛集市| 财经| 仁怀市| 筠连县| 石首市| 柘城县| 北宁市| 政和县| 侯马市| 富蕴县| 宽城| 昌平区| 太保市| 若尔盖县| 福海县| 南充市| 诸暨市| 东城区| 兴化市| 理塘县| 会昌县| 全州县| 中方县| 化隆| 蚌埠市| 剑河县| 涿州市| 洞口县| 鄂州市| 肇庆市|