Re: how do I get WebdavResource.mkcolMethod() to work?
This should work for you: wdResource.mkcolMethod("/slide/files/images"); I think you should ignore the wdresource path in this case and start at the root. My wd root is http://localhost:8080/slide and I still have to mkcol with the fullpath. Roy Russo JBoss Portal Developer - Original Message - From: "Garret Wilson" <[EMAIL PROTECTED]> To: "Slide Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, December 17, 2004 7:44 PM Subject: how do I get WebdavResource.mkcolMethod() to work? I have a WebdavResource representing "http://www.example.com/base/";. I execute webdavresource.mkColMethod("test/"), which returns false. I execute webdavresource.mkColMethod("test"), which returns false as well. What am I doing wrong? I'm using Tomcat 5.5.4 with the Tomcat WebDAV servlet. Garret - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how do I get WebdavResource.mkcolMethod() to work?
I have a WebdavResource representing "http://www.example.com/base/";. I execute webdavresource.mkColMethod("test/"), which returns false. I execute webdavresource.mkColMethod("test"), which returns false as well. What am I doing wrong? I'm using Tomcat 5.5.4 with the Tomcat WebDAV servlet. Garret - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WebdavResouce, putMethod(), and existence
Garret Wilson wrote: Because I can't depend on WebdavResource.exists(), I have to call WebdavResource.headMethod(). The API says that this returns a boolean to indicate whether the method succeeded, but what *really* happens is that it either succeeds or throws an exception if the file doesn't exist. Why have a boolean return value if you're going to throw an exception for failure? Sorry, my mistake---if the file doesn't exist, WebdavResource.headMethod(String path) returns false instead of throwing an exception. Of course, this is inconsistent with the construction of WebdavResource, which throws an exception if the resource doesn't exist. Garret - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WebdavResouce, putMethod(), and existence
Carlos, Carlos Villegas wrote: For "intended" usage patterns check the slide command line sample client. Other ways of using WebdavResource outside of what the command line client does, were probably not thought of carefully or haven't been tested. (sigh) Thanks for verifying my fears. It's a shame that the Slide WebDAV client API was just (apparently) haphazardly thrown together. Because I can't depend on WebdavResource.exists(), I have to call WebdavResource.headMethod(). The API says that this returns a boolean to indicate whether the method succeeded, but what *really* happens is that it either succeeds or throws an exception if the file doesn't exist. Why have a boolean return value if you're going to throw an exception for failure? Garret - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: rename/move WCK question
On Sat, 18 Dec 2004 00:34:50 +0200, Roman D <[EMAIL PROTECTED]> wrote: > With WCK store implementation, when file is renamed, it looks like file > is downloaded and then uploaded under new name. It depends on what interfaces you implement. If you just implement the ordinary interface upon rename ad file is copied and the original is removed afterwards. If you implement the additional interface (works with CVS head = upcoming 2.2 only) WebdavStoreMacroMoveExtension it will be done directly. Have a look at the reference implementation for details. > First getResourceContent() for current file name is called then > createResource() and setResourceContent() is called. > Is it WCK - specific or any WebDav implementation will have client GET > and then PUT same file just to rename/move it ? > What if it's 100MB file? transfer same 100MB back and forth just to > rename the resource? As explained above nothing is transferred, no PUT and no GET is involved. Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WCK with virtual file system
Hi Brian, what is your problem with Domain.xml? Starting from the one delivered with WCK just leave it untouched and things should work. There is *no* redundant stuff in it. You might not need it, but Slide does. Judging from what you want to achieve WCK seems to be right for you. Concerning the releation to Slide WCK is a special Slide store abstraction plus some helper code for JAAS. Oliver On Fri, 17 Dec 2004 10:55:05 -0800, Brian Lee <[EMAIL PROTECTED]> wrote: > WCK Question > > First I'd like to say that WCK is a Godsend. It is very useful. > Unfortunately I still don't have a full grasp of SLIDE and WCK's full > relationship with it... (My time off our company webdav project didn't > help...) > > Goal: > My system does not use anything from the domain.xml besides specifying > my custom store. > My system handles everything - user adminstration, etc... > Moreover with this system, I want display files to a user based on > arbitrary logic my > system determines (security/permissions). > > I do not want to display files how they are really laid out in terms of > path and even filename. > Basically I want to use a 'virtual file system' with WCK, but I am > having problems due to things in > Domain.xml (user folders, action folders). > > Question: > Given the above requirements, what is the absolute minimum elements that > I can have in domain.xml? > > How should I go about implementing my system with WCK? > > Is WCK the best way to go? > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
rename/move WCK question
With WCK store implementation, when file is renamed, it looks like file is downloaded and then uploaded under new name. First getResourceContent() for current file name is called then createResource() and setResourceContent() is called. Is it WCK - specific or any WebDav implementation will have client GET and then PUT same file just to rename/move it ? What if it's 100MB file? transfer same 100MB back and forth just to rename the resource? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: oracle store on weblogic 8.1 problem
Hi Evan, Are you evaluating Slide for a commercial application? If yes, you may be interested in a webDAV server I'm developing that runs using MySQL and offers an order of magnitude faster performance than Slide, a very clean JAVA API and is a snap to setup and run. Let me know if you are interested, and I will send you a white paper introducing the software. Thanks Karthik - Original Message - From: "Evan Kracoff" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 15, 2004 11:49 AM Subject: oracle store on weblogic 8.1 problem Hi all, I am trying to setup an oracle store with weblogic 8.1. When I startup my server initially with a clean schema everything is fine. The problem I am running into is when I restart my server the second time I see: 15 Dec 2004 11:13:55 - org.apache.slide.common.Namespace - INFO - Import data into namespace slide 15 Dec 2004 11:13:55 - org.apache.slide.common.XMLUnmarshaller - INFO - Loading object / 15 Dec 2004 11:13:55 - org.apache.slide.common.XMLUnmarshaller - INFO - Object already exists at / 15 Dec 2004 11:13:56 - org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter - ERROR - SQL error 1 on /: ORA-1: unique constraint (SLIDE.SYS_C0026991) violated org.apache.slide.common.ServiceAccessException: Service [EMAIL PROTECTED] access error : ORA-1: unique constraint (SLIDE.SYS_C0026991) violated at org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.createException(Stand ardRDBMSAdapter.java:1404) at org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.grantPermission(Stand ardRDBMSAdapter.java:569) at org.apache.slide.store.impl.rdbms.AbstractRDBMSStore.grantPermission(Abstrac tRDBMSStore.java:468) and so on... if it sees I have records already in the Permissions table, why is it still trying to insert the seed data? Thanks, Evan Kracoff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WCK with virtual file system
WCK Question First I'd like to say that WCK is a Godsend. It is very useful. Unfortunately I still don't have a full grasp of SLIDE and WCK's full relationship with it... (My time off our company webdav project didn't help...) Goal: My system does not use anything from the domain.xml besides specifying my custom store. My system handles everything - user adminstration, etc... Moreover with this system, I want display files to a user based on arbitrary logic my system determines (security/permissions). I do not want to display files how they are really laid out in terms of path and even filename. Basically I want to use a 'virtual file system' with WCK, but I am having problems due to things in Domain.xml (user folders, action folders). Question: Given the above requirements, what is the absolute minimum elements that I can have in domain.xml? How should I go about implementing my system with WCK? Is WCK the best way to go? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Lucene indexing with Slide
The most of the work is done (I think) and available on the cvs HEAD. A first prerelase of Slide will be available at start of the next year (I hope). Stefan Chiocchetti, Stephane wrote: Do you know when the Lunene index plugin will be available for Slide ? (I've seen that it will be part of version 2.2). Thanks Stephane - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stefan Lützkendorf -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Lucene indexing with Slide
Do you know when the Lunene index plugin will be available for Slide ? (I've seen that it will be part of version 2.2). Thanks Stephane - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OJB database store?
On Fri, 17 Dec 2004 21:28:14 +0900, Carlos Villegas <[EMAIL PROTECTED]> wrote: > Fine. I need a week or two before I can post anything. I'll set up the > framework and some initial code and then you can jump in! Great! > These conflict exceptions are probably needed to make your latest retry > code work. Is this already in the OJB CVS repository? Anyway, you can > handle that later ;-) No, it's not in the OJB CVS repository. I am not even sure the OJB people will accept the patch, but I hope so. And, yes, it is for the retry thing to work. We could get this done in Slide as well, but it would be much cleaner to have it in OJB Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OJB database store?
Fine. I need a week or two before I can post anything. I'll set up the framework and some initial code and then you can jump in! These conflict exceptions are probably needed to make your latest retry code work. Is this already in the OJB CVS repository? Anyway, you can handle that later ;-) Carlos Oliver Zeigermann wrote: On Fri, 17 Dec 2004 20:49:07 +0900, Carlos Villegas <[EMAIL PROTECTED]> wrote: Just to let you know that I've actually started working on the new RDBMS store based on the Apache OJB O/R tool. I don't want to duplicate efforts nor waste my limited time so I just want to make sure this is going to be useful before I get too deep into it. Is this Ok? I think this would be great :) I promise I will help where I can! I have already had a look at OJB and submitted a patch that allows to map SQL exceptions that are caused by concurrency conflicts like deadlocks to special subclasses of PersistenceBrokerSQLException. I have extracted this from the Slide core and adapted it to OJB. BTW, what package should I put it in, org.apache.slide.store.ojb ? I see that while most of the stores are located under org.apache.slide.store the current rdbms stores are in org.apache.slide.store.impl ! org.apache.slide.store.ojb should be fine, but org.apache.slide.store.impl.ojb is ok as well. The org.apache.slide.store.impl.rdbms package is named as such for historical reasons. Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OJB database store?
On Fri, 17 Dec 2004 20:49:07 +0900, Carlos Villegas <[EMAIL PROTECTED]> wrote: > Just to let you know that I've actually started working on the new RDBMS > store based on the Apache OJB O/R tool. I don't want to duplicate > efforts nor waste my limited time so I just want to make sure this is > going to be useful before I get too deep into it. Is this Ok? I think this would be great :) I promise I will help where I can! I have already had a look at OJB and submitted a patch that allows to map SQL exceptions that are caused by concurrency conflicts like deadlocks to special subclasses of PersistenceBrokerSQLException. I have extracted this from the Slide core and adapted it to OJB. > BTW, what package should I put it in, org.apache.slide.store.ojb ? > I see that while most of the stores are located under > org.apache.slide.store the current rdbms stores are in > org.apache.slide.store.impl ! org.apache.slide.store.ojb should be fine, but org.apache.slide.store.impl.ojb is ok as well. The org.apache.slide.store.impl.rdbms package is named as such for historical reasons. Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OJB database store?
Hi, Just to let you know that I've actually started working on the new RDBMS store based on the Apache OJB O/R tool. I don't want to duplicate efforts nor waste my limited time so I just want to make sure this is going to be useful before I get too deep into it. Is this Ok? BTW, what package should I put it in, org.apache.slide.store.ojb ? I see that while most of the stores are located under org.apache.slide.store the current rdbms stores are in org.apache.slide.store.impl ! Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]