W3C home > Mailing lists > Public > www-jigsaw@w3.org > November to December 1997

Jigsaw removes Resource!

From: Wolfgang Platzer <wplatzer@iaik.tu-graz.ac.at>
Date: Fri, 28 Nov 1997 08:34:14 +0100
To: "Jigsaw Mailinglist" <www-jigsaw@w3.org>
Message-Id: <01bcfbd0$06ec4c90$1cea1b81@kopernikus.iaik.tu-graz.ac.at>
I do not claim that I completely understand the Jigsaw Resource Management,
but I think found something which could cause my problem.

In FileResource.java I found the method:

     * Is that resource still wrapping an existing file ?
     * If the underlying file has disappeared <string> and if</strong> the
     * container directory is extensible, remove the resource.
    public synchronized boolean verify() {
 File file = getFile();
 if ( ! file.exists() ) {
     // Is the parent extensible:
     HTTPResource p = getParent() ;
     while ((p != null) && ! (p instanceof DirectoryResource) )
  p = p.getParent() ;
     if ( p == null )
  return false;
     DirectoryResource d = (DirectoryResource) p;
     if ( ! d.getExtensibleFlag() )
  return false;
     // Emit an error message, and delete the resource:
     String msg = file+": deleted, removing the FileResource.";
     getServer().errlog(this, msg);
     return false;
 } else {
     return true;

This piece of code looks to me like if the file does not exists this methos
returns false; if the files exists it returns true.

Now this class is subclassed by PostableResource.java, which overwrites this

     * The verify method of a postable resource will always return <strong>
     * false</strong>.
     * Any PostableResource has to be removed manually.
     * @return Always <strong>false</strong>.
    public boolean verify() {
 return false;

But this method returns always false, which means the file/resource does not
exist. Is this correct???

Can this cause the problem, that my PostableResource will be removed by
Jigsaw every 3-4 days showing this line in errlog:

C:\Development\Jigsaw\Jigsaw\WWW\JavaSecurity\Register: deleted, removing
the FileResource.


Dipl.-Ing. Wolfgang Platzer
Technische Universitaet Graz - University of Technology Graz
Institut f|r Angewandte Informationsverarbeitung
und Kommunikationstechnologien
Klosterwiesgasse 32/I, A-8010 Graz,
Tel: ++43 316 873-5527,Fax: ++43 316 873-5520
URL <http://www.iaik.tu-graz.ac.at/index.html>
Received on Friday, 28 November 1997 04:55:42 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:32 UTC