tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: Login page not showing up with configured realm.
Date Sun, 27 Feb 2011 14:49:08 GMT
2011/2/27 Josh Gooding <josh.gooding@gmail.com>:
> My Main.jsp is in the root directory of the webapps/[my proj] folder and the
> Login.jsp is in /webapps/[my proj]/private.  So now for the issues.  When I
> login with j_security_check, I get no errors, so as much as I hate making
> assumptions, I'm going to assume that nothing is wrong with the realm.
> However what's happening is that when I login, it's just reverting back to
> the login page.  I checked the catalina.out and localhost.[current day] logs
> and I'm not getting an errors.  Any ideas on what could cause this?  It's
> been forever and a day since I set up my last realm.
>

How are you are triggering your login?

Usually that is
1. GET some protected resource
2. Tomcat returns the login form instead of the resource
3. User fills the form and POSTs it to j_security_check
4. The resource requested in (1) is displayed.

I do not remember whether the resource is displayed as response for
(3) or whether a redirect to the original URL is being sent to the
browser. It does not matter.

The essence is that in (4) you are seeing what you were requesting in
(1). So, if you requested your Login.jsp, you will see your Login.jsp
after successfully typing in the password.

BTW, if you want to run Tomcat with a debugger,
http://wiki.apache.org/tomcat/FAQ/Developing


Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message