I reverted back to 5.0.25 and it sorta works. Using Netscape on linux. 5.5.7 does not work for me.
Now, however, when I attempt to access a resource protected by BASIC HTTP authentication. It DOES NOT prompt me for credentials, but rather forwards to my error-page regardless. Yuck! That's not right either! I only want it to forward to <error-page> on a code 401 _when the login attempt fails_ and it should prompt the user for that, which it doesn't. :( Darren On Sun, 2005-03-06 at 17:10 -0500, Darren Govoni wrote: > Thanks for the response. > > I tried many variations. Nothing works for me (running linux, > jdk1.5.0_01). > > I also added an error-page clause to the tomcat web.xml as well as my > webapp. It always jumps to the default page. > > Here's what mine looks like. Wish it worked. :( > > > <web-app xmlns="http://java.sun.com/xml/ns/j2ee" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" > version="2.4"> > > .....stuff..... > > <error-page> > <error-code>401</error-code> > <location>/portal/nologin.jsp</location> > </error-page> > </web-app> > > On Sun, 2005-03-06 at 09:36 -0800, Chuck Williams wrote: > > > Darren Govoni writes (3/6/2005 7:16 AM): > > > > >Hi, > > > I tried adding. > > > > > ><error-page> > > > <error-code>401</error-code> > > > <location>/error.jsp?type=401</location> > > ></error-page> > > > > > >to my web.xml page (it was in the proper location, etc.) but my server > > >still produces the default error > > >page. When I tried on my earlier 5.0.25 tomcat, it wouldn't even bring up > > >my resources, which was weird. > > > > > >Anyway, I tried various codes and locations. Nothing worked. > > > > > >Any tips on this? > > > > > > > > As location takes a war-path and not a url, I suspect the "?type=401" is > > your problem. This mechanism works fine for me when just using paths in > > the war file. > > > > Chuck > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
