Starting an OC4J Instance Without Password Fails with "Error initializing server: OC4J administrator's password is empty"

(Doc ID 601684.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Containers for J2EE - Version to [Release AS10gR3]
Information in this document applies to any platform.
***Checked for relevance on 15-Dec-2012***


When creating an OC4J instance with the command line tool createInstance it will prompt for a password therefore enabling the OC4J container to start successfully.

$ORACLE_HOME/bin/createInstance -instanceName <oc4j_instance>

It is possible to create an OC4J without being prompted for a password by using the -defaultAdminPass syntax to the createInstance command, as follows:

$ORACLE_HOME/bin/createinstance -instanceName <oc4j_instance> -defaultAdminPass

However, when starting the OC4J instance with the command below it will fail when trying start the instance:

$ORACLE_HOME/opmn/bin/opmnctl startproc process-type=<oc4j_instance>

In file $ORACLE_HOME/opmn/logs/default_group~<oc4j_instance~default_group~1.log it will show errors:

08/08/11 11:03:43 Start process
08/08/11 11:03:46 Set OC4J administrator's password (password text will not be displayed as it is entered)
08/08/11 11:03:46 Error initializing server: OC4J administrator's password is empty.
Fatal error: server exiting


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms