The command asadmin start-domain fails with one of the following errors:
When issued with no arguments, the command asadmin start-domain fails with the error:
CLI143 There is more than one domain in C:\\Sun\\AppServer\\domains. Please use operand to specify the domain. CLI156 Could not start the domain null.
This error occurs when there is more than one domain in the domains directory, none of them is named domain1, and no domain is specified with the start-domain command.
Specify the domain when issuing the start-domain command:
asadmin start-domain domain1
This message comes from Enterprise Server. The full message looks like either:
Could not start the domain. There are no domains.
Could not start the domain. No default domain. Need to enter a domain.
This error occurs when Enterprise Server 8 is installed on the same system, and its asadmin command (at /usr/sbin) is found on the PATH before the asadmin command for Enterprise Server at install_dir/bin. The situation is especially likely to occur on Solaris/Linux systems when . is not specified as part of the PATH variable. Without . in the PATH, the asadmin command in /usr/sbin is found first, even when the current directory is install_dir/bin.
Make sure install_dir/bin is in the PATH ahead of /usr/sbin, or that . is in the PATH ahead of /usr/sbin if you access asadmin by changing directories to install_dir/bin. Alternatively, if you do change to install_dir/bin to run asadmin, be sure to include./ in the command name; for example:
cd install_dir/bin ./asadmin