you have to explicitly set the security manager in the jrun configuration.  Here's how 
to do it from a previous email...




I finally figured out why I couldn't do RMI calls on Jrun.  It turns out that it
was the security manager that gets installed by default by Jrun.  You need to
load a new SecurityManager in the Jrun JVM.  The one that I used was the open
one at:

http://www.egroups.com/group/jrun-interest/3.html

So, you need to take this class, compile it, and put the class somewhere in
Jrun's JVM's classpath.  This is an open security manager, so you'd probably
want to modify it to be more in tune with you security scheme in a production
environment.

Then, in ../jsm-default/properties/jsm.properties file, set the security manager
to :MyCustomSecurityManager, ie:

java.securitymanager=MyCustomSecurityManager

restart Jrun, and then the security.checkConnect: To:localhost:1099 errors
should disappear... =)



-------------------------
Richard M. Yumul
mailto:[EMAIL PROTECTED]
DTAI Incorporated
http://www.dtai.com
(619)542-1700 � fax:(619)542-8675

> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Lars
> Hagrot
> Sent: Tuesday, October 19, 1999 4:53 AM
> To: [EMAIL PROTECTED]
> Subject: JRun 2.3.3 and RMISecurityManager
>
>
> I have a problem with JRun 2.3.3 and RMISecurityManager.  My servlets
> sets the RMISecurityManager because they want to lookup some
> RMI-servers.
>
> They are not allowed to read files (props-files) and connect. It seems
> like they are not allowed to do anything at all.
>
> How do I get all this to work?
>
> /Lars Hagrot
>
> PS
> If I do this from an ordinary javaapp everything works fine but from
> servlets it does not work at all.
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to