Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat 7.0.20 security constraint with /webapps

 
Filipe Vieira
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

<TOMCAT>
-->webapps/
---->MyAppletFolder/
------>MyApplet.jar
------>index.html (this one invokes the applet)
-->axis2/
---->web.xml
-->...
-->...
-->...

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.

Thanks

 
Tim Holloway
Saloon Keeper
Pie
Posts: 18272
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's a rather odd URL pattern you're using.
 
Rob Spoor
Sheriff
Pie
Posts: 20605
60
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Indeed. URL patterns are relative to the web application's root folder. Get rid of the /../.. and it should work.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic