users@glassfish.java.net

Re: Setting up JDBCRealm -- missing login prompt

From: Shing Wai Chan <Shing-Wai.Chan_at_Sun.COM>
Date: Tue, 20 Feb 2007 10:23:48 -0800

If the prompt does not come up, then most probably, the security
constraint in web.xml is not setup correctly.
A sample is as follows:
 <security-constraint>
    <web-resource-collection>
        <web-resource-name>MySecureBit</web-resource-name>
        <url-pattern>/index.jsp</url-pattern>
        <http-method>GET</http-method>
        <http-method>POST</http-method>
    </web-resource-collection>
    <auth-constraint>
        <role-name>employee</role-name>
    </auth-constraint>
    <user-data-constraint>
        <transport-guarantee>NONE</transport-guarantee>
    </user-data-constraint>
  </security-constraint>

 You may like to check if there is any errors in server.log.
Thanks.
     Shing Wai Chan


glassfish_at_javadesktop.org wrote:
> [b]Situation:[/b]
> I'm trying to build a JDBCRealm based on these examples.
>
> http://www.developinjava.com/readarticle.php?article_id=5
> http://blogs.sun.com/swchan/entry/jdbcrealm_in_glassfish
>
> When I test my app, all I get is a white screen. The app server isn't prompting me with a username / password.
>
> steps documented here.
> http://picasaweb.google.com/codingJoe/JdbcRealmTake3
>
>
> [b]Question:[/b]
> Am I missing a step? How do I get the login prompt?
> [Message sent by forum member 'codingjoe' (codingjoe)]
>
> http://forums.java.net/jive/thread.jspa?messageID=204228
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>