----------------------------------------------------------------
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 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
> 
> -----Original Message-----
> From: fred
> To: java-apache-users
> Sent: 11/17/99 10:07 AM
> Subject: RMI Security Failure ...
> 
> ----------------------------------------------------------------
> 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 All,
> 
> I have Apache/Jserv/GSP setup and working nicely,
> running off a RedHat 5.2 Linux setup. On remote
> machines I have a database which is accessed on
> my lan via a RMI interface. Access to the database
> via standalone applications is just fine. But I have
> tried just now to build the RMI access routines into
> a Servlet that I have running, so that some database
> access can be given to the Web, via the Servlet.
> When I try this I keep getting an exception:
> java.rmi.RMISecurityException: security.checkConnect: 192.168.0.11:1099
> 
> I understand that this is not a terminal problem, but
> one of configuring my system ... how can I fix this
> problem, or better, is there some detail somewhere of
> how to get RMI working via a servlet? I have tried a
> number of things, but none work ... I think I am
> missing some point here!
> 
> Are there examples anywhere? :)
> 
> Thanks for any help.
> Regards
> Fred
> 
> --
> --------------------------------------------------------------
> 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]


--
--------------------------------------------------------------
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]

Reply via email to