----------------------------------------------------------------
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 Feargal,

You wrote:
>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.

I read your advice and tried it immediately, and
it worked!! I had been moving towards this myself,
slowly ... I had written my own Security Manager
which I used to shut up the checkConnect exception,
but found when I tried to use the applet, that I
still got a RMISecurity exception BUT this time
clearly identified as belonging to apj11 (is that it?)
So I figured that there was a another RMI Security
manager involved. Your advice just clicked for me, and
whammo! Fabulous!

I have a couple of comments. It seems the conflict
between the existence of the Two security managers
is a problem that generates a checkConnect exception.
How so? I thought that we could only have _one_
security manager in a system? I mean, I _had_ checked
_before_ loading my own as to whether one existed at
system level, and _NO_ there was not! Obviously I
was missing something about the way the JServ works!
It would be nice to have this explained somewhere!

My second comment is that I also studied a number of
references, including the O'Reilly Servlet book, and
the new 'Professional Java Server Programming' book,
both of which are good books! BUT both had advice that
in this case at least was inappropriate for JServ ...
clearly, "... the first thing we need to do ... is to
install the security manager ... " page 248, Prof Server
Programming, ... is wrong!

I appreciate your help! Certainly worth a fine ale or
two! :)

Regards
Freddo





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