Install Apache Tomcat server on Windows and run sample java application

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everybody in this video I'm going to show you how to download and install Apache Tomcat server and use this server to run Java Java applications so the tutorial will be divided in four parts first one is downloading and installing Apache Tomcat server second is running simple war file this is sample java application and run tomcat comments on this application the comments are start stop reward deploy and deploy and in first case we will use for running these comments Tomcat manager interface manager graphical user interface and so the third objective will be downloading and installing cygwin with C URL comment and for run Tomcat comments using cygwin command prompt so let's start with the first objective it's downloading and installing Apache Tomcat so to download Apache Tomcat we will simply go to google download so there is al-kitab ship official website you will use Tomcat 8 so here here are the links for downloading so we have several options for downloading this server first one is the zip file and this zip file will give us outstanding the application for server and we can also use windows service installer which will run as normal windows process so in this case in this tutorial we will use this windows service installer will download it so when it's downloaded we run this so here we have option to input the username and password this will be useful for our second objective and this password I mean login and password later login username and password later will be used to enter Tomcat manager interface so we will remember this so in this step the installation is asking for Java Runtime marine environment so if you have already installed ja g err e then you should provide the path or if you haven't downloaded it you have to go and download what air e so it's here we will download it and after that continue installation SOI solution is finished and now we run Apache server ok now we have already installed Tomcat server now we can test it on localhost and 8080 port this port 8080 is the default port for apache tomcat so there are ok the manager it asks for password we enter the password which we set while installing tomcat so it's and I don't say password so this is manager graphically graphical user interface for junket so as we can see there are some kind of services we can use to manage the Tomcat Tomcat so there is important files or hand link Tomcat server is located in Program Files config so as you can see if we open Tomcat user files so here is the user we added while installing tonkin username password and thus our roles for this user so the fact that the role is add new graphical user interface means that we can give if this was dilated we we are not able to enter this disk manager interface so this should be written here also there is the web apps folder this web apps folder is for the war files so now we can move to second objective this is run sample war file so and run comments using Tomcat manager interface so at first we of course we have to download to the same phone same four or five so here is the file you can download it sample so if we if we put this war file to our file in this folder it will run automatically deployed and we'll be able to see this application here but we want to do this we will okay just try this you can try this we will put this file and now we can see there is sample application let's open a new window so here here is the java application and we run it on localhost local Apache Tomcat server ok we could upload the war file from here as well we would just choose the war file it's not here anymore yeah we could just choose our file and it will do the same as we as it did when we put the file here manual as we can see here for this application we have some kind of comments stop reload and deploy we can move for example top the file application and if we refresh it we get 404 error if we start it works again but we can do these comments execute this command stop reward and deploy it and start using the browser comments HTTP comments so so here is the general syntax for HTTP request for tomcat cons so here we have username password host port manager texts top cushion mattres and we provide path for the application so just let's try this this this comment in our case our username Nika is Renuka localhost:8080 stop earth and simple and just one note in order to that to be able to run this comment as a HTTP request in browser we will have to change make some changes in tomcat configuration don't got users file we should add the role to the user this is called men major script manager script we save this file we save this file and now we have to restart apache tomcat and to do this we're going to shut down and then start startup now just let's try the opposite there already actually this because we did not start budget uncle normally so we should go to services find don't cut date yeah stop service so we stop the service yeah and we start it again it now appears you started and now we can run tomcat comments and try to so just at first see if it's running yeah our predation is running just try to stop it so syntax is stopped and it says dog stopped certification at context passing all now let's try that we get error would found and also if we see here and you say that yeah it stopped and it's now tops start button we can start it from here as well so comment is start again application started so just check yeah it works check it here it also works now let me tell also I think reload reload the application rolled it and and deploy and deploy means delayed the application at all so now if we see here it should be related from here yeah it's antique Lloyd in the next tutorial we'll see how to how to use the cygwin to run these comments run the test comments from cygwin command prompt x for watching
Info
Channel: Tsogi
Views: 10,871
Rating: undefined out of 5
Keywords: Apache Tomcat, java, windows, java application, tomcat manager gui
Id: emqmYY80Zpg
Channel Id: undefined
Length: 12min 25sec (745 seconds)
Published: Sat Mar 26 2016
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.