Hello, "Ashikuzzaman" <[EMAIL PROTECTED]> writes:
> Dear List, > > I am using Slide 1.0.16 as the nightly build 2.0 is, I am not sure, whether > I can use right now. I copied the necessary jar files in my webapp's > web-inf\lib dir and modified the Domain.xml file to use in Tomcat 4.1.27 and > Resin 2.1 with allowing guests to do all actions in contentStore dir. Now > when I copy files from file system through Windows XP Web Folders > functionality to the contentStore that I defined in the domain.xml file it > seems to work fine. I can even check that the file I copied, physically > exists. I can copy or download it but can't move, delete, rename or create > new folder. What's the problem? Anything about user privilege? My clients > should be able to add new and new files daily, so I have to allow them > modify those file, create new directories under the contentStore rootpath. > How can I do these using slide? Should I override slide's WebdavServlet? > Then which methods to override? Here is the Domain.xml file --- > > <?xml version="1.0"?> > <slide logger="org.apache.slide.util.logger.SimpleLogger" logger-level="6" > default="biscomWebdav"> > <!-- > logger > ~~~~~~ > org.apache.slide.util.logger.SimpleLogger > default logger with 1 log level > log4j.Log4jLogger > logger with fine granularity > see http://jakarta.apache.org/log4j/ > logger-level > ~~~~~~~~~~~~ > 0 EMERGENCY > 1 CRITICAL > 2 ERROR > 4 WARNING > 6 INFO > 7 DEBUG > --> > <namespace name="biscomWebdav"> > <!-- ### Memory Configuration ### > The following memory configuration uses the MemoryDescriptorsStore > for node,security,locks and revisions. For content the FileContentStore > is used. Content is not reset before start. Database may also be used > instead. > --> > <definition> > <store name="contentStore"> > <nodestore classname="slidestore.reference.MemoryDescriptorsStore"> > </nodestore> > <securitystore> > <reference store="nodestore" /> > </securitystore> > <lockstore> > <reference store="nodestore" /> > </lockstore> > <revisiondescriptorsstore> > <reference store="nodestore" /> > </revisiondescriptorsstore> > <contentstore classname="slidestore.reference.FileContentStore"> > <parameter > name="rootpath">C:/winxpsoft/javaGroup/resin-2.1.12/webapps/biscomWebdav/con > tentStore</parameter> > <parameter name="version">false</parameter> > <parameter name="resetBeforeStarting">true</parameter> > </contentstore> > </store> > <scope match="/" store="contentStore" /> > </definition> [...] > When I restart my server, I find all the newly uploaded files are gone, but > when I physically check it in file system, I see they are present there. :-( > I made sure that "resetBeforeStarting" is set to "false" (I tried with the > value "true" also). What can I do to solve this problem? Slide uses different stores for metadata and content. While you configured the content store to be persistent, the MemoryDescriptorsStore is always volatile. So once you shut down slide, it will loose all information, about the directory structure and not find the content. Replace the MemoryDescriptorsStore with any persistent store. And since you seem to start a new project now, you should really switch to the CVS head. Martin -- Martin Holz <[EMAIL PROTECTED]> Softwareentwicklung / Vernetztes Studium - Chemie FIZ CHEMIE Berlin Franklinstrasse 11 D-10587 Berlin --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
