wood burning stoves 2.0*
The moose likes JSP and the fly likes Access Denied Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Access Denied" Watch "Access Denied" New topic
Author

Access Denied

Suri Babs
Ranch Hand

Joined: Mar 27, 2003
Posts: 50
HTTP Status 403 - Access to the requested resource has been denied
i get this after logging in to the Web application. I have configured for the HTTP FORM based autentication with
login page containing j_security_check bla, bla.
my login page is -- index.htm
and welcome page is -- index.jsp
the following is my web.xml file
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<description>Empty web.xml file for Web Application</description>
<servlet>
<servlet-name>ControllerServlet</servlet-name>
<servlet-class>com.who.hin.servlet.ControllerServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>HINServlet</servlet-name>
<servlet-class>com.who.hin.servlet.HINServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>ReportServlet</servlet-name>
<servlet-class>com.who.hin.servlet.ReportServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>TreeServlet</servlet-name>
<servlet-class>com.who.hin.servlet.TreeServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>area_map.jsp</servlet-name>
<jsp-file>/jsp/area_map.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>casedetect_report.jsp</servlet-name>
<jsp-file>/jsp/casedetect_report.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>feedback_sent.jsp</servlet-name>
<jsp-file>/jsp/feedback_sent.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>index.jsp</servlet-name>
<jsp-file>/index.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>labregister.jsp</servlet-name>
<jsp-file>/jsp/labregister.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>leftframe.jsp</servlet-name>
<jsp-file>/jsp/leftframe.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>message.jsp</servlet-name>
<jsp-file>/jsp/message.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>new_feedback.jsp</servlet-name>
<jsp-file>/jsp/new_feedback.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>new_retreatment_cases_report.jsp</servlet-name>
<jsp-file>/jsp/new_retreatment_cases_report.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>sputconv_new_relap_fail_report.jsp</servlet-name>
<jsp-file>/jsp/sputconv_new_relap_fail_report.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>tbregister.jsp</servlet-name>
<jsp-file>/jsp/tbregister.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>tbregsummary.jsp</servlet-name>
<jsp-file>/jsp/tbregsummary.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>topframe.jsp</servlet-name>
<jsp-file>/jsp/topframe.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>treatmentcard.jsp</servlet-name>
<jsp-file>/jsp/treatmentcard.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>treatmentoutcome_report.jsp</servlet-name>
<jsp-file>/jsp/treatmentoutcome_report.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>view_feedback.jsp</servlet-name>
<jsp-file>/jsp/view_feedback.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>ControllerServlet</servlet-name>
<url-pattern>/servlet/ControllerServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>HINServlet</servlet-name>
<url-pattern>/servlet/HINServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ReportServlet</servlet-name>
<url-pattern>/servlet/ReportServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>index.jsp</servlet-name>
<url-pattern>/index.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>tbregister.jsp</servlet-name>
<url-pattern>/tbregister.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>labregister.jsp</servlet-name>
<url-pattern>/labregister.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>treatmentcard.jsp</servlet-name>
<url-pattern>/treatmentcard.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>new_retreatment_cases_report.jsp</servlet-name>
<url-pattern>/new_retreatment_cases_report.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ReportServlet</servlet-name>
<url-pattern>/servlet/ReportServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>leftframe.jsp</servlet-name>
<url-pattern>/leftframe.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>topframe.jsp</servlet-name>
<url-pattern>/topframe.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>tbregsummary.jsp</servlet-name>
<url-pattern>/tbregsummary.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>TreeServlet</servlet-name>
<url-pattern>/servlet/TreeServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>message.jsp</servlet-name>
<url-pattern>/message.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>sputconv_new_relap_fail_report.jsp</servlet-name>
<url-pattern>/sputconv_new_relap_fail_report.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>treatmentoutcome_report.jsp</servlet-name>
<url-pattern>/treatmentoutcome_report.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>casedetect_report.jsp</servlet-name>
<url-pattern>/casedetect_report.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>area_map.jsp</servlet-name>
<url-pattern>/area_map.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>feedback_sent.jsp</servlet-name>
<url-pattern>/feedback_sent.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>new_feedback.jsp</servlet-name>
<url-pattern>/new_feedback.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>view_feedback.jsp</servlet-name>
<url-pattern>/view_feedback.jsp</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<mime-mapping>
<extension>html</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>txt</extension>
<mime-type>text/plain</mime-type>
</mime-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>

<taglib>
<taglib-uri>hin_tags</taglib-uri>
<taglib-location>/WEB-INF/tlds/taglib.tld</taglib-location>
</taglib>
<security-constraint>
<web-resource-collection>
<web-resource-name>index.jsp</web-resource-name>
<url-pattern>/index.jsp</url-pattern>
<http-method>GET</http-method>
</web-resource-collection>
<auth-constraint>
<description>Restrict to authenticated users</description>
<role-name>hin</role-name>
</auth-constraint>
<user-data-constraint>
<description>SSL not required</description>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>

<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/index.htm</form-login-page>
<form-error-page>/index.htm</form-error-page>
</form-login-config>
</login-config>
<security-role>
<role-name>hin</role-name>
</security-role>
</web-app>

Could any one explain me why i get Access denied error.
This is very urgent. Iam using JBOSS.
thanks in advance
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Moving this to the JSP forum.


Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
suresh guru
Ranch Hand

Joined: Sep 07, 2002
Posts: 38
Hi
from where r u getting the list of username and password. U have to do it by editing auth.conf.put another file called jboss-web.xml in /web-inf directory with "other" as security attrib. I configured the Jboss to use database server login module & is working fine

check the login page & login error page (which has bot index.htm)
 
wood burning stoves
 
subject: Access Denied
 
Similar Threads
authentication in jboss
Roles of a user
simple problem with web.xml
web.xml
tomcat formAutheticator problem