solved BadRealm exception and updated deploy.bat
https://java.net/jira/browse/GLASSFISH-20364