Questions or problems? Post them in the comments section below.
Want to suggest a video? Leave a comment below. I'm always looking for new video ideas.
Let me know what video you'd like for me to create.
JSF Tutorial Transcript
00:00 Hey. Welcome back. In this video, we're going to connect Eclipse and Tomcat. So far in our video series, we've installed Tomcat and we've installed Eclipse and these are two separate applications, but what we want to do now is actually connect them together, so the main benefit is that once we connect Eclipse and Tomcat, then we can start Tomcat from Eclipse. Now also, this will make it very easy for us to deploy our applications directly to Tomcat. We won't have to manually start or manually deploy. We can do all of this automatically within the Eclipse framework.
00:38 All right, so let's go ahead and move into Eclipse and what we're going to do here is we're going to connect Eclipse to Tomcat. Down in our bottom center, we have a tab called "Servers." Right now, we don't have any servers installed, we're going to follow the directions here in creating a new server, so we'll go ahead and click that link to create a new server. This will bring us to a page. Eclipse supports a lot of different servers, but what we're going to do here is make use of the Apache Tomcat server. Expand the folder here for Apache, scroll down and we'll choose our version. We're using Tomcat 8. Then we'll go ahead and click on next.
01:19 Now, we need to tell Eclipse where Tomcat is installed. Wherever you have Tomcat installed in your directory, that's the directory information you should give. Here, I'll just kind of browse my file system and I know in this class, jsf-for-beginners, Apache Tomcat 8. That's the directory that we've installed Tomcat for this training class. You may have it installed in a different directory, simply choose that directory accordingly, but for my example, I have jsf-for-beginners, Apache Tomcat 8. Then once you have that directory set up, then you can go ahead and hit "Finish" and this will go ahead and set up the configuration.
02:00 Right now, the server is actually stopped and we can actually start the server by just by making use of a right click. I can just right click on this item here and I can say, "Start server." Right click, start. This will actually start up the server. We'll see a lot of information on the console window on the far right. Eventually at the end, it'll say, "Server startup in" X number of milliseconds. We know that our server started and running and we can also verify this by looking at the Server's tab. It says that Tomcat 8 is started and it's synchronized. This looks really good. Our Tomcat server started and we're able to launch it from the Eclipse application.
02:46 This looks good. In our next video, I'll actually show you how to deploy a JSF application on the Tomcat server, but the main focus of this video is just starting Tomcat from Eclipse. All right, so this wraps up the video. In this video, I showed you how to connect Eclipse and Tomcat together and so we found out how we can actually start the Tomcat server from within Eclipse.