Hi,

OK, pity it does not work. Let's try some other things:
First check whether the problem is not the file itself.
- Maybe the file you are trying to delete is read-only (Windows)
    or you do not have the right permissions to write the file (Linux).
- Can you _read_ the file?
- Can you delete (or move) the file manually?

If this is not the case and I do not know of any other reason why
it should not work, then the problem has indeed something to do
with permissions in tomcat.policy. The default policy file is pretty
strict, allowing you only to read properties. I would suggest that
you remove one of the permissions (e.g.: read permission for 'os.name')
and then try to read this property from your code. If this does not
succeed, you at least know that you are editing the correct part
of the policy file. Then it is a matter of adding the correct
pemissions. It seems like you have already done this, but it is the
only solution I can offer.

Ronald Wildenberg


Panagiotis Konstantinidis wrote:

>   Thank you for your reply Ronald... I have just tried it doing a file.exists() and 
>it returns true... The only thing I can think of is that somehow Ineed to give 
>permission to Tomcat to allow file deletion but I do not know how... Any more 
>suggestions?
>
>   Panos
>
> 11/12/2001 10:28:51, Ronald Wildenberg <[EMAIL PROTECTED]> wrote:
>
> >Hi Panos,
> >
> >I do not think you can say that a file exists if you can see its
> >absolute path. A file has a path, whether it exists or not. You
> >should try
> >    file.exists()
> >for checking on the existence of a file.
> >
> >
> >Ronald Wildenberg.
> >
> >===========================================================================
> >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> >Some relevant FAQs on JSP/Servlets can be found at:
> >
> > http://archives.java.sun.com/jsp-interest.html
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.jsp
> > http://www.jguru.com/faq/index.jsp
> > http://www.jspinsider.com
> >
> __________________________________________
> "It can only be attributed to human error"
> 2001 A Space Odyssey
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to