users@glassfish.java.net

realm security with the hello world duke program...

From: <glassfish_at_javadesktop.org>
Date: Fri, 16 May 2008 07:11:12 PDT

i am trying to play around with realm security,

my web.xml looks like:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="h
ttp://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
    <welcome-file-list>
        <welcome-file>
            index.jsp
        </welcome-file>
    </welcome-file-list>
    <security-constraint>
        <web-resource-collection>
            <web-resource-name>hello</web-resource-name>
            <url-pattern>/*</url-pattern>
            <http-method>GET</http-method>
        </web-resource-collection>
        <auth-constraint>
            <role-name>users</role-name>
        </auth-constraint>
    </security-constraint>
    <login-config>
        <auth-method>BASIC</auth-method>
        <realm-name>myTest</realm-name>
    </login-config>
    <security-role>
        <role-name>USERS</role-name>
        <group-name>Users</group-name>
    </security-role>
</web-app>

security is not working though... i know i have something wrong...
[Message sent by forum member 'huggy77' (huggy77)]

http://forums.java.net/jive/thread.jspa?messageID=274848