Tuesday, October 30, 2012

OAM 11G R2 Lab 3: Webgate Instance Creation and Registration (OHS server)

Webgate Instance Creation:

1) Start Admin server and OAM Managed server.

2) Go to following path: D:\Oracle\Middleware\Oracle_OAMWebGate1\webgate\ohs\tools\deployWebGate


3)  Webgate Instance creation help.

deployWebGateInstance.bat --help


"Usage  : deployWebGateInstance -w -oh "

4) Run the following command: deployWebGateInstance.bat -w D:\Oracle\Middleware\Oracle_WT1\instances\instance1\config\OHS\ohs1 -oh D:\Oracle\Middleware\Oracle_OAMWebGate1



OUTPUT: (Which copies files to OAM instance)

Copying files
D:\Oracle\Middleware\Oracle_OAMWebGate1\webgate\ohs\config\oblog_config_wg.xml
1 File(s) copied
D:\Oracle\Middleware\Oracle_OAMWebGate1\webgate\ohs\tools\openssl\simpleCA\cacert.pem
1 File(s) copied
D:\Oracle\Middleware\Oracle_OAMWebGate1\webgate\ohs\tools\openssl\simpleCA\cakey.pem
1 File(s) copied

5) Webgate Registration:
To edit httpd config file we have tool in Webgate installation:
 D:\Oracle\Middleware\Oracle_OAMWebGate1\webgate\ohs\tools\EditHttpConf

6) To get help for EditHttpConf use following command:

EditHttpConf.exe --help

Output:

usage: EditHttpConf -w [-oh ] [-o
tput_file> ]


7) To generate new webgate.conf file run above command in following manner:


D:\Oracle\Middleware\Oracle_OAMWebGate1\webgate\ohs\tools\EditHttpConf>EditHttpConf.exe -w D:\Oracle\Middleware\Oracle_WT1\instances\instance1\config\OHS\ohs1 -oh D:\Oracle\Middleware\Oracle_OAMWebGate1 -o webgate.conf

Output:
The web server configuration file was successfully updated

D:\Oracle\Middleware\Oracle_WT1\instances\instance1\config\OHS\ohs1/httpd.conf h
as been backed up as D:\Oracle\Middleware\Oracle_WT1\instances\instance1\config\
OHS\ohs1/httpd.conf.ORIG

which creates back up for already existing httpd.conf file and creates new httpd file with configuration in webtier instance.

8) Modify take back up of OAM11GRequest.xml file and modify as shown in below image with required URL.



9) Run:

D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg>.\bin\oamreg.bat inband input\O
AM11GRequest.xml


