4
votes

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

4
"It is in Italian Language and I don't know how to change it in English": change the platform or environment default locale. On screens I see that you're using Eclipse. It uses the operating system platform default locale as default locale. You can override it by -nl argument on the Eclipse executabele: eclipse -nl en.BalusC

4 Answers

10
votes

In glassfish 4, empty password worked for me.

4
votes

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.

GlassFish Eclipse Configuration

You could see this option by double clicking on the 'GlassFish xxxxx server' entry in 'Servers' palette, in eclipse.

Thanks,
Raj, Linu.

3
votes

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.

0
votes

Regarding XDB error, i was able to login to admin console, uncheck the security under system-config->http services->http-listeners->xxxxxx. Once i unchecked the security and try to log back in, it did not prompted the login and gave me screen showing server status