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

Dear coleagues,

I am trying to make an RMI call from my servlet.
I use Linux RH5.2, Apache 1.3.11, JServ 1.1 under Sun JDK 1.2.2.
The problem is with the security manager.

The code for installing a security manager is as follows:

----------- cut --------------
    // Install RMI security manager
    if( System.getSecurityManager() == null )

      System.setSecurityManager(new RMISecurityManager());
      out.println("RMI Security Manager is installed.");
    } else {
      out.println("RMI Security Manager is already installed.");
    }
----------- cut --------------

The output is: "RMI Security Manager is already installed."

The call from an application works fine, but JServ sets some security
manager which does not allow me to load stub class. And I do not know how I
could set my own security manager instead of the default one. Policy file
for VM running JServ has "AllPermissions".
I read somewhere that JServ installs a security manager for every zone.
But how I could specify the proper class?

Could anyone give me a hint.

Best regards
Vlad Eliseev



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