0 Replies Latest reply on Dec 12, 2004 3:02 AM by Patrick Lee

    HTTP Status 403 - Access to the requested resource has been

    Patrick Lee Newbie

      Dear all,

      When I move my MyStore project from JBoss 3.2.3 to JBoss 4.0.0, my security policy didn't work. When I use the same login name and password login into JBoss 3.2.3 and Jboss 4.0.0, JBoss 3.2.3 allowed to access my servlet but Jboss 4.0.0 didn't allow.

      Here is part of application policy in login-config.xml.

       <application-policy name = "Mystore">
       <login-module code = "org.jboss.security.auth.spi.DatabaseServerLoginModule" flag = "required">
       <module-option name = "dsJndiName">java:/DefaultDS</module-option>
       <module-option name = "principalsQuery">select Password from Principals where PrincipalID=?</module-option>
       <module-option name = "rolesQuery">select Role, RoleGroup from Roles where PrincipalID=?</module-option>

      Here is my security-constraint on web.xml in my project
       <description>An example security config that only allows users with the
       role JBossAdmin to access the access web application

      I already create two tables in HSQL under JBoss3.2.3 and JBoss 4.0.0. I check that the ROLE is JBOSSADMIN under my PRINCIPALID on both database. And I am sure the query on my database is worked. Because I try to type the invalid password. It show the error either on screen and server.log file.

      What is wrong in my security setting?

      Thanks a lot.

      Patrick Lee