This blog is targeting at automating the steps for native Weblogic installation of any OUAF product (CC&B, C2M, MDM etc.). These steps helps in saving time and reduces errors. WLST (Weblogic scripting) is used for automating the installation steps.
First step is to create all the necessary property and script files which we would be running. I have listed down each files and the file content for your reference. Just create all these files and keep in one directory for easy access. Location can be any directory.
As seen below I have created all these files and placed them in ‘C:\c2m\weblogic\wlst’ directory. Now these files can be run from any location. So you can place them anywhere.
Next step is to open a command prompt window with ‘Run as Administrator’ option.
Next navigate to following location where Weblogic is installed.
C:\c2m\weblogic\12.2.1.4.0\Oracle\Middleware\Oracle_Home\wlserver\server\bin
Run the command ‘setWLSEnv.cmd’ from this location. This sets the environment variables and classpath needed to run WLST.
As seen below the command has run successfully.
Now navigate to the directory where all scripts files were placed
cd C:\c2m\weblogic\wlst
Run the below command to create new domain in weblogic.
java weblogic.WLST -loadProperties domain.properties createdomain.py
I had set the domain name to ‘c2m2900g_domain’ in domain.properties file.
Below is screenshot of domain directory before executing command.
Below is screenshot of domain directory after executing command. As seen below ‘c2m2900g_domain’ domain folder has got created.
Open the domain folder. As seen below, it has been properly created.
Next navigate to the bin folder under the newly created domain folder.
Open the file ‘startWeblogic.cmd’
Add below line to the file
set JAVA_OPTIONS=%JAVA_OPTIONS% -Dweblogic.deploy.MaxPostSize="2000000000"
Refer below screenshot for location where the line is to be added in the file.
Next create and add file ‘setUserOverrides.cmd ‘ to ‘C:\c2m\weblogic\12.2.1.4.0\Oracle\Middleware\Oracle_Home\user_projects\domains\c2m2900g_domain\bin’ location
The sample file for ‘setUserOverrides.cmd’ is available in following location “C:\c2m\ouaf\C2M2800\tools\examples\bin”
Below highlighted values should be updated in file
SERVER_NAME condition below should be updated the OUAF_SERVER_NAME value given earlier in domain.properties.
Also SPLEBASE should be set to the splbase location of the OUAF application.
Next start the Admin server of the domain
Navigate back to domain folder, right click on startWeblogic.cmd and select ‘Run as administrator’
As seen the admin server is starting. Wait for it start completely
As seen below admin server has started up completely
Next go back to the earlier command prompt where we were running wlst scripts.
Run below command
java weblogic.WLST -loadProperties domain.properties createouafserver.py
As seen below the command has executed successfully. This command creates the ouaf managed server on the domain along with other updates to the domain.
Next Admin server needs to be restarted. So close the admin server cmd window. And start the server again. This is needed as password parameters were changed in earlier script and server restart is needed before users are created.
Click on close and stop admin server.
As seen below admin server is restarted.
Now go back to the command prompt where wlst scripts were run and run the next script for creating ouaf users
java weblogic.WLST -loadProperties domain.properties createouafusers.py
This script creates users, groups and assigns users to groups
As seen below the script executed successfully
Next run the below command to deploy the EAR application files for SPLService.ear, SPLWeb.ear and ohelp.ear
java weblogic.WLST -loadProperties domain.properties deployouafapps.py
As seen below the script executed successfully
Next go to your browser and connect to the admin server.
Use the admin url and port specified in domain.properties earlier.
Login with the ADMIN user and Admin password provided in domain.properties earlier
Once you have logged in, navigate to Servers and verify that the ouaf managed server name given in domain.properties is created. As seen below ‘c2m2900server’ is created.
Verify that the ports of server are correct by opening the server config -> General
Verify that the OUAF ports are same as given in domain.properties file.
Next navigate to Security Realms -> myrealm -> Users and Groups
Verify that the users system and SYSUSER have been created.
Verify that the group cisusers is created
Navigate to deployments tab. Verify that SPLService, SPLWeb and ohelp are deployed on the server.
Next navigate to the domain bin location and run startNodeManager.cmd with ‘Run as Administrator’ option.
As seen below the nodemanager has started up
Next go to the servers screen -> Control. Select the ouaf managed server ‘c2m2900server’ and click on Start button.
As seen below start request has been sent to nodemanager
As seen below the managed server has started successfully.
Next open your browser and enter the application url.
https://localhost:6501/ouaf/cis.jsp
As seen below the C2M server is up and running properly.
Finally providing the main steps again so that you don’t get lost in above screenshots.
Thus you can automate the steps for native installation of C2M on weblogic server using such scripts. This reduces your time by a big amount and also reduces errors. Try it out, post comments on the blog if you face any issue or have any queries.