3 Replies Latest reply on Dec 20, 2004 11:46 AM by Pavel Krupets

    SSL -> HTTP Status 403 - Access to the requested resource ha

    Pavel Krupets Newbie

      Hello,

      I set up SSL access to servlets but sometimes I get 403 error (funny thing that error page will be secure). Did anyone meet similar problem?

      start page:
      http://www.mydomain.com/

      when it redirects to:
      https://www.mydomain.com/login

      Sometimes it successfully redirects sometimes it doesn't. Also when I refresh page or try to reload it I can get 403 error as well.

      I use single controller:

      <servlet>
       <servlet-name>RootController</servlet-name>
       <display-name>RootController</display-name>
       <description>[CDATA[RootController]]</description>
       <servlet-class>com.sit93.santis.sit.web.internal.RootController</servlet-class>
      </servlet>


      <servlet-mapping>
       <servlet-name>RootController</servlet-name>
       <url-pattern>/</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
       <servlet-name>RootController</servlet-name>
       <url-pattern>/login</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
       <servlet-name>RootController</servlet-name>
       <url-pattern>/error</url-pattern>
      </servlet-mapping>


      <security-constraint>
       <web-resource-collection>
       <web-resource-name>RootController</web-resource-name>
       <url-pattern>/login</url-pattern>
       </web-resource-collection>
       <user-data-constraint>
       <transport-guarantee>CONFIDENTIAL</transport-guarantee>
       </user-data-constraint>
      </security-constraint>


      With regards,
      Pavel Krupets