Hello,

I am having trouble getting a Servlet to access a RMI object. The Servlet is
called 'Logon' and the remote object is UserServer. The remote object is
reachable as a test program can still use it. Although the test program
is not a servlet.

In init() I call
        System.setSecurityManager (new RMISecurityManager())
but I am still getting this AccessControlException.

java.security.AccessControlException: access denied (java.net.SocketPermission
127.0.0.1:1099 connect,resolve)

2001-03-08 11:51:47 - Ctx( /ptracker ):
Exception in init  Unable to connect to remote server: UserServer -
javax.servlet.ServletException: Unable to connect to remote server: UserServer
at Logon.init(Logon.java:26) at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at
org.apache.tomcat.core.Handler.init(Handler.java:215) at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at
org.apache.tomcat.core.Handler.service(Handler.java:254) at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.jav
 a:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at
java.lang.Thread.run(Thread.java:484)

Can anyone tell me how to disable security as this is a University project so
security is not an issue I am concerned with.

Thank you in advance for any help you can give me!

--
Cheers
Rob <[EMAIL PROTECTED]>

___________________________________________________________________________
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