tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dick Eastlake <dickeastl...@yahoo.com>
Subject IE & Firefox work fine, Mac, Google and Safari don't authenticate
Date Tue, 05 Apr 2011 21:49:27 GMT
Users can authenticate to the secured area of my Website using IE and Firef=
ox; no problem.=A0 However,Macs, Google and Safari browsers cannot log in.=
=0A=0AMacs, Google and Safari browsers go straight to the form-error-page "=
not_auth.html".=0A=0APlease help!=0A=0A=0AI'm using a simple form-based aut=
hentication method.=0A=0A=0AHere's my WEB.XML (from inside the webapp, not =
the conf):=0A=0A<web-app xmlns=3D"http://java.sun.com/xml/ns/j2ee"=0A=A0=A0=
=A0 xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"=0A=A0=A0=A0 xsi=
:schemaLocation=3D"http://java.sun.com/xml/ns/j2ee=0Ahttp://java.sun.com/xm=
l/ns/j2ee/web-app_2_4.xsd"=0A=A0=A0=A0 version=3D"2.4">=0A<display-name>Pro=
gressive Commerce Inc</display-name>=0A=0A<description>=0A=A0=A0=A0 Progres=
sive Website=0A</description>=0A=0A<security-constraint>=0A=A0=A0=A0 <displ=
ay-name>Progressive Security=0A Constraint</display-name>=0A=A0=A0=A0 <web-=
resource-collection>=0A=A0=A0=A0 =A0=A0=A0 <web-resource-name>Dealer Area</=
web-resource-name>=0A=A0=A0=A0 =A0=A0=A0 <url-pattern>/catalog/dealer/*</ur=
l-pattern>=0A=A0=A0=A0 </web-resource-collection>=0A=A0=A0=A0 <auth-constra=
int>=0A=A0=A0=A0 =A0=A0=A0 <role-name>dealer</role-name>=0A=A0=A0=A0 </auth=
-constraint>=0A</security-constraint>=0A<security-role>=0A=A0=A0=A0 <role-n=
ame>dealer</role-name>=0A</security-role>=0A=0A<security-constraint>=0A=A0=
=A0=A0 <display-name>Joe Parts Security Constraint</display-name>=0A=A0=A0=
=A0 <web-resource-collection>=0A=A0=A0=A0 =A0=A0=A0 <web-resource-name>Joe =
Parts=0A Area</web-resource-name>=0A=A0=A0=A0 =A0=A0=A0 <url-pattern>/joepa=
rts/admin/*</url-pattern>=0A=A0=A0=A0 </web-resource-collection>=0A=A0=A0=
=A0 <auth-constraint>=0A=A0=A0=A0 =A0=A0=A0 <role-name>joe</role-name>=0A=
=A0=A0=A0 </auth-constraint>=0A</security-constraint>=0A=0A<security-role>=
=0A=A0=A0=A0 <role-name>joe</role-name>=0A</security-role>=0A=A0=0A<login-c=
onfig>=0A=A0=A0=A0 <auth-method>FORM</auth-method>=0A=A0=A0=A0 <realm-name>=
Progressive Form-Based Authentication Area</realm-name>=0A=A0=A0=A0 <form-l=
ogin-config>=0A=A0=A0=A0 =A0=A0=A0 <form-login-page>/catalog/dealer_door.js=
p</form-login-page>=0A=A0=A0=A0 =A0=A0=A0=0A <form-error-page>/not_auth.htm=
l</form-error-page>=0A=A0=A0=A0 </form-login-config>=0A</login-config>=0A=
=0A=0A<resource-ref>=0A=A0=A0=A0 =A0 <description>=0A=A0=A0=A0 =A0=A0=A0 jd=
bc/progressive=0A=A0=A0=A0 =A0 </description>=0A=A0=A0=A0 =A0 <res-ref-name=
>=0A=A0=A0=A0 =A0=A0=A0 jdbc/progressive=0A=A0=A0=A0 =A0 </res-ref-name>=0A=
=A0=A0=A0 =A0 <res-type>=0A=A0=A0=A0 =A0=A0=A0 javax.sql.DataSource=0A=A0=
=A0=A0 =A0 </res-type>=0A=A0=A0=A0 =A0 <res-auth>=0A=A0=A0=A0 =A0=A0=A0 Con=
tainer=0A=A0=A0=A0 =A0 </res-auth>=0A=A0=A0=A0 =A0 <res-sharing-scope>=0A=
=A0=A0=A0 =A0=A0=A0 Shareable=0A=A0=A0=A0 =A0=0A </res-sharing-scope>=0A</r=
esource-ref>=0A=0A<welcome-file-list>=0A=A0=A0=A0 <welcome-file>index.html<=
/welcome-file>=0A</welcome-file-list>=0A=A0=A0=A0 =0A</web-app>=0A=0AHere's=
 the code from my jsp=0A=0A=A0=A0 =A0 <jsp:useBean id=3D"dlb" scope=3D"sess=
ion" class=3D"com.dealer.beans.DealerBean"/>=0A=0A=A0=A0=A0 <body bgcolor=
=3D"#222324" text=3D"#000000">=0A=A0=A0=A0 =A0=A0=A0 <form method=3D"POST" =
action=3D"<%=3D response.encodeURL("j_security_check") %>">=0A=A0=A0=A0 =A0=
=A0=A0 =A0=A0=A0 <p>&nbsp;</p>=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 <div align=
=3D"center"> </div>=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 <table width=3D"431" bo=
rder=3D"0" cellspacing=3D"0" cellpadding=3D"0">=0A=A0=A0=A0=0A =A0=A0=A0 =
=A0=A0=A0 =A0 <tr bgcolor=3D"#FFFFFF"=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 =
=A0=A0=A0 <td>=0A=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 </td>=0A=A0=A0=
=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 <td>=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=
=A0=A0 =A0=A0=A0 <table>=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=
=A0 <tr>=0A=A0=A0=A0=0A =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 <=
td width=3D"160"><font =0Acolor=3D"009999"><b><font face=3D"Arial, Helvetic=
a, =0Asans-serif">Email=A0=A0=A0 =0AAddress:</font></b></font></td>=0A=A0=
=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0=0A =A0=A0=A0 =A0=A0=A0 <td width=3D"14=
7">=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 =A0=A0=A0 =A0=A0=A0 =A0=
=A0=A0 <input tabindex=3D"1" type=3D"text" name=3D"j_username" value=3D"=0A=
<%=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 out.print(dlb.getEmail() +=
 "\"");=0A%>=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 >=A0 =A0=A0=A0 <=
/td>=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 <td widt=
h=3D"49">&nbsp;</td>=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 =A0=A0=A0 =A0=A0=
=A0 </tr>=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 =A0=A0=A0 =A0=A0=A0 <tr bgcol=
or=3D"#FFFFFF">=A0=A0=A0=0A =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =0A=A0=A0=A0 =A0=
=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 <td width=3D"160" =0Aheight=
=3D"20"><font color=3D"009999"><b><font face=3D"Arial,=0A Helvetica, =0Asan=
s-serif">Password:</font></b></font></td>=0A=A0=A0=A0 =A0=A0=A0
=A0=A0=A0 =
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 <td width=3D"147" height=3D"20">=0A=A0=A0=A0 =
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 =A0=A0=A0 =A0=A0=A0 <input tabindex=3D"2"=
 type=3D"password" name=3D"j_password">=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=
=A0=A0 =A0=A0=A0 =A0=A0=A0 </td>=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 =A0=A0=
=A0 =A0=A0=A0 </tr>=0A=A0=A0=A0=0A =A0=A0=A0 =A0=A0=A0 =A0 =A0=A0=A0 =A0=A0=
=A0 <tr bgcolor=3D"#FFFFFF">=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=
=A0=A0 =A0=A0=A0 <td width=3D"37">&nbsp;</td>=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=
=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 <td width=3D"38">&nbsp;</td>=0A=A0=A0=A0
=
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 <td width=3D"160"></td>=
=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 <td width=3D=
"147">=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 =A0=A0=A0 =A0=A0=A0 =
=A0=A0=A0 <div align=3D"center">=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0=0A =A0=A0=
=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 <input tabindex=3D"3" type=3D"s=
ubmit" value=3D"Log In">=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 =A0=
=A0=A0 =A0=A0=A0 =A0=A0=A0 </div>=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0=
 =A0=A0=A0 =A0=A0=A0 </td>=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=
=A0 =A0=A0=A0 <td width=3D"49">&nbsp;</td>=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0
=
=A0 =A0=A0=A0 =A0=A0=A0 </tr>=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 </t=
able>=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 </table>=0A=A0=A0=A0 =A0=A0=A0 </form=
>=0A=A0=A0=A0=0A </body>=0A=0AHere's the access log=A0 the entries at 15;34=
 are using Firefox,=A0 the ones at 15:42 are Google's browser=0A=0A=0A69.20=
7.4.57 - - [27/Mar/2011:15:34:16 -0700] "GET /Dynacorn/catalog/dealerwelcom=
e.jsp HTTP/1.1" 200 1870=0A69.207.4.57 - - [27/Mar/2011:15:34:27 -0700] "PO=
ST /Dynacorn/catalog/authControl.jsp HTTP/1.1" 302 -=0A69.207.4.57 - - [27/=
Mar/2011:15:34:27 -0700] "GET /Dynacorn/catalog/dealer/dealerwelcome.jsp=0A=
 HTTP/1.1" 200 1893=0A69.207.4.57 - - [27/Mar/2011:15:34:30 -0700] "POST /D=
ynacorn/catalog/dealer/j_security_check HTTP/1.1" 302 -=0A69.207.4.57 - sor=
@sor.com [27/Mar/2011:15:34:30 -0700] "GET /Dynacorn/catalog/dealer/dealerw=
elcome.jsp HTTP/1.1" 500 2158=0A69.207.4.57 - - [27/Mar/2011:15:42:14 -0700=
] "GET /Dynacorn/catalog/dealerwelcome.jsp HTTP/1.1" 200 1870=0A69.207.4.57=
 - - [27/Mar/2011:15:42:20 -0700] "POST /Dynacorn/catalog/authControl.jsp H=
TTP/1.1" 302 -=0A69.207.4.57 - - [27/Mar/2011:15:42:20 -0700] "GET /Dynacor=
n/catalog/dealer/dealerwelcome.jsp HTTP/1.1" 200 1893=0A69.207.4.57 - - [27=
/Mar/2011:15:42:23 -0700] "POST /Dynacorn/catalog/dealer/j_security_check H=
TTP/1.1" 200 676=0Athere are no more entries=0A=0A=0AAgain, IE & Firefox wo=
rk fine, Mac, Google and Safari don't.=0A=0AThanks for your help,=0ADick
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message