If my server caught fire, I would be calling 911 instead of asking for help here... Anyway, I was running everything with the default tomcat 6.0 configuration. I checked that the tomcat-users.xml file indeed contains all the user auth needed for the jsp sample application, and that matches the user role defined in web.xml of the examples app. I was using tomcat/tomcat as username/password.
Has anyone tried the protected jsp security example on tomcat 6 out of the box and passed the initial authentication page? without additional configuration? The url link is, as provided in my previous posting, as follows: http://localhost:8080/examples/jsp/security/protected. I tried this sample app on multiple versions of 6.0 and on multiple machines, using JDK 1.6. If you could get it work (e.g. pass the initial login page) without additional conf, I'd appreciate if you could reply with your machine and JDK configuration. Thanks! ND ----- Original Message ----- From: André Warnier <a...@ice-sa.com> Date: Thursday, February 11, 2010 3:26 pm Subject: Re: Basic/Form-based authentication with Tomat 6.0 > Christopher Schultz wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Nicholas, > > > > On 2/11/2010 3:19 PM, Nicholas Duan wrote: > >> I am not sure if this is a configuration problem, but I can't > get the > >> basic/form-based authentication working on Tomcat 6.0, and couldn't > >> even get the protected jsp example > >> (http://localhost:8080/examples/jsp/security/protected) that > bundled>> with the tomcat distribution. > >> > >> I've tried the latest tomcat 6.0.24 on both 32-bit windows and > 64-bit > >> linux, and didn't get it to work. I've also tried to configure my > >> own MemoryRealm that uses the default tomcat-users.xml file and > still>> could get it to work. I never had this problem with Tomcat > 5...> > > Could you describe "didn't work" in a bit more detail? Did your > server> catch fire? Did your web browser crash? Did Tomcat crash? > Or, were you > > asked for your password repeatedly even though you think you were > > entering it correctly? > > > > Certainly, providing some of your configuration along with your next > > post would be helpful. > > > Apart from the above, and just for fun : > have you verified that the section with the usernames, roles etc.. > in > tomcat-users.xml is not commented-out ? > > -------------------------------------------------------------------- > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org