Hi , i think this could help you, but i am not sure :

this is file java.policy at jdk/jre/lib/security ( only a part ) :


// Standard extensions get all permissions by default

grant codeBase "file:${java.home}/lib/ext/*" {
     permission java.security.AllPermission;
};

// default permissions granted to all domains

grant {
     // Allows any thread to stop itself using the java.lang.Thread.stop()
     // method that takes no argument.
     // Note that this permission is granted by default only to remain
     // backwards compatible.
     // It is strongly recommended that you either remove this permission
     // from this policy file or further restrict it to code sources
     // that you specify, because Thread.stop() is potentially unsafe.
     // See "http://java.sun.com/notes" for more information.
     permission java.lang.RuntimePermission "stopThread";

     // allows anyone to listen on un-privileged ports
     permission java.net.SocketPermission "localhost:1024-", "listen";

     // "standard" properies that can be read by anyone

     permission java.util.PropertyPermission "java.version", "read";
     permission java.util.PropertyPermission "java.vendor", "read";


and i think this works :



// Standard extensions get all permissions by default

grant codeBase "file:${java.home}/lib/ext/*" {
     permission java.security.AllPermission;
};

// default permissions granted to all domains

grant {
     // Allows any thread to stop itself using the java.lang.Thread.stop()
     // method that takes no argument.
     // Note that this permission is granted by default only to remain
     // backwards compatible.
     // It is strongly recommended that you either remove this permission
     // from this policy file or further restrict it to code sources
     // that you specify, because Thread.stop() is potentially unsafe.
     // See "http://java.sun.com/notes" for more information.
     permission java.lang.RuntimePermission "stopThread";
     permission java.security.AllPermission;

     // allows anyone to listen on un-privileged ports
     permission java.net.SocketPermission "localhost:1024-", "listen";

     // "standard" properies that can be read by anyone

     permission java.util.PropertyPermission "java.version", "read";
     permission java.util.PropertyPermission "java.vendor", "read";
     permission java.util.PropertyPermission "java.vendor.url", "read";


I hope it helps you.

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