users@glassfish.java.net

RE: Problem in using jdbc realm, i get "No LoginModules configured for jdbcrealm"

From: Martin Gainty <mgainty_at_hotmail.com>
Date: Tue, 7 Jul 2009 20:24:27 -0400

could you display the /WEB-INF/web.xml security-constraint e.g.
  <security-constraint>
      <web-resource-collection>
        <web-resource-name>Basic Realm</web-resource-name>
        <url-pattern>/*</url-pattern>
      </web-resource-collection>
      <auth-constraint>
         <role-name>admin-role</role-name>
      </auth-constraint>
  </security-constraint>

please check for jdbcRealm e.g.
/domains/domain1/config/login.conf
jdbcRealm {
    com.sun.enterprise.security.auth.login.JDBCLoginModule required;
};

Martin
______________________________________________
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: Tue, 7 Jul 2009 15:57:36 -0700
> From: glassfish_at_javadesktop.org
> To: users_at_glassfish.dev.java.net
> Subject: Re: Problem in using jdbc realm, i get "No LoginModules configured for jdbcrealm"
>
> Add me to the list of people with the same problem.
>
> WARNING: Web login failed: Login failed: javax.security.auth.login.LoginException: No LoginModules configured for corejsfRealm
> WARNING: Can not find resource bundle for this logger. class name that failed: com.sun.web.security.RealmAdapter
>
> This is with the current Glassfish v3 Preview. (The package containing security.jar, which contains the JDBCRealm class, is GF Common Components 3.0-53.) Here is the snippet from domain.xml:
>
> <auth-realm classname="com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm" name="corejsfRealm">
> <property name="jaas-context" value="corejsfRealm" />
> <property name="datasource-jndi" value="jdbc/mydb" />
> <property name="user-table" value="Credentials" />
> <property name="user-name-column" value="username" />
> <property name="password-column" value="password" />
> <property name="group-table" value="Groups" />
> <property name="group-name-column" value="groupname" />
> </auth-realm>
>
> Following some (probably useless) advice, I then added an entry in login.conf, mimicking exactly that for jdbcRealm. I was rewarded with a different failure:
>
> WARNING: Web login failed: Login failed: javax.security.auth.login.LoginException: Security Exception
> WARNING: Can not find resource bundle for this logger. class name that failed: com.sun.web.security.RealmAdapter
>
> Cay
> [Message sent by forum member 'cayhorstmann' (cayhorstmann)]
>
> http://forums.java.net/jive/thread.jspa?messageID=354545
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>

_________________________________________________________________
Windows Live™: Keep your life in sync.
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_BR_life_in_synch_062009