Changing password in Glassfish Server can be strange sometime especially everything you do seems not to work. In this example I will focus on the case of Glassfish Server 3.0 or 3+ . I haven't yet tested on other versions. Before throwing some commands against the asadmin shell there are some important things that you need to know or at least be aware of.
password: adminadmin
password: empty
asadmin> start-domain mydomain
asadmin> change-admin-password --port 4848 --user anonymous
here port = your admin console page port.
You are then prompt for a password:
Enter admin password> just press[Enter] for accepting an empty password.
Enter new admin password> your password
Enter new admin password again> your password
asadmin> stop-domain mydomain
asadmin> start-domain mydomain
Just access your admin console url like http:localhost:4848
username: anonymous
password: your password.
Congratulation you just did it ! If you still face any problems drop a comment I will come to your rescue. Don't forget to give us your feedback....
- change-admin-password : to change the admin password for the console login, in many documents out there the defaults of this user are:
password: adminadmin
However I have noticed that for Glassfish 3.0 when the installation has been done accepting all the defaults,
the default credentials of this user are instead:
username: anonymouspassword: empty
- change-master-password: to change the master password for controlling the DAS and IKS for more info on this read this article.
asadmin> start-domain mydomain
asadmin> change-admin-password --port 4848 --user anonymous
here port = your admin console page port.
You are then prompt for a password:
Enter admin password> just press[Enter] for accepting an empty password.
Enter new admin password> your password
Enter new admin password again> your password
asadmin> stop-domain mydomain
asadmin> start-domain mydomain
Just access your admin console url like http:localhost:4848
username: anonymous
password: your password.
Congratulation you just did it ! If you still face any problems drop a comment I will come to your rescue. Don't forget to give us your feedback....
No comments:
Post a Comment