• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

security permission for webapp

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

I am debugging web applicatoin deployed on my machine using tomcat 4.X
Web app url is
http://localhost:8000/app.50-foundation

It uses some applets which have certificates. for debugging I have rebuilt the .jar files in web app (modification in applet code ) and added them in web app. Now when I run web app I AccessControlException for obvious reason that my changes do not have cert. To overcome this issue I modified java.policy file in my JRE location with follwing permission.

grant codeBase "http://localhost:8000/app.50-foundation"
{
permission java.security.AllPermission;
};

This fails to give permission for my changed code. If I use

grant {
permission java.security.AllPermission;
};

It works fine.

Any clues on this ?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic