users@glassfish.java.net

Re: jdbcRealm authentication not working?

From: Shing Wai Chan <Shing-Wai.Chan_at_Sun.COM>
Date: Fri, 21 Aug 2009 16:39:49 -0700

Joy Wells wrote:
>
> If I sent something already I apologize. I am very new to this and I
> appreciate everyone’s help, consideration and patience. I am working
> with Netbeans 6.5.1, JDBC, and glassfish v 2.1 that I downloaded as a
> bundle. I followed the directions on the
> http://blogs.sun.com/foo/entry/mort_learns_jdbc_realm_authentication
> site. I chose the basic authentication with no hashing of the password
> to just try it out. Anyway, when I run the application I get the login
> box. I put in the username and password (there is only one account),
> it goes away for a second and then comes right back. So, I put in the
> information again and it goes away again and then comes back. I put
> the information back in and then it errors out with:
>
This means the authentication is not successful. There should should an
error message in the log. What is it? Is there any stack trace?
Have you try to look at one of my previous blog:
http://blogs.sun.com/swchan/entry/jdbcrealm_in_glassfish_with_mysql

Regards,
Shing Wai Chan

> If I use any other log in credentials it errors out right away with
> the same error so it seems like it is communicating with the database.
> I have looked through Glassfish logs put there just information
> notices. I also checked paths and even copied the derby files into the
> Glassfish lib folder. Does anyone have any ideas? Thanks for any help
> you can provide.
>
> Respectfully,
>
> J Wells
>