
Signature
Regards,
Roland de Ruiter
` ___ ___
`/__/ w_/ /__/
/ \ /_/ / \
Hi Roland
I did that as well, with the same results, the thing is i cant even get it
to work on 1 pc. I heared you dont need the policy file for one pc. The
question remains, how can it work without the RMI style and now i get an
access denied error
Thanks
>> I have this in my policyfile
>> grant{
[quoted text clipped - 34 lines]
> java -Djava.security.policy=H:\sapa\local.policy -cp "H:\sapa\sapa"
> RMIServer
Daniel - 12 Jun 2005 22:58 GMT
For curious reasons i get another eroor now, it sais
Driver not found in DataModel, strange couse it is working without rmi, what
can be wrong here?
Danny
private void initDriverClass()
{
try
{
Class.forName("org.postgresql.Driver");
}
catch (ClassNotFoundException e)
{
System.out.println("driver not found in DataModel");
System.exit(1);
}
}
> Hi Roland
> I did that as well, with the same results, the thing is i cant even get it
[quoted text clipped - 41 lines]
>> java -Djava.security.policy=H:\sapa\local.policy -cp "H:\sapa\sapa"
>> RMIServer
Roland - 12 Jun 2005 23:24 GMT
> Hi Roland
> I did that as well, with the same results, the thing is i cant even get it
[quoted text clipped - 42 lines]
>>java -Djava.security.policy=H:\sapa\local.policy -cp "H:\sapa\sapa"
>>RMIServer
Maybe you need to specify also that you want the program to run with a
security manager, by adding the -Djava.security.manager option:
java -Djava.security.manager -Djava.security.policy=H:\sapa\local.policy
ETC.
According to
<http://java.sun.com/j2se/1.4.2/docs/guide/security/spec/security-spec.doc6.html#28400>
you could also try with double equals sign:
java -Djava.security.policy==H:\sapa\local.policy ETC.
Another thing I doubt that could make a difference is to use the IP
address instead of 'localhost' in the permissions. I don't think it
matters but you could give it a try:
permission java.net.SocketPermission "127.0.0:5432", "connect,resolve";
ETC.
Specifying a codebase in the grant could make a difference, though:
grant codeBase "file:///H:/sapa/sapa/" {
permission java.net.SocketPermission ETC.
}
It's years ago I played with RMI, so I can't remember if you can run a
RMI server without the need of a security manager or policy file.
If you haven't already had a peek over there, then the Java RMI tutorial
might give some clues:
<http://java.sun.com/docs/books/tutorial/rmi/index.html>

Signature
Regards,
Roland de Ruiter
` ___ ___
`/__/ w_/ /__/
/ \ /_/ / \