Oracle Weblogic 12c Student Lab Guide Part-1
1
Lab: 1 Installing Weblogic Server 12c Lab: 2 Creating a Domain Lab: 3 Adding and starting a Managed Server Lab: 4 Deploying Applications on Weblogic Server Lab: 5 Configuring Messaging Service Lab: 6 Configuring JDBC Data Source in Weblogic Server Lab: 7 Building cluster in Weblogic 12c Lab: 8 Building a Dynamic Cluster using Weblogic 12c
2
LAB: 1 Installing Weblogic Server 12c
3
Overview: Appropriate version of JDK is installed in your cloud PC assigned to you. For your local machine install JDK depending on your Operating system. You also have Weblogic generic jar downloaded and distributed .Use following steps to complete the installation. Note: Take instructors help if any resource is missing. Step: 1 Launch the Installer by using below command on your command prompt. java -jar net_wlsversion_generic.jar Step: 2 Specify Inventory Directory and select Operating System Group as admin.
Step: 3 On the Welcome page you get options to manage your Installation. Navigate through Tabs to see various options and get a customized Installation. 4
Step: 4 Select Skip Auto Updates.
Step: 5 Specify Oracle Home Directory .For now lets keep default.
5
Step: 6 on next page we get an opportunity to customize installation. Select Weblogic Server for this Lab. A summary of components are displayed below.
6
Save Response File for further usage in installation.
7
View carefully the progress of installation.
Click on view log button to view the log (installation log)
8
Once you get installation successful message in message box. Check out the summary.
9
Since in Next steps Quick start configuration is selected it will start domain configuration wizard it configures a new domain where all resources are configured to setup Architecture to host applications.
Specify username and password ensure password is correctly specified with one caps, special character and minimum length of 8.Also if this is your first domain retain the default ports.(7001 and 7002)
10
On clicking on create it creates a domain with wl_server name and a sample domain medrec. Click on next to see the summary page which specifies the url of admin console.
11
Select start Domain from the checkbox to start the domain.
12
Open browser and specify URL http://ip:7001/console to view the welcome page. Click on start the admin console to view the management console of the domain.
Once clicked admin server is deployed with console application used by administrators.
13
After Deployment you get login page specify credentials you specified during installation.
After successful Authentication you will be presented with webpage offering configuration of various services. This Ends Lab01
14
LAB:02 Creating a Domain
15
Once Weblogic product files are installed it gives you a directory structure with common resources domain can also be created by one of the binaries.(config.sh or config.cmd for windows).Navigate to commons/bin and launch config.sh. It starts Configuration Wizard. If you don’t get launch consult your instructor.
Once Config wizard is loaded you get option to create a new domain or update an existing domain for now select create a new Domain.
16
Next screen provides you templates to be selected we can create our own domain template but as of now we will select All Template and Basic Server Domain template from the list.
Rest of the steps is similar now as projected in Lab 01. Specify user and password and click next.
After Specifying user and password click next and select mode (production).Also specify JDK that you want this domain to use.
17
Next select AdminServer for now NodeManager and Managed Server configuration are skipped for latter session.
18
In next screen specify port, which is not used.
19
Finalize the step and your domain is ready with default name (base_domain). Check the folder user_projects folder it has all domains folder with bin folder that contains all startup and stop utilities.
Select Create to start creating and configuring your domain.
20
Click Next to end the configuration and use Admin URL to test.
21
Also see the Server startup in console once you see it running you it indicates Admin Server is ready to accept the Admin request.
Specify the URL and you will be prompted with login page.
22
LAB:03 Adding and starting a Managed Server
23
Overview: A Weblogic Domain contains exactly one Administration Server and zero or more than zero managed Servers. All applications are preferably deployed on managed Server. This decouples Administrative Task and Application Task Processing. This Lab demonstrates approach of creating managed server and managing it. Login in console specifying username and password.
Since you are in production domain you need to control configuration changes unlike development mode where it is automated.
Click Lock and Edit in Change Center.
24
Navigate to Environment under base domain and expand the tree. You will find servers link.
Click on Servers and you find configuration tab. Click new.
25
In next Step specify the server name and port.Ensure port is unique.Select server as standalone and click next.
Change the port to 7014.
Next Screen is confirmation screen for verification to ensure all is well.
26
Click Finish and verify entries. You find server-0 added with state unknown and health not reachable. We need to Configure Machine and also need to start node Manager to control the startup/shutdown from admin console.
For now Activate changes.
Lets Configure machine and place the managed server on the machine. Under Environment select Machine and Follow Steps to configure machine.
27
While making Configurable Changes don’t forget to click Lock and Edit.
Click new and specify the entries machine name and OS type (Please Select others)
28
Machine need to be bound to Node Manager when next is clicked you see Node manager Properties page keep defaults.
See the port and listen Address and make note of it.
Click on Activate Changes and we are done with machine Creation.
29
Next Step is to Associate managed Server with the machine so that it is bound to node manager who controls requests to and from admin server.Move back to servers
Click Lock and Edit.
30
In configuration tab specify and select machine where you want to place this managed server.In our case it is machine-0.
Select machine-0
Activate changes by clicking on activate changes.
31
Go to servers and see machine is set. Next is to go and start Node Manager to enable communication.
Move to bin directory of domain and launch Node Manager by using startNodeManager.sh
32
In case of problems set NativeVersionEnabled to false in nodemanager.properties file.
After making changes we would have to start nodemanager. Check out the port 5556 and status.
After nodemanager successfully starts click on lock and edit to start the server.
33
Go to servers click on server link and switch to control.
Select the server and click on start. Observe the status to change in status of the server after clicking on yes in below diagram.
Monitor the change in state it should change to running indicating its ready to serve clients requests.
34
35
LAB:04 Deploying Application on Weblogic Server
36
37
38
39
40
41
42
43
44
45
46
LAB:05 Configuring Messaging Service
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Lab:06 Configuring JDBC Data Source in Weblogic Server
62
63
64
65
66
67
68
69
70
71
72
73
Lab:07 Building cluster in Weblogic 12c
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
Lab:08 Building a Dynamic Cluster using Weblogic 12c
92
93
94
95
96
97
98