#Different #Ways of #Deploying #java #web #application in #Server: #adv java #Advance #Java #Servlet #Programming #Tutorial
Programmers can deploy java web application in servers by using one of the following 3 ways:
1) Hard Deployment:
-------------------
Copy the directory or .war file of web application to certain folder of server of server software installation folder (like Tomcat-home\webapps folder)
2) Console Deployment:
---------------------
Deploy the file as admin console screen of server(like Tomcat manager)
Procedure to deploy the console deployment of web application on Tomcat Server:
Step 1:
------ Keep .war file ready
keep Deployment directory structure ready with working java web appln.
E:/VoterApp
|------input.html
|------Validation.js
|------WEB-INF
|--------web.xml
|--------classes
|--------VoterSrv.java
|--------VoterSrv.class
Prepare .war file
E:/VoterApp jar cf VoterWebApp.war .
Here c - indicate Create .jar/.war file
Here f - indicate jar/war file name.
Step 2:
------ Deploy the .war file through Tomcat Manager service
Open Tomcat Manager Console service from browser
Step 3: Test the web application using Requst URL
http://localhost:2020/VoterWebApp
When .war file is deployed in tomcat server then the war file name becomes context-path or context-root or Web-application-name.
Eg: When VoterWebApp.war file is deployed, then "VoterWebApp" acts as webapplication name or context root or context root.
3) Deployment using Tools:
--------------------------
Use any IDE's or Maven Tool, Ant Tool for deployment.
On this page of the site you can watch the video online 51 Different Ways Deploying java web application in Server |Adv Java Servlet Programming Tutorial with a duration of hours minute second in good quality, which was uploaded by the user tech fort 09 February 2018, share the link with friends and acquaintances, this video has already been watched 1,014 times on youtube and it was liked by 41 viewers. Enjoy your viewing!