Narrator: 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 2 separate applications.
But what we want to do now is actually
connect them together,
so the main benefit is that
once we have connected Eclipse and Tomcat,
then we can start Tomcat from Eclipse.
And then 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.
Alright, so let's go ahead
and move in to Eclipse.
And what we're going to do here
is we're going to connect Eclipse to Tomcat.
So 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
and create a new server.
So we'll go ahead and click that link
to create a new server.
Alright, so 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.
So expand the folder here for Apache.
Scroll down, and we'll choose our version.
We're using Tomcat 8.
And then we'll go ahead and click on Next.
Now we need to tell Eclipse
where Tomcat is installed.
So wherever you have Tomcat installed
on your directory,
that's the directory information you should give.
So 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.
And 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.
Alright, so right now this server
is actually stopped,
and we can actually start the server
by just making use of a right click.
So I can just right click on this item here,
and I can say Start Server.
So right click, Start.
And this will actually start up the server.
We'll see a lot of information
on the Console window on the far right,
and eventually at the end it will say
Server Start-Up in X number of milliseconds.
So we know that our server
has started and running,
and we can also verify this by
looking at the Servers tab.
So it says that the Tomcat 8 has started
and it's synchronized,
so this looks really good.
So our Tomcat server has started,
and we're able to launch it
from the Eclipse application.
So this looks good.
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.
Alright, 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.