JSF Tutorial #8: JavaServer Faces Tutorial (JSF 2.2) – Connect Eclipse and Tomcat

In this video, I will show you how to connect Eclipse and Tomcat.

Please SUBSCRIBE to my YouTube channel.


Download JSF Source Code

# Video
1 Introduction
2 JavaServer Faces Overview
3 Setting up your Development Environment - Overview
4 Installing Tomcat - MS Windows
5 Installing Tomcat - Mac OS X
6 Installing Eclipse - MS Windows
7 Installing Eclipse - Mac OS X
8 Connecting Eclipse to Tomcat
9 JSF Behind the Scenes
10 JSF HelloWorld
11 Creating JSF HTML Forms
12 JSF Forms and Managed Beans
13 Drop-Down Lists - Part 1
14 Drop-Down Lists - Part 2
15 Radio Buttons
16 Check Boxes
17 Prepopulating Forms
18 Recommended JSF Books and Resources

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?
I have a premium course that shows you how to complete all of these tasks.
  • Database Integration with JDBC
  • Displaying Data in Lists and Tables
  • Validating HTML Forms
  • Implementing Business Logic with Managed Beans
  • Deploying applications with WAR Files
Read more about the premium course at http://www.luv2code.com/jsf-for-beginners

Follow luv2code with the links below:

– Website: http://www.luv2code.com
– YouTube: http://goo.gl/EV6Kwv
– Twitter: http://goo.gl/ALMzLG
– Facebook: http://goo.gl/8pDRdA

JSF Tutorial Transcript:

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.

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.

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.

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.

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.

Did you like my blog post?

Signup now and receive an email when I publish new luv2code content.

I will never give away, trade or sell your email address. You can unsubscribe at any time.


Leave a Reply