I am using ant to create a domain in glassfish 4.0 build 89 then try to start the domain. Here is my domain creation part of the command options.
<exec executable="${glassfish.asadmin}" errorproperty="create.error" resultproperty="create.result" failonerror="true">
<arg value="--user=admin" />
<arg value="--passwordfile=../shared/admin_password.txt" />
<arg value="create-domain" />
<arg value="--savemasterpassword=true" />
<arg value="--savelogin=true" />
<arg value="--portbase=${port.base}" />
<arg value="--domaindir=${domains.dir}" />
<arg value="${domain.name}" />
</exec>
This creates the domain successfully and there is a file master-password in the domain's config directory. However, when I try to use the following ant target to start the domain, it complains
"The Master Password is required to start the domain. No console, no prompting possible. You should either create the domain with --savemasterpassword=true or provide a password file with the --passwordfile option.Command start-domain failed."
<exec executable="${glassfish.asadmin}" failonerror="true">
<arg value="start-domain" />
<arg value="--domaindir" />
<arg value="${domains.dir}" />
<arg value="${domain.name}" />
</exec>
I have tested the same ant stuff works under glassfish 3.1.1.2 and 2.1.1, meaning without asking for master password. Has anybody else experienced the same in glassfish 4.0?
Thank you.