Error when starting Glassfish Server. Password Required at localhost
Solution 1
When installing for the fist time glassfish creates a default domain "domain1". The user is admin and the password is adminadmin. You should double check that eclipse is using this "domain1".
If you can't make it work a simple solution would be create a new domain in glassfish assigning a new user and password and configure eclipse to use this new domain.
Before trying anything in eclipse the first troubleshoot would be entering the admin console from a browser. If Im not wrong the default port of domain1 is 4848.
Solution 2
In glassfish 4, empty password worked for me.
Solution 3
If an admin passowrd was mentioned at the time of domain-creation; the same password has to be mentioned during configuring glassfish server in eclipse.
ALSO, make sure that the option 'Use Anonymous Connection for Admin Commands' is 'UNCHECKED'. By default, it will be in checked mode.
You could see this option by double clicking on the 'GlassFish xxxxx server' entry in 'Servers' palette, in eclipse.
Thanks,
Raj, Linu.
Aerox
Updated on July 15, 2020Comments
-
Aerox almost 4 years
Has anyone ever seen this kind of error? This is shown when i'm trying to deploy the Glassfish Server App
You can see Screenshots here:
It is in Italian Language and I don't know how to change it in English (if anyone know please tell me how and I rewrite it for you).
I have not set any password for the Glassfish Admin Console I'm sure. The error is displayed in the last line and translated into English is:
Information: User [root] host 127.0.0.1 does not have access for administration or you have typed user name and password incorrect