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
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
Author

Tomcat 7.0.20 security constraint with /webapps

Filipe Vieira
Greenhorn

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:

<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

Joined: Jun 25, 2001
Posts: 16061
    
  21

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
Sheriff

Joined: Oct 27, 2005
Posts: 19693
    
  20

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat 7.0.20 security constraint with /webapps