Skip to main content

jdbcRealm authentication problem

2 replies [Last post]
wellsj321
Offline
Joined: 2009-08-17

I am using NB 6.5.1 with GlassFish v 2.1. I have been diligently following the "Mort Learns JDBC Realm....etc.". When I try to log in with the account (admin) in the tutorial it looks like it is connecting but then it prompts for login again.....and again....and, (you get the idea). It doesn't reject or deny the account, just doesn't accept it. If I try to log in with any other account it will behave as expected and deny access saying the site requires valid login or some such thing. I have been trying this for weeks with no luck. I left a message on the site with no response. I really would like to get this to work because I have a project I need to incorporate this type of security with and it is due soon. In Glassfish I can ping the resource and all seems okay. I even copied all the jdbc drivers into the GlassFish Lib folder. Can someone please give me some advice/help.....anything??

Thanks in Advance,
J Wells

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Shing Wai Chan

I remember that before release, pinging the resource may not be enough.
Do you see any errors in the server.log?

glassfish@javadesktop.org wrote:
> I am using NB 6.5.1 with GlassFish v 2.1. I have been diligently following the "Mort Learns JDBC Realm....etc.". When I try to log in with the account (admin) in the tutorial it looks like it is connecting but then it prompts for login again.....and again....and, (you get the idea). It doesn't reject or deny the account, just doesn't accept it. If I try to log in with any other account it will behave as expected and deny access saying the site requires valid login or some such thing. I have been trying this for weeks with no luck. I left a message on the site with no response. I really would like to get this to work because I have a project I need to incorporate this type of security with and it is due soon. In Glassfish I can ping the resource and all seems okay. I even copied all the jdbc drivers into the GlassFish Lib folder. Can someone please give me some advice/help.....anything??
>
> Thanks in Advance,
> J Wells
> [Message sent by forum member 'wellsj321' (wellsj321)]
>
> http://forums.java.net/jive/thread.jspa?messageID=360857
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Martin Gainty

your domain.xml *should* display something like this jdbc resource defined:

connection-creation-retry-attempts=0 means it will try only once
connection-creation-retry-interval-in-seconds="10" wait for 10 seconds before reconn

connection-creation-retry-interval-in-seconds="10" connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" connection-validation-method="auto-commit" datasource-classname="org.apache.derby.jdbc.ClientDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="false" lazy-connection-association="false" lazy-connection-enlistment="false" match-connections="false" max-connection-usage-count="0" max-pool-size="32" max-wait-time-in-millis="60000" name="DerbyPool" non-transactional-connections="false" pool-resize-quantity="2" res-type="javax.sql.DataSource" statement-timeout-in-seconds="-1" steady-pool-size="8" validate-atmost-once-period-in-seconds="0" wrap-jdbc-objects="false">

Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.

> Date: Mon, 17 Aug 2009 17:37:16 -0700
> From: Shing-Wai.Chan@Sun.COM
> To: users@glassfish.dev.java.net
> Subject: Re: jdbcRealm authentication problem
>
> I remember that before release, pinging the resource may not be enough.
> Do you see any errors in the server.log?
>
> glassfish@javadesktop.org wrote:
> > I am using NB 6.5.1 with GlassFish v 2.1. I have been diligently following the "Mort Learns JDBC Realm....etc.". When I try to log in with the account (admin) in the tutorial it looks like it is connecting but then it prompts for login again.....and again....and, (you get the idea). It doesn't reject or deny the account, just doesn't accept it. If I try to log in with any other account it will behave as expected and deny access saying the site requires valid login or some such thing. I have been trying this for weeks with no luck. I left a message on the site with no response. I really would like to get this to work because I have a project I need to incorporate this type of security with and it is due soon. In Glassfish I can ping the resource and all seems okay. I even copied all the jdbc drivers into the GlassFish Lib folder. Can someone please give me some advice/help.....anything??
> >
> > Thanks in Advance,
> > J Wells
> > [Message sent by forum member 'wellsj321' (wellsj321)]
> >
> > http://forums.java.net/jive/thread.jspa?messageID=360857
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> > For additional commands, e-mail: users-help@glassfish.dev.java.net
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

_________________________________________________________________
Get back to school stuff for them and cashback for you.
http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_B...
[att1.html]