Introduction
This article is an article for showing about how to deploy a Java Web Application. The main purpose for deploying the Java Web Application is for the execution of it. In other words, it is for executing the Java Web Application and the ability to access it via any available web browsers. Since it is basically a Web Application, it is obvious that the the access to the Web Application is using any available web browsers. There are several parts for the deployment process. The first one is the part for starting the Application Server which in this context it is the Wildfly Application Server. Soon after, it is the part for the actual deployment step.
Starting or Running Wildfly Application Server
In order to start the Wildfly Application Server, just execute the following steps :
-
Run the Wildfly Java Application Server. In this article, it exist in a machine with Windows operating system. But for more information, read the article with the title of ‘How to Run Wildfly Java Application Server via Command Line’ in this link. Run it in the command line with the following command :
standalone.sh -b 0.0.0.0 -bmanagement 0.0.0.0
The following is the image of the execution of the above command for starting Wildfly Application Server :
How to Deploy a Java Web Application to a Wildfly Application Server Furthermore, the following is the continuation of the running process of the Wildfly Application Server until it is perfectly running :
How to Deploy a Java Web Application to a Wildfly Application Server -
Make sure it is running by accessing the default Wildfly Application Server page as follows :
How to Deploy a Java Web Application to a Wildfly Application Server
Deploying Java Web Application to Wildfly Application Server
The steps for deploying the Java Web Application into a Wildfly Application Server exist as follows :
-
First of all, start access the management page of the Wildfly Application Server. Normally, it exist by default in the address of ‘http://ip_address_device:9990’. In this context, it exist in http://localhost:9990 as in the following image :
How to Deploy a Java Web Application to a Wildfly Application Server -
Next, just enter the correct username and password to access the management page of the Wildfly Application Server. If the authentication process for accessing it is a success, it will automatically redirect it to the management page of the Wildfly Application Server as in the following image :
How to Deploy a Java Web Application to a Wildfly Application Server -
Click the Deployment link, it will display the following page :
How to Deploy a Java Web Application to a Wildfly Application Server -
In the above image, there is already a Web Application exist with the name of ‘admin-starter.war’. So, there will be an additional Web Application exist by the next deployment process. Just click the DropDown link exis at the top left of the page as follows :
How to Deploy a Java Web Application to a Wildfly Application Server -
Clicking the Upload Deployment menu will trigger the appearance of the following pop-up window :
How to Deploy a Java Web Application to a Wildfly Application Server -
Drag and drop the war file which is going to be deployed as in the following image :
How to Deploy a Java Web Application to a Wildfly Application Server -
Scroll it down as in the following image. After viewing the full display of the Next button, click it to proceed the deployment process as follows :
How to Deploy a Java Web Application to a Wildfly Application Server -
After clicking the Next button, the following image displaying the page will appear. As soon as the page appear, just click the Finish button in order to deploy it :
How to Deploy a Java Web Application to a Wildfly Application Server -
The following is the actual display of the file of the web application project deployment :
How to Deploy a Java Web Application to a Wildfly Application Server -
If the deployment process is a success, the following display of the page will appear. Just click the View Deployment or click the Close Button to continue on for checking the result of the deployment :
How to Deploy a Java Web Application to a Wildfly Application Server -
The following is the image of the page displaying the prove of the success of the deployment :
-
Finally, last but not least, just access the address for executing the Web Application. The pattern of the URL address is ‘http://ip_address_server:8080/war_file’. In this context, the address is ‘localhost:8080/myproject-1.0-SNAPSHOT’ as follows :
How to Deploy a Java Web Application to a Wildfly Application Server As soon as the default page of the Web Application appear as in the above image, the deployment process is a success.