• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

tomcat permissions

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all!

I'm currently trying to get a java applet running on my tomcat 6.0.20. The applet uses System.Properties to access a property file in the user's Home folder.

I read online, that I have to edit catalina.policy, which I did. I granted all Webapplications the right to read user.home:



I restarted tomcat with -securty, so that it would use the Security Manager. Well it denied access again so I tried to grant all Webapplications the right to access all Properties and I tried setting permissions specifically for the folder my Applet was stored in but that changed nothing. I also tried to access the file directly, but again permission denied to access the file.

I've googled this problem for some hours now and I still haven't got a clue what could be the error.

I'm running ubuntu 9.04 (Jaunty Jackalope).

thanks for your help!
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

Changing the security settings of Tomcat's (server-side) JVM won't accomplish anything - what comes into play here are the security settings of the applet's (client-side) JVM. You can affect those by signing the applet, or by changing the policy file on the client machine; see HowCanAnAppletReadFilesOnTheLocalFileSystem for information on both approaches.
 
Konstantin Kreuzer
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for your help!
 
Dinner will be steamed monkey heads with a side of tiny ads.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic