aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 15628

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: 19538

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
I agree. Here's the link:
subject: Tomcat 7.0.20 security constraint with /webapps
Similar Threads
security-constraint login error
web.xml security constraint won't work with roles
About the security and role in web.xml
Tomcat BASIC Authentication Problem.
Redirection after realm authentication