users@glassfish.java.net

Re: How to: use Form based auth via JDBCRealm:oracle in Glassfish 3.0

From: Felipe Gaścho <fgaucho_at_gmail.com>
Date: Thu, 14 Jan 2010 13:10:08 +0100

ok,

questions:

- do you have your database with userpasswords ?
- the jdbc realm is configured in Glassfish ?
- are you using the default names for te login form ?

something like:

<form method="post" action="j_security_check">
<div id="username"><label>Username:</label><input name="j_username"
maxlength="20" type="text"></div>
<div id="password"><label>Password:</label><input name="j_password"
maxlength="32" type="password"></div>
<div id="submit"><a href="register.jsp">register</a><input
value="Login" type="submit"></div>
</form>

On Thu, Jan 14, 2010 at 1:07 PM, <glassfish_at_javadesktop.org> wrote:
> Hi,
> Thanks for the response.
> I enabled security but still cannot login.
> I think I have everything configured but then again thats probably what i'm asking.
> i also just copied the ojdbc14.jar to the lib/ext folder - I had it under glassfish/lib and my web-inf/lib already and maybe also on my classpath.
>
> Now I am getting this message in my server log:
> javax.security.auth.login.LoginException: Failed file login for any
> at com.sun.enterprise.security.auth.login.FileLoginModule.authenticate(FileLoginModule.java:80)
>
> Earlier I was getting an error about class not found for JDBCRealm such as
> [#|2010-01-14T06:48:39.340-0500|SEVERE|glassfishv3.0|org.apache.catalina.startup.ContextConfig|_ThreadID=25;_ThreadName=Thread-1;|      PWC3026: Parse error in default web.xml^M
>  3362 java.lang.ClassNotFoundException: org.apache.catalina.realm.JDBCRealm^M
> [Message sent by forum member 'cal41' (calgach_at_yahoo.ca)]
>
> http://forums.java.net/jive/thread.jspa?messageID=380900
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>



-- 
------------------------------------------
   Felipe Gaścho
   10+ Java Programmer
   CEJUG Senior Advisor