By default, a hard-coded value is in JavaES-Install-Dir\lib\lib\package-appclient.xml for the AS_ACC_CONFIG variable for domain1 that is pointed to by asenv.conf. If domain1 is deleted and a new domain created, the AS_ACC_CONFIG variable is not updated with the new domain name, which causes the package-appclient script to fail.
Do one of the following:
Leave domain1 intact, and create your other domains around it.
Remove domain1 and replace the hard-coded value for domain1 in JavaES-Install-Dir\lib\lib\package-appclient.xml with the new domain name. Repeat this step every time a new domain is created if domain1 is not present.