CLASSPATH= /home/bshankar/ws/glassfish/image/glassfishv3/glassfish/bin/../modules/admin-cli.jar Commands: [deploy, /tmp/testapp.war] asadmin extension directory: /media/work/bshankar/ws/glassfish/image/glassfishv3/glassfish/lib/asadmin Assuming it's a remote command: deploy Prepare Parsing program options Getting user name from ~/.asadminpass: admin Setting user to: admin Getting password from ~/.asadminpass Setting password to: URI: /__asadmin/deploy?Xhelp=true URL: com.sun.enterprise.admin.util.HttpConnectorAddress@64f6cd URL: http://localhost:4848/__asadmin/deploy?Xhelp=true Using auth info: User: admin, Password: RemoteCommand.prepare throws org.glassfish.api.admin.CommandException: HTTP connection failed with code 404, message: Not Found HTTP connection failed with code 404, message: Not Found Command deploy failed.