Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MemoryRealm - BASIC Authentication

 
Swapan Mazumdar
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you add the error message from the tomcat log file?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic