Configuring Wildfly 10 Java Application Server in Eclipse Mars 2

Posted on

Eclipse version                                  : Mars 2

To be able to deploy and execute Java related systems or applications within an IDE and in this context is Eclipse IDE (Integrated Development Environment), first of all we have to install the Application Server.

Below is how we install it and integrate it with Eclipse Mars 2.

  1. Make sure you have already installed Eclipse Mars 2. For more information on installing on Eclipse Mars 2, you can visit the following link.
  1. You need to install and configure JRE runtime so it can be used for Wildfly Java Application Server to be launched and any other processes which is needed to be executed internally in Eclipse IDE such as compilation, program execution, deployments. In order to do it, we can check the following link.
  1. You also have to finish installing and to be able to run the Wildfly Java Application Server. For more information on installing and running the Wildfly Java Application Server, you can visit the following link.

  1. From Eclipse IDE, access server pane from the following menu :

Window > Show View > Other …

It is displayed as follows :

02-add-new-server-wildfly-edit
Accessing menu Window > Show View in Eclipse Java IDE.
  1. Select and click on Servers as the View which is going to be showed :

 

01-add-new-server-wildfly
Selecting Servers View to be displayed inside Eclipse Java IDE.
  1. It will then the Servers pane appears in the Eclipse IDE as follows :
11-add-new-server-wildfly-display-server-entry
Displaying Servers Tab Pane inside Eclipse Java IDE.
  1. Below is the detail image of the Server pane :
04-add-new-server-show-server-pane
Displaying the Servers View inside Eclipse Java IDE which is currently none of the already installed and configure Java Application Server listed.
  1. Click the link inside the Servers Tab which has the text of “No servers are available. Click this link to create a new server …. It will then display the following window :
05-add-new-server-wildfly-10
Displaying New Server Window which is part of the steps of Installing and Configuring Java Application Server inside Eclipse Java IDE.
  1. Just try to scroll it down, so it will appear another version of Application Server which is appropriate in the context of this article. It is Wildfly 10 and it is displayed as follows :
06-add-new-server-wildfly-10
Selecting Wildfly 10 to be installed and configured inside Eclipse Java IDE.

And then we just have to click the Next button when the following window appears :

07-add-new-server-wildfly-10
Summarization of creating New Server Adapter inside Eclipse Java IDE.

Pay attention to the dropdown list which has the value of Create new runtime (next page). If there are already defined a certain runtime before, it actually can be used. And it will then display the information of the runtime in the Runtime Details. Just select the dropdown list entry as the above window and click the Next button.

  1. By clicking the Next button, it will then display the following window :
10-add-new-server-wildfly-select-the-correct-entry-edit-again
Displaying next step of adding New Server inside Eclipse Java IDE. It is the process of defining the home directory of Java Application Server and also selecting the available Java Runtime Environment to be in charge of executing it.

Since we have installed it before in the third step. We can point out the Wildfly Application Server installation path directory by clicking Browse… for Home Directory entry. And we also have to pay attention to the JBoss Server runtime name because Eclipse IDE doesn’t allow more than one similar name.

Below is the image display when the Browse… button is clicked :

08-add-new-server-wildfly-10-select-jboss-installation-path-edit
Selecting the home directory of Java Application Server which is going to be added. In this image is Wildfly 10 root folder installation.
  1. The other thing which is needed to be configured is the runtime JRE. It can be achieved by clicking the Environments… button. We are choosing JavaSE-1.8 for the runtime JRE which is used to launch Wildfy 10. The following window will be appeared :
04-add-new-server-wildfly-select-jre-folder-edit
It display the home directory of Java Runtime Environment which is selected to be in charge of executing Java Application Server. The image displays the root folder installation of Java Runtime Environment.

As we can see in the above window, there will be a display of the already installed compatible JRE accordingly. The runtime JRE that has already installed and configured in the 2nd step. Click OK to go back to the JBoss Runtime configuration window. After that, click the Finish button.

  1. By finishing the 11th step, the Server pane will also have a new entry for JBoss Runtime server as shown below :
13-add-new-server-wildfly-started
Display the Servers Tab which is currently listed with the New Java Application Server installed. It display the Wildfly Java Application Server in the list.
  1. To launch Wildfly 10, right click at the above Wildfly Application Server entry and then click the Start menu as follows :
12-add-new-server-wildfly-run
Display the right click on the new installed Java Application Server. In this image, it displays the available menu provided which can be selected with Wildfly 10 as Java Application Server.
  1. If the process of launching Wildfly 10 Application Server runs smoothly, there will be a change of status in the JBoss runtime Server entry in the Server pane as shown below :
13-add-new-server-wildfly-started
Display the already running process of Wildfly 10 in the Servers View inside Eclipse Java IDE.
  1. We can check it by accessing the following URL : http://localhost:8080 if we run it locally depends on your Wildfly 10 Application Server setting as shown below :
wildfly-default-page
Displaying the front page of running Wildfly Java Application Server.

Leave a Reply