I don't know why you'd be getting that error with Apache-Jserv - as far as I
know, Apache-Jserv doesn't set a security manager, so if your rmi-security
manager is the default one, then you shouldn't be getting this error. I'd
inspect the security manager that's getting set.
However, with Jrun, I know that the default security manager that get's set
doesn't allow the servlet engine to make rmi connection. With jrun, you'll have
to specify a different security manager that allows connections to be made.
Here's a clip of a previous email that I responded to regarding this issue:
-------------------------
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
akashmaheshwari
Sent: Wednesday, August 11, 1999 7:05 AM
To: [EMAIL PROTECTED]
Subject: facing RMI Exception
I am using
jserv-apache
and
jrunpro-NES3.6
when i am making an RMI call from a servlet
it is raising following exception
java.rmi.RMISecurityException: security.checkConnect: To itl-pc-5109:-1
at
java.rmi.RMISecurityManager.checkConnect(RMISecurityManager.java:268)
at java.net.InetAddress.getLocalHost(InetAddress.java:518)
at
sun.rmi.registry.RegistryHandler.registryStub(RegistryHandler.java:41)
at
java.rmi.registry.LocateRegistry.getRegistry(LocateRegistry.java:107)
at java.rmi.Naming.getRegistry(Naming.java:149)
at java.rmi.Naming.lookup(Naming.java:48)
at pdn.download.DownloadClient.<init>(DownloadClient.java:28)
at pdn.download.DownloadClient.<init>(DownloadClient.java:18)
at S.getLatestFirmwareVersions(S.java:27)
at S.doGet(S.java:16)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at
org.apache.jserv.JServConnection.processRequest(JServConnection.java)
at org.apache.jserv.JServConnection.run(JServConnection.java)
at java.lang.Thread.run(Thread.java:466)
thanx in advance
akash
___________________________________________________________________________
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