Index: CreateDomainCommand.java =================================================================== --- CreateDomainCommand.java (revision 63724) +++ CreateDomainCommand.java (working copy) @@ -161,7 +161,11 @@ throw new CommandValidationException( strings.get("InvalidDomainPath", domainDir)); } - + + if (domainName.length() > 28) { + throw new CommandValidationException( + strings.get("DomainNameLimit")); + } /* * The only required value is the domain_name operand, which might have * been prompted for before we get here.