The error "NoAdminPortEx" indicates, that GlassFish is not able to find the admin port for the specified domain.
The error occurs in case the domain folder (
$GLASSFISH_HOME/glassfish/domains/[DOMAIN_NAME]) contains inconsistent data, often caused by an interrupted
asadmin create-domain [DOMAIN_NAME] command.
Manual domain deletion (rm -rf) and recreation with
asadmin create-domain [DOMAIN_NAME] solves the problem.
See you at Java EE Workshops at Munich Airport, Terminal 2!
NEW online workshop: Web Components training (online)