A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Elasticsearch in Action
this week in the
Tomcat 7.0.20 security constraint with /webapps
Joined: Nov 07, 2011
Nov 09, 2011 05:28:44
I'm having dificulties adding a security constraint to my
inside the webapps folder:
My folder tree is something like this:
------>index.html (this one invokes the applet)
Inside the axis2/web.xml, i have the following constraint:
<security-constraint> <display-name>your web app display name</display-name> <web-resource-collection> <web-resource-name>Protected Area</web-resource-name> <url-pattern>/../../MyAppletFolder/index.html</url-pattern> </web-resource-collection> <auth-constraint> <role-name>*</role-name> </auth-constraint> </security-constraint> <login-config> <auth-method>BASIC</auth-method> <realm-name>Axis Basic Authentication Area</realm-name> </login-config>
When I enter the address inside the browser: h*tp://localhost:8080/MyAppletFolder/index.html, it always open my applet without showing the login form.
Joined: Jun 25, 2001
Nov 09, 2011 06:00:04
That's a rather odd URL
Customer surveys are for companies who didn't pay proper attention to begin with.
Joined: Oct 27, 2005
Nov 09, 2011 06:52:18
Indeed. URL patterns are relative to the web application's root folder. Get rid of the
and it should work.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions
How To Answer Questions
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Tomcat 7.0.20 security constraint with /webapps
Redirection after realm authentication
security-constraint login error
Tomcat BASIC Authentication Problem.
About the security and role in web.xml
web.xml security constraint won't work with roles
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015