----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Danijela Schwartz wrote:
> Hi,
> i have a Servlet which is a RMI Client, but it doesn' work:
> security.checkConnect: To 10.10.10.223:1099
> java.rmi.RMISecurityException: security.checkConnect: To
> 10.10.10.223:1099
> If i implement the code in an application, which is an rmi client, the
> rmi connection works fine.
> Maybe anyone can tell me, if and what do I have to configure in jserv,
> to run a servlet as a RMI Client.
> Server is an apache 1.3.6 with SuSe 6.0 and jserv 1.0
> thanks
> ds
You have to set your own policy.
For example, create a file with :
grant {
permission java.net.SocketPermission "*:1-65535", "connect,
accept, resolve";
};
and add -Djava.security.policy=/path/to/your/file/filename to your
command line.
Ludo.
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]