File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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 Java
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
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
I agree. Here's the link:
subject: Tomcat 7.0.20 security constraint with /webapps
security-constraint login error
Tomcat BASIC Authentication Problem.
web.xml security constraint won't work with roles
About the security and role in web.xml
Redirection after realm authentication
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014