RE: Adding users/roles manually to filesystem
Hello Brandon, That's probably because of the store's cache: it doesn't need to read the .def.xml files for some time after they have been read the first (or subsequente) time. Maybe if you remove the node from the cache, the node to witch the .def.xml is it's content. Hope this helps, Miguel Figueiredo -Original Message- From: Brandon Dove [mailto:[EMAIL PROTECTED] Sent: quarta-feira, 15 de Junho de 2005 22:03 To: slide-user@jakarta.apache.org Subject: Adding users/roles manually to filesystem Hi -- I'm adding collections for users/roles manually -- i.e. writing new .def.xml files for the user/roles to the filesystem myself but it seems that Slide doesn't pick up the new definitions without restarting. Any ideas on how to get around this? Cheers, Brandon Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag - 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: History of Files
Raman Sandhu raman.sandhu at adeptia.com writes: Hi Hima How are you putting files in version control. Can you send me sample code. Thanks Raman -Original Message- From: Hima [mailto:hima19 at yahoo.com] Sent: Wednesday, June 15, 2005 5:25 PM To: Slide Subject: History of Files Hi all! My problem has been solved now.Getting the versions of files.My problem is now ..how to view the history of files versioned?Like for example /files/myFile is versioned. /history/1 is the location of the history of /files/myFile. But when I click on slide/history/1 it is giving error message saying HTTP Status 404 - Not Found: Revision 0.0 of object /history/1 not found I can view them in My NetworkPlaces Slide on LocalHost at http://localhost:8080/slide/history/1 but can not see them when running slide.What might be the problem?Any help on this will be greatful... Thanks HimaBindu Hi Raman I have used org.apache.webdav.lib.WebdavResource for cteating the files..code looks like this... HttpURL homeUrl = new HttpURL(http://localhost:8080/slide/files;); homeUrl.setUserinfo(root,root); res = new WebdavResource(homeUrl); boolean success2=res.putMethod(/slide/files/testDir1/testFile1,test data ); I have set parameter name=auto-version-controltrue/parameter in Domain.xml.When I see the file in DAV Explorer,it is said that the file has been kept in Version Control. I have updated the file twice by executing the same code with different content data like boolean success2=res.putMethod(/slide/files/testDir1/testFile1,test data updated once); boolean success2=res.putMethod(/slide/files/testDir1/testFile1,test data updated twice); Now when I see the Version Report of that file in DAVExplorer,it is giving information like version author DateSizeChecked-incomment 1.0root--- 10 INITIAL VERSION 1.1root--- 23 1.2root--- 37 and in the directory slide/history/1 of DAVExplorer I can see similar type of information. I can view them at My NetworkPlaces Slide on LocalHost at http://localhost:8080/slide/history/1 .There I can see all the three versioned files with display name testFile1 with their contents at /slide/history/1/1.2 , /slide/history/1/1.1 and /slide/history/1/1.0 resptBut can not see them when running slide. I will be thankfull if u could help me on this.. Thanks HimaBindu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Adding roles with DAV Explorer
As an aside from my problem of manually adding users/roles by creating the appropriate .def.xml files in the filesystem myself, I've tried to create roles using DAV Explorer with no success. I add a collection to /roles and set the group-member-set property as described here: http://jakarta.apache.org/slide/howto-create-users.html but I get a 403 when trying to login. Are there properties I need to set when creating the role that I may be missing? Cheers, Brandon Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
starting slide before other webapps
This might be a better question for the tomcat list, but anyway here goes: I have a web application that uses slide. This webapp has a load-on-startup servlet that depends on slide being up and running. Sometimes it works but sometimes it fails at the point where it tries to contact slide. This is not proof, but it seems to suggest a strong possibility that tomcat (5.0x) is starting up webapps in an arbitrary order. Is there a way to force tomcat to load slide first? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
stopping slide logging to console
Every time I start my container (tomcat 5.0x), there is a ton of slide output (see example below). I have outputToConsole set to false' in my web.xml. I had outputToFile commented out, then tried uncommenting it and setting the filename to /dev/null. I even tried removing all the logger jars from the slide webapp. Interestingly, slide still worked, but I still saw the console output. I even tried setting up a log4j.properties file that would not log info items, which is what is being output. That didn't help either. This may not seem like a huge deal, but over time it becomes very annoying. Please help! Here is the output that I see every time I start up the container: 16 Jun 2005 12:52:44 - org.apache.slide.common.Domain - INFO - Initializing Domain 16 Jun 2005 12:52:44 - org.apache.slide.common.Domain - INFO - Domain configuration : {org.apache.slide.lock=true, org.apache.slide.versioncontrol=true, org.apache.slide.debug=false, org.apache.slide.search=true, org.apache.slide.security=true, org.apache.slide.urlEncoding=UTF-8} 16 Jun 2005 12:52:44 - org.apache.slide.common.Domain - INFO - Domain parameters: {logger-level=6, versioncontrol-exclude=, auto-version=checkout-checkin, historypath=/history, checkin-fork=forbidden, workingresourcepath=/workingresource, workspacepath=/workspace, default=slide, auto-version-control=true, logger=org.apache.slide.util.logger.SimpleLogger, checkout-fork=forbidden} 16 Jun 2005 12:52:44 - org.apache.slide.common.Domain - INFO - Initializing namespace : slide 16 Jun 2005 12:52:44 - org.apache.slide.common.Namespace - INFO - Loading namespace slide parameters 16 Jun 2005 12:52:44 - org.apache.slide.common.Namespace - INFO - Loading namespace definition 16 Jun 2005 12:52:44 - org.apache.slide.common.Namespace - INFO - nodestore: org.apache.slide.store.txfile.TxXMLFileDescriptorsStore 16 Jun 2005 12:52:44 - file-meta-store - INFO - File Store configured to /home/dante/slide_store/store/metadata, working directory /home/dante/slide_store/work/metadata 16 Jun 2005 12:52:44 - file-meta-store - INFO - Set timeout to 120 16 Jun 2005 12:52:44 - file-meta-store - INFO - Enabling deferred saving 16 Jun 2005 12:52:44 - org.apache.slide.common.Namespace - INFO - securitystore references nodestore 16 Jun 2005 12:52:44 - org.apache.slide.common.Namespace - INFO - lockstore references nodestore 16 Jun 2005 12:52:44 - org.apache.slide.common.Namespace - INFO - revisiondescriptorsstore references nodestore 16 Jun 2005 12:52:44 - org.apache.slide.common.Namespace - INFO - revisiondescriptorstore references nodestore 16 Jun 2005 12:52:44 - org.apache.slide.common.Namespace - INFO - contentstore: org.apache.slide.store.txfile.TxFileContentStore 16 Jun 2005 12:52:44 - file-content-store - INFO - File Store configured to /home/dante/slide_store/store/content, working directory /home/dante/slide_store/work/content 16 Jun 2005 12:52:44 - file-content-store - INFO - Set timeout to 120 16 Jun 2005 12:52:44 - org.apache.slide.common.Namespace - INFO - sequencestore: org.apache.slide.store.txfile.FileSequenceStore 16 Jun 2005 12:52:44 - org.apache.slide.store.txfile.FileSequenceStore - INFO - File Sequence Store configured to /home/dante/slide_store/store/sequence 16 Jun 2005 12:52:44 - INFO - Setting TLock timeout for store tx to 120 seconds 16 Jun 2005 12:52:44 - INFO - Setting object cache size for store tx to 1 16 Jun 2005 12:52:44 - org.apache.slide.store.ExtendedStore - INFO - Setting permission cache size for store tx to 1 16 Jun 2005 12:52:44 - org.apache.slide.store.ExtendedStore - INFO - Setting lock cache size for store tx to 100 16 Jun 2005 12:52:44 - org.apache.slide.store.ExtendedStore - INFO - Setting descriptors cache size for store tx to 1 16 Jun 2005 12:52:44 - org.apache.slide.store.ExtendedStore - INFO - Setting descriptor cache size for store tx to 1 16 Jun 2005 12:52:44 - org.apache.slide.store.ExtendedStore - INFO - Setting content caching for store tx to false 16 Jun 2005 12:52:44 - org.apache.slide.store.ExtendedStore - INFO - Setting content cache size for store tx to 1 16 Jun 2005 12:52:44 - org.apache.slide.store.ExtendedStore - INFO - Setting content cache byte size for store tx to 1000 16 Jun 2005 12:52:44 - org.apache.slide.store.ExtendedStore - INFO - Setting transaction content cache size for store tx to 1000 16 Jun 2005 12:52:44 - org.apache.slide.store.ExtendedStore - INFO - Setting transaction content cache byte size for store tx to 100 16 Jun 2005 12:52:44 - org.apache.slide.store.ExtendedStore - INFO - Setting maximum byte size for content cache entry for store tx to 5 16 Jun 2005 12:52:44 - org.apache.slide.store.ExtendedStore - INFO - Enabling full caching causing low isolation 16 Jun 2005 12:52:44 - org.apache.slide.common.Namespace - INFO - Registering Store tx (class org.apache.slide.store.ExtendedStore) with parameters {tlock-timeout=120} on scope / 16 Jun 2005 12:52:44 - org.apache.slide.common.Namespace - INFO -
Re: starting slide before other webapps
We had this problem and we redesigned our Slide dependent application to use lazy initialization. In other words, the application only loaded Slide dependent code once the first request was made. This probably means you only have to turn pre-initialization of your servlets off in your web.xml. Making your application work this way allows all of your applications to initialize themselves in any order before trying to access each other via requests. As far as I know, there's no way to enforce initialization order of web applications in Tomcat, but I didn't try too hard as I knew that the above solution would work for me. Christopher Farnham Senior Consultant at Wrycan, Inc. [EMAIL PROTECTED] http://www.wrycan.com Dan Tenenbaum wrote: This might be a better question for the tomcat list, but anyway here goes: I have a web application that uses slide. This webapp has a load-on-startup servlet that depends on slide being up and running. Sometimes it works but sometimes it fails at the point where it tries to contact slide. This is not proof, but it seems to suggest a strong possibility that tomcat (5.0x) is starting up webapps in an arbitrary order. Is there a way to force tomcat to load slide first? - 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: starting slide before other webapps
Yeah we did the same as Christopher for our tomcat 4.1.30 deployment. Now we have recently moved to Jboss 4.0.1 and there _might_ be another option. I was told, but haven't verified, that you can specify to Jboss (or is it to the Tomcat 5.x web container underneath Jboss ?) which of the other apps you depend on being started before your app loads. Jboss then determines load order for the apps based upon the dependencies each app has. I'm not sure how much of this is Jboss and how much is Tomcat 5 though my source told me that he thought that this behaviour was controlled in the app's deployment descriptor file. So check the Tomcat 5.x and/or Jboss doco for app loading dependencies. Warwick -Original Message- From: Christopher W. Farnham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 16, 2005 3:26 PM To: Slide Users Mailing List Subject: Re: starting slide before other webapps We had this problem and we redesigned our Slide dependent application to use lazy initialization. In other words, the application only loaded Slide dependent code once the first request was made. This probably means you only have to turn pre-initialization of your servlets off in your web.xml. Making your application work this way allows all of your applications to initialize themselves in any order before trying to access each other via requests. As far as I know, there's no way to enforce initialization order of web applications in Tomcat, but I didn't try too hard as I knew that the above solution would work for me. Christopher Farnham Senior Consultant at Wrycan, Inc. [EMAIL PROTECTED] http://www.wrycan.com Dan Tenenbaum wrote: This might be a better question for the tomcat list, but anyway here goes: I have a web application that uses slide. This webapp has a load-on-startup servlet that depends on slide being up and running. Sometimes it works but sometimes it fails at the point where it tries to contact slide. This is not proof, but it seems to suggest a strong possibility that tomcat (5.0x) is starting up webapps in an arbitrary order. Is there a way to force tomcat to load slide first? - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: History of Files
Hi Hima I m also using the same code and tried that option and it works fine but if I just want to put specified file in version control on all set of files. And another issue is how we can get files based on the version. Thanks Raman -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Hima Sent: Thursday, June 16, 2005 1:32 PM To: slide-user@jakarta.apache.org Subject: Re: History of Files Raman Sandhu raman.sandhu at adeptia.com writes: Hi Hima How are you putting files in version control. Can you send me sample code. Thanks Raman -Original Message- From: Hima [mailto:hima19 at yahoo.com] Sent: Wednesday, June 15, 2005 5:25 PM To: Slide Subject: History of Files Hi all! My problem has been solved now.Getting the versions of files.My problem is now ..how to view the history of files versioned?Like for example /files/myFile is versioned. /history/1 is the location of the history of /files/myFile. But when I click on slide/history/1 it is giving error message saying HTTP Status 404 - Not Found: Revision 0.0 of object /history/1 not found I can view them in My NetworkPlaces Slide on LocalHost at http://localhost:8080/slide/history/1 but can not see them when running slide.What might be the problem?Any help on this will be greatful... Thanks HimaBindu Hi Raman I have used org.apache.webdav.lib.WebdavResource for cteating the files..code looks like this... HttpURL homeUrl = new HttpURL(http://localhost:8080/slide/files;); homeUrl.setUserinfo(root,root); res = new WebdavResource(homeUrl); boolean success2=res.putMethod(/slide/files/testDir1/testFile1,test data ); I have set parameter name=auto-version-controltrue/parameter in Domain.xml.When I see the file in DAV Explorer,it is said that the file has been kept in Version Control. I have updated the file twice by executing the same code with different content data like boolean success2=res.putMethod(/slide/files/testDir1/testFile1,test data updated once); boolean success2=res.putMethod(/slide/files/testDir1/testFile1,test data updated twice); Now when I see the Version Report of that file in DAVExplorer,it is giving information like version author DateSizeChecked-incomment 1.0root--- 10 INITIAL VERSION 1.1root--- 23 1.2root--- 37 and in the directory slide/history/1 of DAVExplorer I can see similar type of information. I can view them at My NetworkPlaces Slide on LocalHost at http://localhost:8080/slide/history/1 .There I can see all the three versioned files with display name testFile1 with their contents at /slide/history/1/1.2 , /slide/history/1/1.1 and /slide/history/1/1.0 resptBut can not see them when running slide. I will be thankfull if u could help me on this.. Thanks HimaBindu - 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: Adding roles with DAV Explorer
Hi I m also facing same issue at my end. Even how can we do that thru code. Does slide have API to do this? Thanks -Raman -Original Message- From: Brandon Dove [mailto:[EMAIL PROTECTED] Sent: Thursday, June 16, 2005 10:11 PM To: slide-user@jakarta.apache.org Subject: Adding roles with DAV Explorer As an aside from my problem of manually adding users/roles by creating the appropriate .def.xml files in the filesystem myself, I've tried to create roles using DAV Explorer with no success. I add a collection to /roles and set the group-member-set property as described here: http://jakarta.apache.org/slide/howto-create-users.html but I get a 403 when trying to login. Are there properties I need to set when creating the role that I may be missing? Cheers, Brandon Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag - 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]