Deploying EJB Jar File to Wildfly Application Server from Eclipse

Posted on

Deploying EJB Jar File to Wildfly Application Server from Eclipse Mars 2

IDE    : Eclipse Mars 2

Application Server : Wildfly 10

1. First of all, the installation of Eclipse IDE is certainly necessary. The steps of the installation of Eclipse IDE can be shown in the following link. The version of Eclipse IDE is Eclipse Mars 2.

2. There are lots of requirements which has to be fulfilled. The first one is installing the JRE (Java Runtime Environment) in the Eclipse IDE.

3. Go to the Package Explorer of the running Eclipse IDE. Display the Server tab view by accessing the following menu :

Window > Show View > Other … . And after that choose server as shown below :

Displaying menu Window > Show View to access several pane which is provided in Eclipse Java IDE.

And it will appears the following window :

Displaying available View which is available in Eclipse Java IDE. The image is pointing to Servers View.
Displaying Servers Pane in Eclipse Java IDE which is displaying the available Java Application Server installed and integrated with Eclipse Java IDE.

We have to start the Wildfly Application Server by selecting the Wildfly entry in the Server tab View and then right click to start the process by clicking the Start process. It is shown as follows :

Displaying another menus available by executing right click in the selected Java Application Server installed in Eclipse Java IDE

When the process of starting Wildfly Application Server success, the status of Wilfdly Application Server will be changed as to [Started] as shown below :

Displaying list of installed and integrated Java Application Server available in Eclipse Java IDE. This image is displaying the state of Wildfly which is currently running as Java Application Server.

4. The deployment process can be initiated after Wildfly Application Server has already started. First of all, access the Project from the Package Explorer tab view as shown below :

Displaying menu Window > Show View in Eclipse Java IDE.

5. By doing the step in the fifth one, accessing Window > Show View > Package Explorer, it will then appear the following window :

Displaying the Project Explorer pane which is viewed in Eclipse Java IDE.

6. The next step is to choose the EJB Project which is going to be deployed shown as follows :

Right click at one of the available Project listed in Project Explorer pane inside Eclipse Java IDE to be able to view menus which can be selected.

Right click in the selected EJB Project and then select Export. After that select EJB JAR file. It is shown as follows :

Right click in one of Project available in Project Explorer pane in Eclipse Java IDE. It displays the available menus to export the project to Jar file.

7. By doing the above step, the following windows will appear :

Displaying Export Window in Eclipse Java IDE to be able to be deployed in Wildfly 10.0 Runtime which acts as the Java Application Server.

8. We have to define the deployment folder path by clicking the Browse … button. It will then display the following window as follow :

Selecting deployment folder which is going to be placed with the exported Jar file of the project available in Eclipse Java IDE. In this context, it is the deployment folder of Wildfly 10

Based on the above image, the deployment folder path is shown in the Wildfly installation path. Specifically it is inside the Wildfly installation path as in :


After we found the Wildfly installation folder , click the OK button.  It will then the previous window reappear :

Summarizing the export process in the Export Window after selecting the deployment folder in Wildfly 10 which acts as Java Application Server in Eclipse Java IDE.

Click Finish to start deploying the EJB jar file to Wildfly. After that, check the Server tab view, the notification of the deployment process will appear as shown below :

Displaying the output of deployment process in Console Tab inside Eclipse Java IDE after the deployment process itself finished.

9. To be able to see whether the EJB jar file has already successfully deployed in order to verify it, Wildfly is providing a management console access to view the list of deployments. Access the URL of Wildfly management console with any kind of browser with a Java support as follow :


*wildfly-server-address and the port has to be adjusted with your own Wildfly configuration.

If the URL address is correct, the browser will return a pop-up dialog box asking the authorized account to access Wildfly management console as shown below :

Displaying the Authentication Required Window Pop-up which needs to be inserted with Username and Password before accessing Wildfly 10 Java Application Server Management Console page.

To create an account which can be used to access Wildfly management console, please refer to this link.

10. If the above process is finished successfully by entering the correct account, the browser will direct it to the following page :

Displaying Wildfly Management Console page.

11. Directly access menu Deployments to view all of the deployments which has been made in Wildfly Application Server as shown below :

Leave a Reply