I'm trying to create a new domain with Glassfish 4.1 asadmin, and I can't seem to supply a custom domain.xml template:
[08:56:44 setup_gf_domain.sh ] -> asadmin: Invalid --template value /apps/deployments/appsup/template/template_domain_4.1.xml, option accepts only jar file location.
[08:56:44 setup_gf_domain.sh ] -> asadmin: CLI130: Could not create domain, testappsupp
[08:56:44 setup_gf_domain.sh ] -> asadmin: Command create-domain failed.
Using a relative path fails with the same error.
The same command works fine on Glassfish 3.1.2, and the 4.0 documentation seems the same. I did find this Jira ticket https://java.net/jira/browse/GLASSFISH-20908 reporting the same issue, but there's no more info on it.
Have the parameters changed? Or is this just broken?