RESOLVED:

I switched the order of the constraints, making both Tomcat and Jetty happy.
The spec says to use the most specific matching constraint.  Jetty is doing
that.  Tomcat, on the other hand, seems to be using the first match it
finds.

Jim

----- Original Message -----
From: "Jim Crossley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 16, 2002 2:41 PM
Subject: [JBoss-user] Help with security-constraints please


> I have a web-app that I would like to be able to deploy on both jboss
> bundles:  jboss3/jetty and jboss3/tomcat4.  I'm trying to restrict all
> content EXCEPT my images.  The following works great on jetty, but not on
> tomcat.  The first request for an image file results in my login form
being
> displayed with a bunch of broken images.  Does anyone know what I can
change
> to make both containers work the same?
>
>   <security-constraint>
>     <web-resource-collection>
>       <web-resource-name>The whole site</web-resource-name>
>       <url-pattern>/</url-pattern>
>       <http-method>POST</http-method>
>       <http-method>PUT</http-method>
>       <http-method>GET</http-method>
>     </web-resource-collection>
>     <auth-constraint>
>       <role-name>*</role-name>
>     </auth-constraint>
>   </security-constraint>
>
>   <security-constraint>
>     <web-resource-collection>
>       <web-resource-name>Images</web-resource-name>
>       <url-pattern>/images/*</url-pattern>
>       <http-method>POST</http-method>
>       <http-method>PUT</http-method>
>       <http-method>GET</http-method>
>     </web-resource-collection>
>   </security-constraint>
>
> Thanks,
> Jim
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: Jabber - The world's fastest growing
> real-time communications platform! Don't just IM. Build it in!
> http://www.jabber.com/osdn/xim
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing 
real-time communications platform! Don't just IM. Build it in! 
http://www.jabber.com/osdn/xim
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to