Output:
OAM_REG_HOME=D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..
CLASSPATH=D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\rreg.jar;D
:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib;D:\Oracle\Middleware\
Oracle_IDM1\oam\server\rreg\bin\..\lib\RequestResponse.jar;D:\Oracle\Middleware\
Oracle_IDM1\oam\server\rreg\bin\..\lib\commons-codec-1.3.jar;D:\Oracle\Middlewar
e\Oracle_IDM1\oam\server\rreg\bin\..\lib\commons-httpclient-3.1.jar;D:\Oracle\Mi
ddleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\commons-logging-1.1.1.jar;D:\Ora
cle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\ojmisc.jar;D:\Oracle\Middl
eware\Oracle_IDM1\oam\server\rreg\bin\..\lib\jps-api.jar;D:\Oracle\Middleware\Or
acle_IDM1\oam\server\rreg\bin\..\lib\jps-internal.jar;D:\Oracle\Middleware\Oracl
e_IDM1\oam\server\rreg\bin\..\lib\jps-common.jar;D:\Oracle\Middleware\Oracle_IDM
1\oam\server\rreg\bin\..\lib\identitystore.jar;D:\Oracle\Middleware\Oracle_IDM1\
oam\server\rreg\bin\..\lib\identityutils.jar;D:\Oracle\Middleware\Oracle_IDM1\oa
m\server\rreg\bin\..\lib\ldapjclnt11.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\se
rver\rreg\bin\..\lib\dms.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bi
n\..\lib\fmw_audit.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\l
ib\ojdl.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\oraclepk
i.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\osdt_cert.jar;
D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\osdt_core.jar;D:\Ora
cle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\osdt_jce.jar;D:\Oracle\Mid
dleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\osdt_saml.jar;D:\Oracle\Middlewar
e\Oracle_IDM1\oam\server\rreg\bin\..\lib\osdt_xmlsec.jar;D:\Oracle\Middleware\Or
acle_IDM1\oam\server\rreg\bin\..\lib\xmlparserv2.jar;D:\Oracle\Middleware\Oracle
_IDM1\oam\server\rreg\bin\..\lib\jps-unsupported-api.jar;D:\Oracle\Middleware\Or
acle_IDM1\oam\server\rreg\bin\..\lib\nap-api.jar;D:\Oracle\Middleware\Oracle_IDM
1\oam\server\rreg\bin\..\lib\utilities.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\
server\rreg\bin\..\lib\jps-ee.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rr
eg\bin\..\lib\rreg.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\l
ib;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\RequestResponse.j
ar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\commons-codec-1.3
.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\commons-httpcli
ent-3.1.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\commons-
logging-1.1.1.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\oj
misc.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\jps-api.jar
;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\jps-internal.jar;D:
\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\jps-common.jar;D:\Orac
le\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\identitystore.jar;D:\Oracle
\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\identityutils.jar;D:\Oracle\M
iddleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\ldapjclnt11.jar;D:\Oracle\Middl
eware\Oracle_IDM1\oam\server\rreg\bin\..\lib\dms.jar;D:\Oracle\Middleware\Oracle
_IDM1\oam\server\rreg\bin\..\lib\fmw_audit.jar;D:\Oracle\Middleware\Oracle_IDM1\
oam\server\rreg\bin\..\lib\ojdl.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\
rreg\bin\..\lib\oraclepki.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\b
in\..\lib\osdt_cert.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\
lib\osdt_core.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\os
dt_jce.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\osdt_saml
.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\osdt_xmlsec.jar
;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\xmlparserv2.jar;D:\
Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\jps-unsupported-api.jar
;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\nap-api.jar;D:\Orac
le\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\utilities.jar;D:\Oracle\Mid
dleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\jps-ee.jar;D:\Oracle\Middleware\O
racle_IDM1\oam\server\rreg\bin\..\lib\rreg.jar;D:\Oracle\Middleware\Oracle_IDM1\
oam\server\rreg\bin\..\lib;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\
..\lib\RequestResponse.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\
..\lib\commons-codec-1.3.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bi
n\..\lib\commons-httpclient-3.1.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\
rreg\bin\..\lib\commons-logging-1.1.1.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\s
erver\rreg\bin\..\lib\ojmisc.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rre
g\bin\..\lib\jps-api.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..
\lib\jps-internal.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\li
b\jps-common.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\ide
ntitystore.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\ident
ityutils.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\ldapjcl
nt11.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\dms.jar;D:\
Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\fmw_audit.jar;D:\Oracle
\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\ojdl.jar;D:\Oracle\Middleware
\Oracle_IDM1\oam\server\rreg\bin\..\lib\oraclepki.jar;D:\Oracle\Middleware\Oracl
e_IDM1\oam\server\rreg\bin\..\lib\osdt_cert.jar;D:\Oracle\Middleware\Oracle_IDM1
\oam\server\rreg\bin\..\lib\osdt_core.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\s
erver\rreg\bin\..\lib\osdt_jce.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\r
reg\bin\..\lib\osdt_saml.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bi
n\..\lib\osdt_xmlsec.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..
\lib\xmlparserv2.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib
\jps-unsupported-api.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..
\lib\nap-api.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\uti
lities.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\jps-ee.ja
r;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\rreg.jar;D:\Oracle
\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib;D:\Oracle\Middleware\Oracle_I
DM1\oam\server\rreg\bin\..\lib\RequestResponse.jar;D:\Oracle\Middleware\Oracle_I
DM1\oam\server\rreg\bin\..\lib\commons-codec-1.3.jar;D:\Oracle\Middleware\Oracle
_IDM1\oam\server\rreg\bin\..\lib\commons-httpclient-3.1.jar;D:\Oracle\Middleware
\Oracle_IDM1\oam\server\rreg\bin\..\lib\commons-logging-1.1.1.jar;D:\Oracle\Midd
leware\Oracle_IDM1\oam\server\rreg\bin\..\lib\ojmisc.jar;D:\Oracle\Middleware\Or
acle_IDM1\oam\server\rreg\bin\..\lib\jps-api.jar;D:\Oracle\Middleware\Oracle_IDM
1\oam\server\rreg\bin\..\lib\jps-internal.jar;D:\Oracle\Middleware\Oracle_IDM1\o
am\server\rreg\bin\..\lib\jps-common.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\se
rver\rreg\bin\..\lib\identitystore.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\serv
er\rreg\bin\..\lib\identityutils.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server
\rreg\bin\..\lib\ldapjclnt11.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rre
g\bin\..\lib\dms.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib
\fmw_audit.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\ojdl.
jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\oraclepki.jar;D:
\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\osdt_cert.jar;D:\Oracl
e\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\lib\osdt_core.jar;D:\Oracle\Midd
leware\Oracle_IDM1\oam\server\rreg\bin\..\lib\osdt_jce.jar;D:\Oracle\Middleware\
Oracle_IDM1\oam\server\rreg\bin\..\lib\osdt_saml.jar;D:\Oracle\Middleware\Oracle
_IDM1\oam\server\rreg\bin\..\lib\osdt_xmlsec.jar;D:\Oracle\Middleware\Oracle_IDM
1\oam\server\rreg\bin\..\lib\xmlparserv2.jar;D:\Oracle\Middleware\Oracle_IDM1\oa
m\server\rreg\bin\..\lib\jps-unsupported-api.jar;D:\Oracle\Middleware\Oracle_IDM
1\oam\server\rreg\bin\..\lib\nap-api.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\se
rver\rreg\bin\..\lib\utilities.jar;D:\Oracle\Middleware\Oracle_IDM1\oam\server\r
reg\bin\..\lib\jps-ee.jar;
------------------------------------------------
Welcome to OAM Remote Registration Tool!
Parameters passed to the registration tool are:
Mode: inband
Filename: D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\bin\..\input\OAM11GRe
quest.xml
Enter admin username:weblogic
Username: weblogic
Enter admin password:
Do you want to enter a Webgate password?(y/n):
n
Do you want to import an URIs file?(y/n):
n

