﻿WEBVTT

1
00:00:01.838 --> 00:00:03.153
<v Narrator>Hey, welcome back.</v>

2
00:00:03.153 --> 00:00:05.029
In this video, we're going to connect

3
00:00:05.029 --> 00:00:06.612
Eclipse and Tomcat.

4
00:00:08.334 --> 00:00:10.037 line:15% 
So far in our video series,

5
00:00:10.037 --> 00:00:11.722 line:15% 
We've installed Tomcat

6
00:00:11.722 --> 00:00:12.795 line:15% 
and we've installed Eclipse,

7
00:00:12.795 --> 00:00:14.817 line:15% 
and these are 2 separate applications.

8
00:00:14.817 --> 00:00:16.175 line:15% 
But what we want to do now is actually

9
00:00:16.175 --> 00:00:17.781 line:15% 
connect them together,

10
00:00:17.781 --> 00:00:19.546 line:15% 
so the main benefit is that

11
00:00:19.546 --> 00:00:21.278 line:15% 
once we have connected Eclipse and Tomcat,

12
00:00:21.278 --> 00:00:24.454 line:15% 
then we can start Tomcat from Eclipse.

13
00:00:24.454 --> 00:00:25.563 line:15% 
And then also this will make it

14
00:00:25.563 --> 00:00:28.137 line:15% 
very easy for us to deploy our applications

15
00:00:28.137 --> 00:00:29.771 line:15% 
directly to Tomcat.

16
00:00:29.771 --> 00:00:30.967 line:15% 
We won't have to manually start

17
00:00:30.967 --> 00:00:32.281 line:15% 
or manually deploy;

18
00:00:32.281 --> 00:00:33.683 line:15% 
we can do all of this automatically

19
00:00:33.683 --> 00:00:36.100 line:15% 
within the Eclipse framework.

20
00:00:38.757 --> 00:00:39.666
Alright, so let's go ahead

21
00:00:39.666 --> 00:00:40.942
and move in to Eclipse.

22
00:00:40.942 --> 00:00:42.823
And what we're going to do here

23
00:00:42.823 --> 00:00:44.735
is we're going to connect Eclipse to Tomcat.

24
00:00:44.735 --> 00:00:46.181
So down in our bottom center,

25
00:00:46.181 --> 00:00:49.272
we have a tab called Servers.

26
00:00:49.272 --> 00:00:51.578
Right now we don't have any servers installed.

27
00:00:51.578 --> 00:00:53.224
We're going to follow the directions here

28
00:00:53.224 --> 00:00:54.469
and create a new server.

29
00:00:54.469 --> 00:00:56.238
So we'll go ahead and click that link

30
00:00:56.238 --> 00:00:58.155
to create a new server.

31
00:01:00.274 --> 00:01:02.660
Alright, so this will bring us to a page.

32
00:01:02.660 --> 00:01:05.144
Eclipse supports a lot of different servers,

33
00:01:05.144 --> 00:01:06.244
but what we're going to do here is

34
00:01:06.244 --> 00:01:08.987
make use of the Apache Tomcat server.

35
00:01:08.987 --> 00:01:10.945
So expand the folder here for Apache.

36
00:01:10.945 --> 00:01:12.843
Scroll down, and we'll choose our version.

37
00:01:12.843 --> 00:01:14.593
We're using Tomcat 8.

38
00:01:17.782 --> 00:01:20.132
And then we'll go ahead and click on Next.

39
00:01:20.132 --> 00:01:21.971
Now we need to tell Eclipse

40
00:01:21.971 --> 00:01:23.593
where Tomcat is installed.

41
00:01:23.593 --> 00:01:25.199
So wherever you have Tomcat installed

42
00:01:25.199 --> 00:01:26.189
on your directory,

43
00:01:26.189 --> 00:01:29.148
that's the directory information you should give.

44
00:01:29.148 --> 00:01:30.056
So here I'll just kind of

