Posts

Showing posts from 2019

How to deploy WAR file on Apache Tomcat

Image
Some people sees deploying war file in Tomcat as Real WAR, but it is as easy as nothing. Today we will checkout how to deploy war file using Apache Tomcat in few easy steps. To Download & Install Java, refer my earlier blog . Download latest version of Apache Tomcat using link .  Once the zip file is downloaded, extract it to some directory location. For now we are extracting it to C:\tools  Now copy your war file into webapps directory under Apache-tomcat directory. Now start Tomcat server by double clicking on startup.bat located at bin directory under Apache-tomcat directory. Now access the application using web browser, Enter http://localhost:8080/helloworld  in address bar. Congratulations, you have successfully deployed WAR file using Apache Tomcat Server.

Install JAVA on Windows

Image
Download latest version of Java from link  by clicking on Accept License Agreement and selecting .exe file for JDK.   Once the .exe file is downloaded, double click on installer to start installation process. Click on Yes if installer asks for administrative permissions. Click on Next  Again click Next in next step and installation process will starts. Now click on Close, to complete your Java installation. Now we will set Environment variable for Java. To set environment variable search for environment variable in Start. Now click on Environment Variables.. .  Now add new variable in System Variables as JAVA_HOME and set value as home directory of Java.  Now add Java home path in variable PATH as follows and click OK Now open command prompt and check for java version, using command 'java -version'. Congratulations, JAVA is installed in your machine.