my be this is not the right place for this question but i'm in serius trouble, so i try anyway.
I’ve tried to configuring tomcat (both Apache Tomcat 7.0.27 and Apache Tomcat 7.0.34) to using realm UserDatabase (that is using tomcat-user.xml as a database).
I’m using netbeans 7.3.
When I try to access the resources even if inserting the right username and password I see the following:
HTTP Status 403 - Access to the requested resource has been denied
type Status report
message Access to the requested resource has been denied
description Access to the specified resource (Access to the requested resource has been denied) has been forbidden.
These are the step I did:
- Adding the following statement to the the tomcat-user.xml:
<user username="user" password="uuu" role="UserRole"/>
2)take sure that on the server.xml the following statement are present:
3)Configuring web.xml (inside the WEB-INF directory) as following:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<description>Utenti che hanno questo ruolo (user) possono accedere all'area protetta</description>
4) creating the file index.jsp,login.jsp and error.jsp.
5)creating the path and file at “web pages/CartellaProtetta/fileProtetto.html”
It seems that this kind of authentication no more works (with tomcat 7.xx), could you give me some helpful indication? Or say that is a bug inside tomcat?
Thanks really much