45
00:01:30.056 --> 00:01:31.747
browse my file system,

46
00:01:31.747 --> 00:01:34.755
and I know in this class, JSF for Beginners,

47
00:01:34.755 --> 00:01:35.709
Apache Tomcat 8,

48
00:01:35.709 --> 00:01:37.279
that's the directory that we've installed

49
00:01:37.279 --> 00:01:39.872
Tomcat for this training class.

50
00:01:39.872 --> 00:01:41.189
You may have it installed in

51
00:01:41.189 --> 00:01:42.264
a different directory.

52
00:01:42.264 --> 00:01:44.200
Simply choose that directory accordingly.

53
00:01:44.200 --> 00:01:45.145
But for my example,

54
00:01:45.145 --> 00:01:48.562
I have JSF for Beginners Apache Tomcat 8.

55
00:01:50.539 --> 00:01:51.983
And then once you have that directory set up,

56
00:01:51.983 --> 00:01:53.840
then you can go ahead and hit Finish,

57
00:01:53.840 --> 00:01:54.999
and this will go ahead and

58
00:01:54.999 --> 00:01:57.082
set up the configuration.

59
00:02:01.131 --> 00:02:02.632
Alright, so right now this server

60
00:02:02.632 --> 00:02:04.002
is actually stopped,

61
00:02:04.002 --> 00:02:05.539
and we can actually start the server

62
00:02:05.539 --> 00:02:07.403
by just making use of a right click.

63
00:02:07.403 --> 00:02:09.626
So I can just right click on this item here,

64
00:02:09.626 --> 00:02:12.176
and I can say Start Server.

65
00:02:12.176 --> 00:02:14.009
So right click, Start.

66
00:02:18.609 --> 00:02:20.368
And this will actually start up the server.

67
00:02:20.368 --> 00:02:21.609
We'll see a lot of information

68
00:02:21.609 --> 00:02:24.859
on the Console window on the far right,

69
00:02:25.875 --> 00:02:28.713
and eventually at the end it will say

70
00:02:28.713 --> 00:02:31.303
Server Start-Up in X number of milliseconds.

71
00:02:31.303 --> 00:02:32.227
So we know that our server

72
00:02:32.227 --> 00:02:33.735
has started and running,

73
00:02:33.735 --> 00:02:34.926
and we can also verify this by

74
00:02:34.926 --> 00:02:36.082
looking at the Servers tab.

75
00:02:36.082 --> 00:02:38.649
So it says that the Tomcat 8 has started

76
00:02:38.649 --> 00:02:39.759
and it's synchronized,

77
00:02:39.759 --> 00:02:40.790
so this looks really good.

78
00:02:40.790 --> 00:02:42.145
So our Tomcat server has started,

79
00:02:42.145 --> 00:02:43.221
and we're able to launch it

80
00:02:43.221 --> 00:02:45.863
from the Eclipse application.

81
00:02:45.863 --> 00:02:46.696
So this looks good.

82
00:02:46.696 --> 00:02:47.761
Our next video, I'll actually show you

83
00:02:47.761 --> 00:02:49.481
how to deploy a JSF application

84
00:02:49.481 --> 00:02:50.922
on the Tomcat server.

85
00:02:50.922 --> 00:02:52.317
But the main focus of this video

86
00:02:52.317 --> 00:02:55.400
is just starting Tomcat from Eclipse.

87
00:02:58.292 --> 00:03:00.059
Alright, so this wraps up the video.

88
00:03:00.059 --> 00:03:01.249
In this video, I showed you

89
00:03:01.249 --> 00:03:03.856
how to connect Eclipse and Tomcat together,

90
00:03:03.856 --> 00:03:05.061
and so we found out how we can

91
00:03:05.061 --> 00:03:06.689
actually start the Tomcat server

92
00:03:06.689 --> 00:03:08.356
from within Eclipse.

