I am trying to allow any user to access my application, keeping some
constraints to certain resources only...
if I edit by hand the granted.policy file it works:
grant {
permission java.security.AllPermission "/";
}
now I am trying to define such a permission through the web.xml file:
<security-constraint>
<display-name>Trying to allow others</display-name>
<web-resource-collection>
<web-resource-name>Test</web-resource-name>
<description />
<url-pattern>/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
<http-method>PUT</http-method>
<http-method>DELETE</http-method>
</web-resource-collection>
</security-constraint>
it is not working.......
how to do that ?
--
------------------------------------------
Felipe Gaścho
10+ Java Programmer
CEJUG Senior Advisor