BreadcrumbsHome / JSF Tutorial #4: JavaServer Faces Tutorial (JSF 2.2) – Installing Tomcat for MS Windows
JSF Tutorial #4: JavaServer Faces Tutorial (JSF 2.2) – Installing Tomcat for MS Windows
Last Updated on Saturday, 16 May 2015 Written by Chad Darby Monday, 4 May 2015
In this video, I will show you how to install Tomcat for MS Windows.
Please SUBSCRIBE to my YouTube channel.
Do You Need More Details?
- Do you need to connect to a database?
- Display SQL results in a HTML table?
- Perform SQL insert, updates and deletes?
- Database Integration with JDBC
- Displaying Data in Lists and Tables
- Validating HTML Forms
- Implementing Business Logic with Managed Beans
- Deploying applications with WAR Files
Follow luv2code with the links below:
JSF Tutorial Transcript:
Hey welcome back. Let’s go ahead and get our hands dirty. In this video I’m going to show you how to install Tomcat on Microsoft Windows.
All right, so the first thing we need to do is we need to download Tomcat. In my browser I’m going to visit tomcat.apache.org. This will take me to the Tomcat website. Over on the left hand side there’s a download section where we can actually download some of the software. At the time of this recording Tomcat 8 is the most current version. However there may be a new version. Simply download that new version for your operating system.
All right, I’ll select the link for Tomcat 8. I’m on the Tomcat 8 downloads page now. I’ll move down to the section for binary distributions and I’ll choose this 32-bit 64-bit Windows service installer. This is the normal MSI file that will install Tomcat as a Windows service. I’ll go ahead and select this link. Right now my browser will start downloading it to my file system.
All right, great, so now we have it downloaded. Let’s go ahead and open up our Windows Explorer and I’ll move into this Downloads folder. There’s the file that was just downloaded, Apache Tomcat 8, so that’s the actual installer. Let’s go ahead and run this installer just by double clicking it. This will start up the installer. I’ll hit yes. Here I’m at the first step of the wizard. I’ll go ahead and click next, I’ll all agree. Then here we choose our components. For the components I like to choose full just so I can get all the examples and the host manager. Again, a nice thing about this Tomcat installer is that installs it as a service, so I’ll make sure that the service thing is enabled or checked there. I’ll go ahead and hit next.
By default Tomcat listens on port 8080. Feel free to change that. I like to keep the defaults. Then you can set up a administrator log in. For now I’ll just say admin admin. Again, you can give any username and password that you want. Then I’ll hit next. I’ll accept the default installation here for my JRE. I’m using Java 8. That’s fine. I’ll hit next. I’ll also accept the default installation directory. You can feel free to change this, but I’ll go ahead and keep the default installation directory for Tomcat and then I’ll hit install.
At this point I’m going to through the process of installing the software. Now it says, “Hey, the software is installed.” I’ll turn off the option that show the Read Me. I’ll hit finish and now it’ll actually start Tomcat as a Windows service.
All right, great, so Tomcat is started. Let’s go ahead and verify our installation. We can verify it by viewing a website localhost:8080. That’s where our local Tomcat server is running right now. If everything works out right it should bring up this page that you see here. Let’s see Apache Tomcat version 8. Then also they even give you a message, “If you’re seeing this, you’ve successfully installed Tomcat. Congratulations.” We know that we’re okay so Tomcat was installed successfully and Tomcat is up and running. Good job so far.
Now I want to show you one other thing you can do, is you can actually configure Tomcat. You can just right click on the little Tomcat icon in the bottom right and say right click and hit configure. This will bring up the configuration window for Tomcat. You can change like the display name for the service, you could change the actual description, at the bottom it shows you the status if it’s running or stopped, you can play around some log in stuff, a lot of other things you can play around with. But for right now I’ll just go ahead and keep everything as the defaults and I’ll just hit cancel right now.
Another nice thing is that you can actually administer Tomcat via the services Control Panel. I’ll go ahead and click on Services here. It will bring it up and we’ll see in the list we have Apache Tomcat 8 that’s listed as a service and it’s currently running. Just like any standard service you can just right click, you can stop it, pause it, resume it, restart it, you can do all the normal things you can do with a service.
What I’d like to do now is actually stop Tomcat because we’re going to run it later via Eclipse. I’ll go ahead and stop this service. I’ll just do a right click, I’ll hit stop and then it’ll go through the process of stopping the Tomcat server. Right now it’s not running. But don’t worry, later on we’ll actually hook up Tomcat and Eclipse to run together and we’ll cover that in one of the following videos.
Now we were successful. We were able to download Tomcat and install it, and then also go through the process of verifying our installation. Then finally we went around and took a look at some of the configs and also looked at the services control panel. Good job so far.