Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GlassFish Login Problem

 
liqiang yang
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I just installed NetBeans6.1(built-in GlassFish) and tried a small web example, but when I ran the project, I got error message say:

Application server startup complete.
SEC5046: Audit: Authentication refused for [admin].
Web login failed: Login failed: javax.security.auth.login.LoginException: Failed file login for admin.
SEC5046: Audit: Authentication refused for [admin].
Web login failed: Login failed: javax.security.auth.login.LoginException: Failed file login for admin.
SEC5046: Audit: Authentication refused for [admin].
Web login failed: Login failed: javax.security.auth.login.LoginException: Failed file login for admin.
SEC5046: Audit: Authentication refused for [admin].
Web login failed: Login failed: javax.security.auth.login.LoginException: Failed file login for admin.
SEC5046: Audit: Authentication refused for [admin].
Web login failed: Login failed: javax.security.auth.login.LoginException: Failed file login for admin.
SEC5046: Audit: Authentication refused for [admin].
Web login failed: Login failed: javax.security.auth.login.LoginException: Failed file login for admin.
SEC5046: Audit: Authentication refused for [admin].
Web login failed: Login failed: javax.security.auth.login.LoginException: Failed file login for admin.
SEC5046: Audit: Authentication refused for [admin].
Web login failed: Login failed: javax.security.auth.login.LoginException: Failed file login for admin.
SEC5046: Audit: Authentication refused for [admin].
Web login failed: Login failed: javax.security.auth.login.LoginException: Failed file login for admin.

Anyone know how to fix this problem?
Please help me out. Thank in advance!!!
 
liqiang yang
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is anybody can help me out?

I am still stick to this problem. Big thanks.
 
mark dufresne
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has the solution for this been posted somewhere? I am having the same issue... thanks =)
 
K. Tsang
Bartender
Posts: 3444
13
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello there

The solution to this problem is that your username/password stored in Netbeans for Glassfish does not match with what Glassfish expects. The default username/password is admin/adminadmin. Now if you change the password during installation, you would get the security exception error in the log. So change the password by right-clicking the Glassfish properties in Netbeans. If you forgot your password you need to reset it.

Hope this helps.
 
mark dufresne
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tools->Servers
[Remove Server]
[Add Server]
Entered admin password that I set at installation

I did the above, which is effectively the same as you suggested, and it worked =)

thanks so much
 
Kevin Jaques
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a better explanation!

I had the same problem. I kept setting the glassfish password, then carefully entering it, and it would be rejected. Strangely, it would tell me several times and keep asking repeatedly.

I thought I was setting the password when I would change it in Netbeans, either by changing the properties of the Server or by removing & recreating the server (all 3 accessible through Tools Menu -> Servers). No! The password was set when Glassfish was installed (by default, admin is the user and adminadmin is the password).

That’s why it would ask me once for the password, then reject the answer twice. Netbeans had tried the password I had given it, then asked me, but I gave it the same answer.

To configure glassfish, use the web browser to access: http://localhost:4848/. You can change the p/w there! Then tell NetBeans what the password is, and it won't even trouble you for it anymore!
 
mark dufresne
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Merci beaucoup!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic