| Author |
MemoryRealm - BASIC Authentication
|
Swapan Mazumdar
Ranch Hand
Joined: Jul 23, 2003
Posts: 83
|
|
I am trying to implement BASIC authentication for a web app. I am getting following errors. Do I need to create my custom login page and control the validation? I was expecting this to work like windows authentication. Please can anyone help? 2005/11/22 11:58:57 org.apache.catalina.authenticator.FormAuthenticator authenticate WARNING: Unexpected error forwarding to login page java.lang.NullPointerException Following are the entries in the web.xml: <security-constraint> <display-name></display-name> <web-resource-collection> <web-resource-name>Protected Area</web-resource-name> <url-pattern>*.jsp</url-pattern> <url-pattern>*.html</url-pattern> </web-resource-collection> <auth-constraint> <role-name>admin</role-name> </auth-constraint> </security-constraint> <login-config> <auth-method>BASIC</auth-method> <realm-name>Basic Authentication Mechanism</realm-name> </login-config> <security-role> <description></description> <role-name>admin</role-name> </security-role>
|
 |
Renato Losio
Ranch Hand
Joined: Nov 23, 2005
Posts: 99
|
|
|
Can you add the error message from the tomcat log file?
|
Renato Losio - www.arsenio.it - renatoweb@arsenio.it
|
 |
 |
|
|
subject: MemoryRealm - BASIC Authentication
|
|
|