wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes access denied, SecurityManager problem! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "access denied, SecurityManager problem!" Watch "access denied, SecurityManager problem!" New topic
Author

access denied, SecurityManager problem!

hao li
Greenhorn

Joined: Jul 24, 2002
Posts: 21
I did not use any code like:
if (System.getSecurityManager() == null) {System.setSecurityManager(new RMISecurityManager());}
in both server side and client side. because I have not use jar yet, so
in client side, I use command:
java suncertify.fbnClient.FBNPanel hostname portNumber datafilename.
in server side I use command:
java suncertify.fbnConnectionFactoryImpl portNumber datafilename(s)
The system tells me that access denied.
it means that SecurityManager has some problem.
Please help me.
thanks.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Two things.
1. make a policy file that grants all access for the client.
2. Don't use a SecurityManager on either side, you don't need it at anytime.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
Don't get me started about those stupid light bulbs.
 
subject: access denied, SecurityManager problem!
 
Similar Threads
how to set security file
how to set host in RMI
Error When Writing Text to Unix File
sequrity problem in clint side
exception???