To manually deploy the application perform the following steps:
- First of all, we will need to get the WAR file. We can use the Eclipse IDE to get the WAR file for deployment easily--right-click on the application, and select Export, as shown by the arrows in the following screenshot:
- Select the destination where you want to create the WAR file. If you want, you can change the war filename. I will keep ReadMyBooks as it is.
- Click on Finish to complete the process. You will get a WAR file in the selected destination.
- Copy the WAR file that we created in an earlier step, and paste it in the webapps folder under the Tomcat directory.
- Start Tomcat by clicking on the startup.bat file from the bin folder.
- Once Tomcat has started, open the browser, and type the home URL in the format of http://host_name:port_number_of_tomcat/war_file_name. In our case, it is http://locathost:8080/ReadMyBooks.
- Before moving ahead, make sure the database parameters are correctly set; otherwise, the application will fail.
- The home page will open, where we can test the application for the functionalities, look, and feel.