You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Silvia Yeh <sy...@wiseconnect.com> on 2001/09/24 23:27:51 UTC

RE: Why are the files uploaded to /files invisible after TC4 rest arted?

I use SQL2000 with jturbo driver. This is my configuration. Hope this helps.
FYI, I don't save the content in database, but instead in file system. 
	    
 <definition>
      <store name="jdbc">
        <nodestore classname="slidestore.reference.JDBCDescriptorsStore">
         <parameter name="driver">com.ashna.jturbo.driver.Driver</parameter>
         <parameter
name="url">jdbc:JTurbo://YOURSERVERNAME:YOURPORTNUMBER/YOURDATABASENAME</par
ameter>
         <parameter name="user">YOURUSERNAME</parameter>
         <parameter name="password">YOURPASSWORD</parameter>
        </nodestore>
        <securitystore>
          <reference store="nodestore" />
        </securitystore>
        <lockstore>
          <reference store="nodestore" />
        </lockstore>
        <revisiondescriptorsstore>
          <reference store="nodestore" />
        </revisiondescriptorsstore>
        <revisiondescriptorstore>
          <reference store="nodestore" />
        </revisiondescriptorstore>
        <contentstore classname="slidestore.reference.FileContentStore">
          <parameter
name="rootpath">c:\\tomcat\\work\\contentstore</parameter><!--CHANGE TO
WHERE YOU PUT THE FILE-->
          <parameter name="version">true</parameter>
          <parameter name="resetBeforeStarting">false</parameter>
        </contentstore>
      </store>
      <scope match="/" store="jdbc" />

    </definition>

-----Original Message-----
From: Raj Kumar [mailto:kothapa@intalio.com]
Sent: Monday, September 24, 2001 2:06 PM
To: slide-user@jakarta.apache.org
Subject: RE: Why are the files uploaded to /files invisible after TC4
restarted?


hi,
  The file would exist on the server in the
c:jakarta-tomcat-4.0\contentstore\files directory irrespective of whether it
is able to show it in webfolders or not because the file was successfully
uploaded last time around.You probably need to make sure that the store used
is in fact JDBCDescriptorsStore(recheck which one of the definitions is
commented out).
If in fact you are using a JDBC store then are you able to go to the
database and see the data in the tables in the database?
Try running the command line example Slide.bat from dist\client\bin
directory after you restart tomcat and issue a ls command to see if there
are any child nodes under the /files URI .
   rajkumar



-----Original Message-----
From: Bensen Chiou [mailto:benslide@hotmail.com]
Sent: Monday, September 24, 2001 1:52 PM
To: slide-user@jakarta.apache.org
Subject: RE: Why are the files uploaded to /files invisible after TC4
restarted?


Raj,

  Thanks for the response.

  But the file was created in
    c:jakarta-tomcat-4.0\contentstore\files
  after I dragged and dropped it to the web folder/files.

  I also confirmed the existence of the file uploaded in
    c:jakarta-tomcat-4.0\contentstore\files
  after I restarted the tomcat.

  I check the Domain.xml, the section of

    <definition>
      <store name="memory">
      .....
    </definition>

  was commented out. However, the section of

    <definition>
      <store name="jdbc">
     ......
    </definition>

  Wasn't commented out. So it probably used JDBCDescriptorsStore.
  Didn't it?

Thanks,

Bensen



>From: "Raj Kumar" <ko...@intalio.com>
>Reply-To: slide-user@jakarta.apache.org
>To: <sl...@jakarta.apache.org>
>Subject: RE: Why are the files uploaded to /files invisible after TC4
>restarted?
>Date: Mon, 24 Sep 2001 13:02:11 -0700
>
>hi bensen,
>   I think  the problem is that you were probably using a
>MemoryDescriptorsStore for the "nodestore".
>   Since the objects stored in the MemoryDescriptorsStore do not survive
>restarts you would need to use some sort of persistent store for the
>"nodestore" for example JDBCDescriptorsStore. Then you should be able to
>see
>files uploaded after tomcat restart.
>        rajkumar
>
>
>-----Original Message-----
>From: Bensen Chiou [mailto:benslide@hotmail.com]
>Sent: Monday, September 24, 2001 12:57 PM
>To: slide-user@jakarta.apache.org
>Subject: Why are the files uploaded to /files invisible after TC4
>restarted?
>
>
>Thanks for advice from Remy, I can now test WebDAV on Windows 98.
>
>But I observed a strange problem with invisible file in web folder
>after the tomcat is restarted. Here is my observation ( I used
>tomcat 4.0 to test WebDAV):
>
>1. The resetBeforeStarting parameter was set to false.
>2. Start tomcat 4.0 ( I copies slide.war to webapps before).
>3. Create a web folder "slide on localhost", and expand it to
>    display three folders: actions, files and users.
>4. Drag a file from c: drive to the files folder of web folder.
>5. Expand files folder to confirm that the uploaded file exists.
>    Confirm that the contentstore in tomcat4.0 contains the file.
>6. Shutdown tomcat, and restart it again.
>7. Click the web folder "slide on localhost" and click the files
>    folder.  The file uploaded before the tomcat restarts is not
>    displayed in the files folder of web folder.
>
>What should I do so that the files folder of web folder will
>always reflects what are in the contentstore of the tomcat 4.0?
>Isn't WebDAV server supposed to reflect what in the contentstore
>even after it restarts?
>
>Thanks in advance.
>
>Bensen
>
>_________________________________________________________________
>Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp