you would need a java.policy file that grants read file permission for your
code. under unix, you can have a .java.policy file under the home directory
of the user running the JVM or you can specify the policy file from the
command line:

java -Djava.security.policy="/path/to/java.policy" package.ClassFile

-h.

-----Original Message-----
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 23, 2000 5:22 PM
To: [EMAIL PROTECTED]
Subject: Security


Hi,
   The following error is thrown because of the
security manager restrictions.
   Do I have to have the policy file ? Where ?
This is caused by the forward tag or the <servlet>
tag.
I am using a rmiregistry and the RMI security manager.
bye,
Mohan
---------------------------------------------
JRun Servlet Error
---------------------------------------------

java.rmi.RMISecurityException: security.file.read:
services/jse/logs\error.log
        at
java.rmi.RMISecurityManager.checkRead(Compiled Code)
        at
java.io.RandomAccessFile.(RandomAccessFile.java:66)
        at
java.io.RandomAccessFile.(RandomAccessFile.java:101)
        at
com.livesoftware.jrun.JRun.appendToFile(JRun.java)
        at
com.livesoftware.jrun.JRun.debugLog(JRun.java)
        at
com.livesoftware.jrun.JRun.debugLog(JRun.java)
        at
com.livesoftware.jrun.JRun.runServlet(Compiled Code)
        at
com.livesoftware.jrun.JRunServletContext$JRunRequestDispatcher.include(Compi
led
Code)
        at
com.livesoftware.jrun.plugins.ssi.taglets.ServletTag.callServlet(Compiled
Code)
        at
com.livesoftware.jrun.plugins.jsp.taglets.ServletTag.callServlet(ServletTag.
java)
        at jsp.jsp.permission.service(Compiled Code)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
        at
com.livesoftware.jrun.plugins.jsp.JSPCore.runServlet(JSPCore.java)
        at
com.livesoftware.jrun.plugins.jsp.JSP.callPage(JSP.java)
        at
com.livesoftware.jrun.plugins.jsp.JSP.service(JSP.java)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
        at
com.livesoftware.jrun.JRun.runServlet(Compiled Code)
        at
com.livesoftware.jrun.JRunGeneric.handleConnection(JRunGeneric.java)
        at
com.livesoftware.jrun.JRunGeneric.handleProxyConnection(JRunGeneric.java)
        at
com.livesoftware.jrun.service.proxy.JRunProxyServiceHandler.handleRequest(JR
unProxyServiceHandler.java)
        at
com.livesoftware.jrun.service.ThreadConfigHandler.run(Compiled
Code)

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

__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to