I launched an AWS EC2 instance in the EU West (Ireland) region and installed glassfish 4.1 on it.
The domain starts perfectly.
However, when I try any asadmin command (even to stop the domain), I get the following answer :
[ec2-user@ip-172... ~]$ asadmin stop-domain
autoscaling.us-east-1.amazonaws.com
[ec2-user@ip-172... ~]$ asadmin list-domains
autoscaling.us-east-1.amazonaws.com
I believe this is AWS default endpoint. I don't understand what's happening. I don't know if that is relevant but I'm using the default VPC located in EU West.
I googled my problem and found this thread on stackoverflow : Deploy to remote Glassfish instance via cli
But, in that case, the domain hadn't started and mine definitely started.
I'm quite novice in this field and I would really appreciate it if anyone could tell me what's wrong.
Thanks a lot.
EDIT : No answer for the following :
[ec2-user@ip-172-... ~]$ sudo netstat -lntp | grep java
[ec2-user@ip-172-... ~]$