|bea.com | products | dev2dev | support | askBEA|
|e-docs > WebLogic Server > WebLogic Server Frequently Asked Questions > FAQs: Administration and Configuration|
WebLogic Server Frequently Asked Questions
FAQs: Administration and Configuration
Q. How do I bypass the prompt for username and password when I start a server?
A. You can create and use a boot identify file, which contains your username and password in an encrypted format.
If a server's root directory contains a valid boot identity file named boot.properties, it uses this file by default. If you want to specify a different file (or if you do not want to store boot identity files in a server's root directory), you can specify a file name in the server's startup command. If a server is unable to access its boot identity file, it displays the standard username and password prompt in its command shell and writes a message to the log file.
For more information, see "Bypassing the Interactive Prompt" in Administration Console Online Help.
Q. Can I start a Managed Server if the Administration Server is unavailable?
A. By default, if a Managed Server is unable to connect to the specified Administration Server during startup, it can retrieve its configuration by reading a configuration file and other files directly. You cannot change the server's configuration until the Administration Server is available. A Managed Server that starts in this way is running in Managed Server Independence mode. For more information, refer to "Starting a Managed Server When the Administration Server Is Not Accessible" in Configuring and Managing WebLogic Server.
Q. How can I start a server with a clean (default) configuration?
A. If you run into problems in your environments and want to boot a server with a clean (default) configuration, you can start a WebLogic Server in such a way that it generates a new config.xml file. This new config.xml file contains only the default settings, unless you use command-line arguments to override the defaults. For more information, see "Default Behavior" in WebLogic Server Command Reference.
Q. What is the easiest way to set the classpath?
WebLogic Server installs the following script that you can use to set the classpath that a server requires:
WL_HOME\server\bin\setWLSEnv.cmd (on Windows)
WL_HOME/server/bin/setWLSEnv.sh (on UNIX)
where WL_HOME is the directory in which you installed WebLogic Server. For more information, see to "Setting the Classpath" in WebLogic Server Command Reference.
Q. What are the safeguards for modifying config.xml?
A. BEA recommends that you use the WebLogic Server Administration Console to edit config.xml. If you need to edit the config.xml file directly, we recommend that:
Because there is no validation or value checking when you edit config.xml manually, type-checking occurs when you load the configuration file for the first time, that is, when you restart the Administration Server. At that point, any invalid XML or attribute value is detected and the domain fails to boot.
For more information on modifying config.xml and a reference of Mbeans and attributes used config.xml, see WebLogic Server Configuration Reference.
Q. How do I edit config.xml?
A. The persistent configuration for a WebLogic Server domain is stored in an XML configuration file (config.xml). You can modify this file in the following ways: