Install Tomcat

Chad Darby
A free video tutorial from Chad Darby
Popular Java Spring Instructor - Best Seller
4.6 instructor rating • 8 courses • 428,038 students

Learn more from the full course

Spring & Hibernate for Beginners (includes Spring Boot)

Spring 5: Learn Spring 5 Core, AOP, Spring MVC, Spring Security, Spring REST, Spring Boot 2, Thymeleaf, JPA & Hibernate

40:54:10 of on-demand video • Updated April 2021

  • Develop a REAL-TIME project with Spring MVC, Spring REST, Spring Boot and Hibernate CRUD ... all from SCRATCH
  • You will TYPE IN EVERY LINE of code with me in the videos. I EXPLAIN every line of code to help you learn!
  • LEARN key Spring 5 features: Core, Annotations, Java Config, AOP, Spring MVC, Hibernate and Maven
  • I am a RESPONSIVE INSTRUCTOR ... post your questions and I will RESPOND in 24 hours.
  • POPULAR VIDEOS for: Spring Boot 2, Spring Security, Spring REST, Spring Data JPA, Spring Data REST and Thymeleaf
  • Join an ACTIVE COMMUNITY of 185,000+ students that are already enrolled! Over 47,000+ Reviews - 5 STARS
  • Students have LANDED NEW JOBS with the skills from this course. Spring and Hibernate developers are in HIGH-DEMAND!
  • You can DOWNLOAD all videos, source code and PDFs. Perfect for offline LEARNING and REVIEW.
English Instructor: In this video, we'll install Tomcat on Microsoft windows. Now, one thing that I want to point out here and this is regarding the Tomcat version. So there was a recent version of Tomcat that was released to support Jakarta EE 9 with this release of supporting Jakarta EE 9. They renamed the packages from javax.* to jakarta.*. Now, this is a breaking change for Java EE apps. Spring 5 currently does not support the new package renaming of Jakarta EE 9, as a result Spring 5 does not currently work on Tomcat 10. So you'll have to use Tomcat 9 for your Spring 5 applications. Now the spring team is aware of this issue. You can track the status at the link that I have here on the slide. So they haven't provided any timelines or dates. We're not sure if they'll resolve this in the next six months, the next year, maybe Spring 6 but you can use the link here to kind of keep track of that. So anyways, going forward in this course we'll make use of Tomcat 9 because it will be deploying Spring 5 apps. So the important thing is later in the video when we go to download Tomcat be sure to download Tomcat 9. All right, so the first thing we need to do is we need to download Tomcat. So on my browser, I'm going to visit And so this will take me to the Tomcat website. Over on the left-hand side is a download section where we can actually download some of the software. I moved down to the section for binary distributions, and I'll choose this 32 bit 64 bit windows service installer. So I'll go ahead and select this link. And 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 a windows explore and I'll move into this downloads folder. And there's the file that was just downloaded Apache Tomcat. So that's the actual installer. So let's go ahead and run this installer just by double clicking it. And here I'm at the first step of the wizard. I'll go ahead and click next. I'll agree. And then here we choose our components for the components I'd 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 list is on port 8080. Feel free to change that, I like to keep the defaults. and then you can set up a administrator log in. So for now just say admin admin, again you can give any username and password that you want. And then I'll hit next. I'll accept the default installation here from my JRE. I'll hit next and 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. And so at this point, I'll go through the process of installing the software and now it says, hey, we're the software's installed. I'll turn off the option to 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 and we can verify it by viewing a website, localhost:8080. That's where our local Tomcat servers running right now. So if everything works out right it should bring up this page that you see here. So let's say Apache Tomcat and then also they even give you a message. If you're seeing this you've successfully installed Tomcat. Congratulations. So we know that we're okay. So Tomcat was installed successfully and Tomcat is up and running. So good job so far. Now I'm going to to show you one other thing you can do you can actually configure Tomcat. So you can just right click on the little Tomcat icon in the bottom, right? And say, right, click and hit configure. And this will bring up the configuration window for Tomcat. So you can change like the display name for the service. You could change the actual description at the bottom it shows you that the status, if it's running or stopped You can play around with some logging 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 default and I'll just hit cancel right now. Another nice thing is that you can actually administer Tomcat via the services control panel. So I'll go ahead and click on services here. It'll bring it up and we'll see in the list we have a patchy Tomcat that's listed as a service and it's currently running. So 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. So I'll go ahead and stop this service. I'll just do a right click. I'll hit stop. And I'll go through the process of stopping the Tomcat server. So 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. And then finally, we went around and took a look at some of the configs and also looked at the services control panel. So good job so far.