Well, i answer my own question, after a long a fierce struggle i defeated the problem. I would never think about it , if i hadn't tried it, so sometimes trial error method works better than all other methods. The only mistake was the "Form" should have been written as "FORM" in capital letters. Who could think of this? I hope this way i helped those who have similar troubles. Wish everyone a trouble-free day :)
----- Original Message ----- From: "yilmaz" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, November 28, 2001 11:43 AM Subject: form authentication > hi everybody, > can anyone please tell me how form authentication in tomcat 4 b7 works? > so far i was using basic auth. without a problem. > for some reasons i must use custom form auth. , so i decided to configure my > tomcat for form auth type. > however i am having problems, and i can't find any docs about this. > let me make my situation more clear: > in tomcat/conf/web.xml i defined form type auth. as follows: > > <login-config> > <auth-method>form</auth-method> > <form-login-config> > <form-login-page>/login.jsp</form-login-page> > <form-error-page>/error.html</form-error-page> > </form-login-config> > </login-config> > where login.jsp is located under root directory. > in tomcat/conf/tomcat-users.xml i added a user 'any' for > anonymus access with a role 'any' as follows: > > <tomcat-users> > <user name="yilmaz" password="ay" roles="sman" /> > <user name="yilmazay" password="ay" roles="admn,memb" /> > <user name="member" password="member" roles="memb" /> > <user name="any" password="any" roles="any" /> > </tomcat-users> > > i am using jdbc realm for authentication with a mysql at the backend. > i don't think there is a problem with mysql, because it was working > perfectly > till now for basic type auth. > in addition i defined form type authen. in root/web-inf/web.xml, too. > > i checked my logs, here is the related part: > > WebappLoader[]: Deploying class repositories to work directory > D:\tomcat\work\localhost\_ > 2001-11-28 11:38:19 StandardManager[]: Seeding random number generator class > java.security.SecureRandom > 2001-11-28 11:38:19 StandardManager[]: Seeding of random number generator > has been completed > 2001-11-28 11:38:19 ContextConfig[]: Cannot configure an authenticator for > method Form > 2001-11-28 11:38:19 ContextConfig[]: Marking this application unavailable > due to previous error(s) > 2001-11-28 11:38:19 StandardContext[]: Error initializing naming context for > context > 2001-11-28 11:38:19 StandardContext[]: Context startup failed due to > previous errors > > what else should i do, please help me with this?because i can't find any > satisfactory expanation anywhere. > thanks for your help > best regards :) > > > > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
