Search code examples
javaeclipsejakarta-eeglassfishglassfish-3

Error when starting Glassfish Server. Password Required at localhost


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:

Glassfish Error Password Required

Glassfish Error Wrong user name or password

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


Solution

  • 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.