My project-name is "Server" - but I guess that your answer still is
correct. Thanks!
Den 19-08-2010 05:06, Christopher Schultz skrev:
-----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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org