Axelor Doc

Eclipse server configuration

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.

Defining a new server

In the view Servers bottom of the screen, click the right mouse button, select New , and then click Server .

To see the view Servers :

  1. In the Eclipse menu bar, click Window (Window), choose Show View (View view), then click Other ... (Other ...).
  2. In the panel Show View (View view), expand Server , select Servers , then click OK .

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).

Eclipse server configuration

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).

Eclipse server configuration

In the next window, select the web project to add to the server. Click Finish (Finish).

Eclipse server configuration

The server that you specified should now appear in the view Servers

Eclipse server configuration

Open the server with a double-click on Tomcat v7.0 Server at localhost.

  1. Under Timeout , increase Start and Stop at 250s .
  2. Under Server Options , uncheck auto reload module by default.
  3. In the tab Modules in the table, open and uncheck enable Auto reloading .

Eclipse server configuration

Eclipse server configuration

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:

  1. Open the server with a double-click from the view Servers at the bottom of the screen.
  2. Under General Information , clicuez under Open Lauch Configuration
  3. In the tab Arguments , add in VM arguments, -Xms2048m -Xmx2048M -XX:PermSize=1024m -XX:MaxPermSize=1024m

Starting the server

In the tab Servers

  1. Right click on Tomcat v7.0 Server at localhost and select Start (or Debug )
  2. Wait until Tomcat is started.
  3. Launch the Internet browser:http://localhost:8080/axelor-demo