Total Pageviews

Thursday, February 18, 2016

weblogic patch information using command line

checking patch version information

./bsu.sh -prod_dir=<weblogic_home> -status=applied -verbose -view

For example:
./bsu.sh -prod_dir=/opt/oracle/wlserver_10.3 -status=applied -verbose -view



Tuesday, January 26, 2016

weblogic difference between web.xml and weblogic.xml


these both files are  deployment descriptors for web applications and they exists in WEB-INF
these files define run-time environment, mapping of URL to servelets and JSPs, applications default welcome and error pages, setting up context root for the application, Specifying Java EE security constraints and defining work managers for applications


web.xml

it have following:
Servelets registration and initililization parameters.
JSP registration and tag libraries.
Welcome file lists and error pages.
Security constraints and roles.
EJB references.
Resources.


weblogic.xml
This file have information specific to weblogic.

Application root context path.
Security role mappings.
Session settings and Clustring.
References to shared libraries and server resources(data sources,EJBs and others).
Virtual directories, work managers and threading.
JSP compiler option.

4 ways of deploying applications at weblogic

you can use 4 ways of deploying application to weblogic

1. using Admin console
2. using weblogic.WLST
3. using weblogic.Developer
4. autodeploy

Monday, January 25, 2016

weblogic configuring on-demand application deployment


in weblogic you can deploy some application when user is requesting for it. while using this option specified all the application on that domain will be deployed when Admin server started. using this option will consume more resources and weblogic will take longer to start but all the application will be deployed once it is started

this property called "Enable on-demand deployment of internal application". this option is under domain --> General. by default it is "checked" you can "encheck" it and save it in order to enable on-demand application deployment.

you can also set this property thru wlst command(if you need to know how to run wlst command read oracle blog)

here at some short steps

java weblogic.WLST

connect()
edit()
startEdit()
go to domain --> serverConfiguration and run below this command
cmo.setInternalAppsDeployOnDemandEnabled(false)

Weblogic Autodeploy application configuration


this process is used for developer in order to save time it takes to deploy application during development process. once you put the application in Autodeploy directory it will automatically deploy after 3 seconds.

1. Server should not be in production mode. you can check after clicking on domain name and going into Configuration--> General (check your servers configuration thru console, to change this value go to config.xml and search for "production and make this value as false )

2. create folder with same name as application under autodeploy directory.

3. application should be in floated formate(unzipped).

4. create AUTODEPLOY (it can be empity file) file under WEB-INF directory.

After creating AUTODEPLOY file weblogic will automatically pickup after 3 seconds. if you made changes at your application just touch AUTODEPLOY file again to refresh timestemp. it will automatically deploy this application.



Monday, December 21, 2015

OAM 11gR2 changing OAM and Webgate from open to Simple Mode


changing OAM from Open to Simple Mode

1.  login to OAMCONSOLE
http://orasystemsusa.com:7001/oamconsole
click on Server Instances and select  oam_server1
you will find Mode = OPN change it to Mode = Simple

2. select SSO Agents and click on the Agent you are using i have  OAM11GAgent
     change  Security from  OPEN to Simple

3. you will get the below message
Artifacts are generated in following location : <FM_HOME>/user_projects/domains/IAMDomain/output/OAM11GAgent

4. go to the location where Artifices are generated
cd <FM_HOME>/user_projects/domains/IAMDomain/output/OAM11GAgent

5. copy these two files(aaa_cert.pem aaa_key.pem) to under Webgate directory as mentioned below
cp -r aaa_cert.pem aaa_key.pem <FM_HOME>/Oracle_WT1/instances/ohs_Webgate/config/OHS/ohs2_EM/webgate/config/simple/

6. copy 3 files  cwallet.sso ObAccessClient.xml password.xml under Webgate config directory as mentioned below

cp -r cwallet.sso ObAccessClient.xml password.xml <FM_HOME>/Oracle_WT1/instances/ohs_Webgate/config/OHS/ohs2_EM/webgate/config/

7. restart the webserver having webgate

OAM 11g R2 OAM Test Tool location and how to run it


in order to test the resource we use OAM Access Management Test Tool. interface is very close to what Siteminder R12 had

here is how to run the tester tool

cd <FM_HOME>/Oracle_IAM1/oam/server/tester

export JAVA_HOME=/app/jdk1.6.0_35/
export PATH=$JAVA_HOME/bin:$PATH

fun following command

java -jar oamtest.jar

after providing required resource information you can test how the request is flowing and what is the outcome of it.