tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Configure read/write-access in TomCat
Date Thu, 19 Aug 2010 03:06:30 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mr. Andersen,

On 8/18/2010 7:16 AM, K A wrote:
> <security-constraint>
>   <web-resource-collection>
>     <web-resource-name>user open part</web-resource-name> 
>     <url-pattern>/Server/user/*</url-pattern> 
>   </web-resource-collection>
> 
>   <auth-constraint>
>     <role-name>user</role-name> 
>     <role-name>admin</role-name> 
>   </auth-constraint>
> </security-constraint>

Your URL pattern is wrong: the URL should be relative to the context,
not to the server. Presumably, your webapp's name is "Server", and the
context path is "/Server". That means that your URL pattern ought to be:

<url-pattern>/user/*</url-pattern>

I couldn't see if anyone actually answered your question, here, or just
argued about how well-documented conf/web.xml was. Hope that helps.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxsn7YACgkQ9CaO5/Lv0PD8wQCgqhQO4lZakkFERdZuoOEWOHih
TXwAn1wbwPsnpxnV8a92qjjAtR0tWSJt
=P2ht
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message