tomcat: 5.5.25 java: 1.5.0_12 os: windows xp

i've got an errorhandling in my web.xml for errorcode 403, which prints a
access denied message at the login page. it works fine with a correct login.
 
try to login without a correct login, prints an "accees denied" at the login
page (thats also working as indeed)

but now trying ot login with correct occurs the following error page:
"description The requested resource
(/user_webapp/protected/j_security_check) is not available"

so what i'm doing wrong?

here is my web.xml:

<web-app version="2.4" 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 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
  <error-page>
    <error-code>403</error-code>
    <location>/faces/login.jsp?error=403</location>
  </error-page>
  
  <display-name>Client Manager</display-name>
  <security-constraint>
    <web-resource-collection>
      <web-resource-name>Protected Area</web-resource-name>
      <!--Define the context-relative URL(s) to be protected-->
      <url-pattern>/faces/protected/*</url-pattern>
      <http-method>GET</http-method>
      <http-method>POST</http-method>
      <http-method>PUT</http-method>
      <http-method>DELETE</http-method>
    </web-resource-collection>
    <auth-constraint>
      <role-name>admin</role-name>
    </auth-constraint>
  </security-constraint>

  <login-config>
    <auth-method>FORM</auth-method>
    <form-login-config>
      <form-login-page>/faces/login.jsp</form-login-page>
      <form-error-page>/faces/login.jsp?error=401</form-error-page>
    </form-login-config>
  </login-config>

  <security-role>
    <description>
      The role that is required to log in to the A Application
    </description>
    <role-name>admin</role-name>
  </security-role>


  <session-config>
    <session-timeout>10</session-timeout>
  </session-config>


  <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
  </servlet-mapping>
  <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>server</param-value>
  </context-param>
</web-app>
-- 
View this message in context: 
http://www.nabble.com/protected-j_security_check%29-is-not-available-tf4860449.html#a13909020
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to