users@glassfish.java.net

Custom Realm Example http 403

From: <glassfish_at_javadesktop.org>
Date: Thu, 12 Jun 2008 06:10:25 PDT

I have created the simpleCustomRealm example and deployed to SJAP 9.1 and everything works as it is supposed to. I have created a simple app with a web.xml that looks like
<login-config>
        <auth-method>BASIC</auth-method>
        <realm-name>WebRealm</realm-name>
    </login-config>
    <security-constraint>
        <display-name>SecurityConstraint1</display-name>
        <web-resource-collection>
            <web-resource-name>TestAccess</web-resource-name>
            <url-pattern>/*</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>users</role-name>
        </auth-constraint>
    </security-constraint>
On First deploy of the app the login box comes up and I can log into application but a http 403 error comes up after login. In the domain log it says that login was sucessful but I keep getting the 403 error. When I restart, redeploy, and even rename the context the login box never comes back up and it goes directly to the 403 error screen but the domain log says the login was successful. Anyone have any suggestions. Thanks in advance.
[Message sent by forum member 'kenbarnesjr' (kenbarnesjr)]

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