It sounds like it is saying that 'something.exe' is not a valid url-pattern.
Try '/something.exe' (or whatever the right url-pattern is for this
resource) instead.

-Max

----- Original Message -----
From: "Mike Mattox" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 18, 2003 7:55 AM
Subject: how can I unprotect my registration page?


> I'm using Struts & Tiles, and so far the security constraint is working.
> But I can't figure out how to unprotect the registration action.  So far I
> have:
>
>   <security-constraint>
>     <web-resource-collection>
>       <web-resource-name>All DO</web-resource-name>
>       <url-pattern>something.exe</url-pattern>
>       <http-method>GET</http-method>
>       <http-method>POST</http-method>
>     </web-resource-collection>
>     <auth-constraint>
>       <role-name>*</role-name>
>     </auth-constraint>
>   </security-constraint>
>   <security-constraint>
>     <web-resource-collection>
>       <web-resource-name>All DO</web-resource-name>
>       <url-pattern>*.do</url-pattern>
>       <http-method>GET</http-method>
>       <http-method>POST</http-method>
>     </web-resource-collection>
>     <auth-constraint>
>       <role-name>*</role-name>
>     </auth-constraint>
>   </security-constraint>
>
> Which gives me an exception:
>
> Caused by: java.lang.IllegalArgumentException: <url-pattern> something.exe
> invalide d'apr�s les contraintes de s�curit� (security constraint)
> at
>
org.apache.catalina.core.StandardContext.addConstraint(StandardContext.java:
> 1356)
>
> Which in english says "invalid according to security constraints".  Any
> ideas what I am doing wrong?
>
> Thanks,
> Michael
>
>
>
>
> ---------------------------------------------------------------------
> 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]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to