Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Access Denied

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving this to the JSP forum.
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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)
 
Oh. Hi guys! Look at this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic