This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat 7.0.20 security constraint with /webapps Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 7.0.20 security constraint with /webapps" Watch "Tomcat 7.0.20 security constraint with /webapps" New topic

Tomcat 7.0.20 security constraint with /webapps

Filipe Vieira

Joined: Nov 07, 2011
Posts: 6
Hi again,

I'm having dificulties adding a security constraint to my Java Applet 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:

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.

Please help.


Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15951

That's a rather odd URL pattern you're using.

Customer surveys are for companies who didn't pay proper attention to begin with.
Rob Spoor

Joined: Oct 27, 2005
Posts: 19651

Indeed. URL patterns are relative to the web application's root folder. Get rid of the /../.. and it should work.

How To Ask Questions How To Answer Questions
It is sorta covered in the JavaRanch Style Guide.
subject: Tomcat 7.0.20 security constraint with /webapps
Similar Threads
About the security and role in web.xml
Redirection after realm authentication
security-constraint login error
Tomcat BASIC Authentication Problem.
web.xml security constraint won't work with roles