----------------------------------------------------------------
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!!!
----------------------------------------------------------------
Hi
I had some problems using a RMI client from a Servlet. You should not
instantiate a RMISecurity manager in your RMI client code as there is
already a SecurityManager instantiated by Apache Jserv and there can
only be one. .i.e. do not do System.setSecurityManager(new
RMISecurityManager())
in the Servlet RMI client and it should be ok.
Cheers
Feargal
=======================================================
Hi All,
Thanks.
I tried the suggestion. But found that the
security manager was already installed! And
still I got the same error message:
My debug code outputs:
RMI Security manager already initialised
Error: alternative access of remote object failed
java.rmi.RMISecurityException: security.checkConnect: To
192.168.0.11:1099
BTW this is for a jdk1.1.x setup.
So ... any other ideas?
Regards
Fred
Alexander Jesse wrote:
>
> Hi,
>
> the standard java-securitymanager will always produce such
> a message.
> Not just for Servlet-RMI but for ALL RMI use such a call:
>
> System.setSecurityManager(new RMISecurityManager());
>
> to get over your problem.
>
> good luck
> Alexander
--
--------------------------------------------------------------
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]