Weblogic Administration for Dummies
By muthuveerappan-Oracle on May 11, 2014
Oracle's Blogs
By muthuveerappan-Oracle on May 11, 2014
Oracle's Blogs
If you are looking for a handy guide on weblogic administration - this can help you.
Please Note:
Do it at your own risk.
How to find the weblogic console url
How to find t3 adminurl
How to find ports used by weblogic
How to reset / change my weblogic console username , password
How to start stop (manage) admin , managed servers
How to pass java arguments to weblogic, How to debug weblogic
How to use weblogic java commands via command line
How to start WLST (Weblogic Scripting tool)
To get WLST prompt / shell, follow as mentioned below
List of important weblogic configuration files
Change weblogic from production to development mode .,to autodeploy/refresh javaEE archives.
Please Note:
Do it at your own risk.
- These steps may not be supported by the respective products and/or companies, unless explicitly specified anywhere.
- All these are for personal use, (tinkering / hacks).
- Do take backup before venturing into any change.
- Stop server before any manual change in file system
- Start server after any manual change in file system
How to find the weblogic console url
- Go to weblogic installed directory
- Find setupinfo.txt
How to find t3 adminurl
- Login to web console a.k.a Admin Console
- Navigate to - AdminConsole->Server->Configuration->ListenPort
- Enable and note down the port for use
- The same info is available @ startscript.xml
How to find ports used by weblogic
- Find file oms/install/portlist.ini
How to reset / change my weblogic console username , password
- Find security/boot.properties
- Stop WLS
- modify boot.properties with plain text values
- Start WLS
How to start stop (manage) admin , managed servers
- Go to ./gc_inst/user_projects/domains/YourDomain/bin
- Look at the list of files *.sh/.cmd/.bat (Executing these files with proper parameters will help you)
- startWebLogic.sh, , stopWebLogic.sh, wlscontrol.sh, startManagedWebLogic.sh, stopManagedWebLogic.sh, wlsifconfig.sh, setDomainEnv.sh,
- Explore the below director too
- ./wlserver_10.3/common/bin/
How to pass java arguments to weblogic, How to debug weblogic
- Find startup.properties for your domain/nodemanager
- Stop WLS, modify as below, Start WLS.
- Under "Arguments=", you can append JVM arguments
- For debugging on port 4410
- -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=4410
- For enabling ADF logs
- -Djbo.debugoutput=adflogger -Djbo.adflogger.level=FINE
- For enabling / disabling production mode
- -Dweblogic.ProductionModeEnabled=true (or false)
How to use weblogic java commands via command line
- wlserver_10.3/server/bin/setWLSEnv.sh
- echo $PATH and $CLASSPATH
- If the above returns empty / blank, set them manually (as echoed by setWLSEnv.sh)
- Execute a sample command to check , if it works.,
- java weblogic.version
- java weblogic.Deployer
How to start WLST (Weblogic Scripting tool)
To get WLST prompt / shell, follow as mentioned below
- Execut java weblogic.WLST (refer above on how to set path, classpath for this execution) OR
- wlserver_10.3/common/bin/wlst.sh
List of important weblogic configuration files
- oms/install/setupinfo.txt
- oms/install/portlist.ini
- security/boot.properties
- adrs-instances.xml
- emoms.properties
- startscript.xml
- tokenValue.properties
- startup.properties
- osb*.url file (other .url files ?)
- *.prop file
Change weblogic from production to development mode .,to autodeploy/refresh javaEE archives.
- Find setDomainEnv.sh
- set PRODUCTION_MODE="false"
or
- Find config.xml
- Change
false
- On development mode a new 'autodeploy' folder is created, check the same.,
Find YourDomain\autodeploy
- copy your applications (folder - exploded war or archive - war/ear), under autodeploy folder
- staging-mode in config.xml should be 'stage' for autodeployment, weblogic should automatically take care of this.