This is a guide to configure WTP to run and debug ApplicationA in Eclipse. Eclipse WebTools ( WTP ) provides support for a multitide of Java application servers, allowing among others deploy an application on the server directly from Eclipse. In the case of the platform, you can use WTP to start Tomcat (or your favorite server application) from Eclipse and thus observe the effects of changes without redeploying the application and debug the code.
In the view Servers bottom of the screen, click the right mouse button, select New , and then click Server .
To see the view Servers :
In the panel New server (New Server), ensure that Server's host name (Host Name Server) is set to localhost . Select Apache/Tomcat v7.0 Server as the server type. Make sure Server runtime environment is set to Apache Tomcat v7.0 . Click Next (Next).
In the next window, specify the installation directory of the JRE and the application server. Select the installation folder Tomcat (eg tomcat-7.0.37-/home/axelor/Applications/apache). Click Next (Next).
In the next window, select the web project to add to the server. Click Finish (Finish).
The server that you specified should now appear in the view Servers
Open the server with a double-click on Tomcat v7.0 Server at localhost.
The server is ready to be launched from the view Servers at the bottom of the screen.
It may have to increase the memory allocated to the server:
In the tab Servers