• 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

Where to place the java.policy file

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear All
I am able to connect to the rmi server from an application.when i try to connect to RMI server from a servlet its giving the following exeception.
java.security.AccessControlException: access denied (java.net.SocketPermission t
kd-imsyb-01.tk.jp.chase.com resolve)
I realized that its not able to locate the java.policy file.
Please tell me where should i copy the java.policy file.
tomcat is in the following directory.
c:\programfiles\apachegroup\tomcat4.1\....
Regards
Kiran
Regards
Ramesh
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If your using a MSWindows machine, try the following to create a .java.policy file
- Go into Dir where you have your j2sdk installed eg, <c:/j2sdk1.4.1_05/bin>
-Launch policytool.exe
-If you don't already have a .java.policy file it will display in a small window 'Could not find .java.policy file in <target_dir>
This is where you want to create a java.policy file and save it. To do this:
-Click on Add Policy Entry button.
-Click on Add Permission button.
-Select All Permission from Permission combobox.
-Click on OK.
-Click on Done.
-Go to file->Save As
-File name will be called .java.policy
And Target Directory should be <target_dir> see above.
Example of target directory:
c:/Documents and Settings/Admistrator/.java.policy

Hopefully this should work.
amo.
-
 
Hang a left on main. Then read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic