users@glassfish.java.net

GFv3 - Getting 403 after login - help in debugging?

From: <glassfish_at_javadesktop.org>
Date: Mon, 14 Dec 2009 14:56:44 PST

I read a post that is similar to mine (see http://forums.java.net/jive/thread.jspa?messageID=373343&#373343) but it looks a bit different and it doesn't seem to answer what I'm getting.

I have a reasonably simple webapp that I'm porting to Glassfish v3 (build 74.2) from Tomcat 6.0.20 and OC4J. The important parts (I believe) of web.xml are:

[code]<?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-app_2_4.xsd"
                   version="2.4">

...

        <security-constraint>
                <web-resource-collection>
                        <web-resource-name>PCL</web-resource-name>
                        <url-pattern>/pcl/*</url-pattern>
                        <http-method>GET</http-method>
                        <http-method>POST</http-method>
                </web-resource-collection>
                <auth-constraint>
                        <role-name>pcl-user</role-name>
                </auth-constraint>
        </security-constraint>
        <login-config>
                <auth-method>FORM</auth-method>
                <form-login-config>
                        <form-login-page>/login.jsp</form-login-page>
                        <form-error-page>/error.jsp</form-error-page>
                </form-login-config>
        </login-config>
        <security-role>
                <role-name>pcl-user</role-name>
        </security-role>
...
</web-app>
[/code]

What is happening is similar to the thread I indicated - my login seems to work but I'm sent to a 403 after that. I haven't found the correct log-fu to use to find out [b]why[/b] I'm not succeeding during login. Can anyone give me any pointers as to where to look for more information?

Thanks in advance for your help.
[Message sent by forum member 'stdunbar' ]

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