aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes GlassFish Login Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "GlassFish Login Problem" Watch "GlassFish Login Problem" New topic
Author

GlassFish Login Problem

liqiang yang
Ranch Hand

Joined: Jan 20, 2008
Posts: 92
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!!!


DY.
SCJP 5.0 (100%), SCWCD 5.0 (79%), SCBCD 5.0 (preparing...)
liqiang yang
Ranch Hand

Joined: Jan 20, 2008
Posts: 92
Is anybody can help me out?

I am still stick to this problem. Big thanks.
mark dufresne
Greenhorn

Joined: Jul 18, 2009
Posts: 6
Has the solution for this been posted somewhere? I am having the same issue... thanks =)
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2416
    
    7

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.


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7 OCPWCD5
mark dufresne
Greenhorn

Joined: Jul 18, 2009
Posts: 6
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

Joined: Nov 11, 2009
Posts: 1
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

Joined: Jul 18, 2009
Posts: 6
Merci beaucoup!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: GlassFish Login Problem