I'm trying to install GlassFish v2 on my Macintosh. The installation instructions say that it should prompt for an admin password, but it doesn't, and now I can't log into the admin console on localhost:4848. And I can't change it with asadmin change-admin-password because it needs the old one. I think I installed GlassFish with NetBeans a few months ago and might have started it up once or twice, but I don't remember what password I used back then. Is there a command I can give or a file I can delete to make it forget that old password and prompt me for a new one?

link|improve this question

Why it's "migrated from serverfault.com" ? – linux_is_for_desktop Aug 13 '09 at 9:41
Because somebody decided it wasn't sysadmin-ish enough for ServerFault. – Paul Tomblin Aug 13 '09 at 11:37
feedback

migrated from serverfault.com Jul 18 '09 at 0:43

This question came from our site for system administrators and desktop support professionals.

2 Answers

up vote 1 down vote accepted

The default password is built into the app, and at the risk of making unsecure apps even more unsecure. Default password is "adminadmin".

link|improve this answer
2  
Ok, that gave me the clue. Evidently the default password is built into the app, and at the risk of making unsecure apps even more unsecure, it's "adminadmin". – Paul Tomblin Jul 18 '09 at 1:07
1  
Paul: That is...awesome. – TheTXI Jul 18 '09 at 1:09
4  
Link is dead... – Damian Nowak Jan 22 at 22:13
feedback

You can also create a new domain, set the admin password there to whatever you like and move the password files over to your original domain. Here's a blog post explaining the process:

http://techteam.wordpress.com/2009/06/25/reset-glassfish-password/

link|improve this answer
1  
There's even better answer in that post now. Go to glassfish3\glassfish\domains\domain1\config\local_password file - its contents are a backup password to log in as admin. – Victor Sergienko May 7 at 10:35
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.