----------------------------------------
Request summary:
OAM11G Agent Name:RREG_OAM11G
Base URL:http://localhost:7777
URL String:RREG_HostId11G
Registering in Mode:inband
Your registration request is being sent to the Admin server at: http://localhost
:7001
----------------------------------------



Oct 30, 2012 7:15:56 PM oracle.security.jps.util.JpsUtil disableAudit
INFO: JpsUtil: isAuditDisabled set to true
Inband registration process completed successfully! Output artifacts are created
 in the output folder.


10) copy cwallet.sso, ObAccessClient.xml from D:\Oracle\Middleware\Oracle_IDM1\oam\server\rreg\output\RREG_OAM11G to D:\Oracle\Middleware\Oracle_WT1\instances\instance1\config\OHS\ohs1\webgate\config



11) Restart OHS instances.

12) Check if domain got created or not in OAM console.

13) check the url which you have protected: (localhost:7777)

Thanks!!!

5 comments:

  1. Hi chinni,

    I got little bit problem.

    After doing this lab I am getting problem with OIM identity self service in "User" if I click on "Create" I am getting fallowing error.

    "MDS-00010: DuplicateRefException. In document /oracle/iam/ui/runtime/form/view/pages/userCreateForm.jsff there are multiple elements with the same ID _xg_pfl0.

    ADF_FACES-60097:For more information, please see the server's error log for an entry beginning with: ADF_FACES-60096:Server Exception during PPR, #1"


    I tried even by shutting the servers but problem still exists. I want to see the LOG file. But problem is with path. Don't know where it is exactly located.

    ReplyDelete
  2. Hi Chinna,


    Can you please provide exact change you have done. And also the above lab is for OAM not OIM so .


    Thanks

    ReplyDelete
  3. Hi chinni,
    Tnx for replying.
    OAM and OIM are in single server. I followed the same changes what you have given in the above lab.
    I want to know where will be the LOg file path for this error.

    ReplyDelete
  4. Are you getting this error when you are trying to search users? It says there are multiple users with same ID thats throwing problem I guess.

    Check the logs under:

    C:\Oracle\Middleware\user_projects\domains\base_domain\servers\oim_server1\logs

    ReplyDelete
  5. Hi Chinni,

    We have a requirement, SSO for all fusion applications (like em,b2b,bpm) using OAM 11g,

    what is the procedure for to do SSO all fusion applications single sign on using OAM 11g.

    how can approach this requirement ? any ideas please help me.

    i had executed up to lab 4, when log in to 7777 port, its only log in to OAM Console only, how can i do it for all fusion urls?

    Regards,
    satheesh

    ReplyDelete

Other Posts