If you get this error :
Starting Glassfish .... encountered a problem: Wrong name or password
when starting your Glassfish server (3.1.2) in Eclipse Indigo. go the server Tab, select your Glassfish instance anc hit F3. A configuration page will open. Then, uncheck “Anonymous Admin connection..” option.
See screenshot below.
It’s reported that in some cases, Checking insteading of unchecking should solve the problem.