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 :
And it will appears the following window :
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 :
When the process of starting Wildfly Application Server success, the status of Wilfdly Application Server will be changed as to [Started] as shown below :
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 :
5. By doing the step in the fifth one, accessing Window > Show View > Package Explorer, it will then appear the following window :
6. The next step is to choose the EJB Project which is going to be deployed shown as follows :
Right click in the selected EJB Project and then select Export. After that select EJB JAR file. It is shown as follows :
7. By doing the above step, the following windows will appear :
8. We have to define the deployment folder path by clicking the Browse … button. It will then display the following window as follow :
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 :
…/wildfly-10.0.0.Final/standalone/deployments
After we found the Wildfly installation folder , click the OK button. It will then the previous window reappear :
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 :
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 :
http://wildfly-server-address:9990
*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 :
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 :
11. Directly access menu Deployments to view all of the deployments which has been made in Wildfly Application Server as shown below :