tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Williams, Mark L CIV NSWC-PC" <>
Subject RE: 404 response form authentication problem
Date Mon, 30 Aug 2004 13:38:56 GMT
You might check to be absolutely sure your login pages aren't being
construed as being in your protected area. I had some trouble getting
the <url-pattern> in the web.xml <security-constraint> tag to do what I


-----Original Message-----
From: Jon Wilmoth []
Sent: Monday, August 30, 2004 1:11
Subject: 404 response form authentication problem

I have a login form that works fine in my local
development environment with a single webapp deployed
to the default localhost "host".  However, in a hosted
environment with multiple "host"s defined in my
server.xml Tomcat returns a 404 response and a blank
page.  The html form follows the servlet spec
definition, the application deploys successfully in
(confirmed via log files), and I'm successfully
redirected to my login page when trying to access a
protected resource.  I have cookies enabled in my
browser and I see that a call to
request.isRequestedSessionIdFromCookie() = true in my
log files.  If I change the web.xml's <auth-method>
element from FORM to BASIC, I get challenged for a
login and then successfully redirected.  I'm at a loss
for why this isn't working any help/thoughts are
greatly appreciated!

<form method="POST" name="login"
<input type="text" name="j_username"/>
<input type="password" name="j_password" />
<input type="submit" name="Submit"
value="Login"/><input type="reset" name="cancel"

I've defined a host in the server.xml that uses a
sub-domain.  I also have another host running on the
same Tomcat instance

<Host name="" debug="99"
appBase="webapps" unpackWARs="true" autoDeploy="true"
    	xmlValidation="true" xmlNamespaceAware="false">

View raw message