I am trying to integrate JSP and RMI for one of my projects.

I have a simple JSP page trying to access RMI Client (By instantiating RMI
Client class in JSP page).

<%@  page import = "console.*" %>
<H1>Sample RMI</H1>
<br><br>
<%
        RMIClient rc = new RMIClient();
         out.println("I got: " + rc.getValue());
%>


A stand alone application with similar java code runs fine from command
line.
But when the JSP page is accessed from the web, it gives the following
security exception.
I think it is has to do something with java.policy file to set access
permissions.

For command line execution, we can say 'java
-Djava.security.policy=java.policy RMIClient'
But how do we do include security policy file in a JSP page.
Or is there another way to specify the access permissions.

Any help will be appreciated.

Thanks in advance.

Manmeet

500 Internal Server Error

jsp:

java.rmi.RMISecurityException: security.file.read:
services/jse/logs/error.log

---------------------------------------------
JRun Servlet Error
---------------------------------------------

jsp:

java.rmi.RMISecurityException: security.file.read:
services/jse/logs/error.log

---------------------------------------------

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to