Sunday, July 22, 2012

Weblogic 10.3: How to change from production mode to development mode in wls


In this post I am going to discuss changing Weblogic startup mode from development to production mode or from production to development mode.
Changing Weblogic 10.3 to production mode or development mode is very simple:
Just click into domain–> configuration tab–> and there is one checkbox to update it as production mode.
To change from production mode to development mode is only possible by manually changing the configuration file. The way to change is by editing setDomainEnv.cmd which resides in $root_domain/bin folder.
1 – Look for the line that sets the PRODUCTION_MODE script variable: set PRODUCTION_MODE
Add false to the value of the PRODUCTION_MODE variable to ensure the server starts in development mode:
set PRODUCTION_MODE=false
2 – Save your changes and exit the text editor.
3 – You also need to edit the $root_domain/config/config.xml file, there is an Entry for the production mode, remove the entry. This part is not clear into several sites.
<production-mode-enabled>false</production-mode-enabled>
4 – Clean cache removing files into $root_domain/Servers/AdminServer/ (delete all directories just keep security folder)
That’s it. Restart your Weblogic server and now you are in development mode.
I hope this helps,
Thiago Leoncio