RE: JCA Connector/authentication
I use a custom JAAS module for jboss, because the slide jaas module stores a SlidePrincipal and SlideGroups on the JAAS subject. In order for jboss to authenticate a webapp or ejb with a user coming from JAAS, the JAAS module must use org.jboss.security.SimplePrincipal and org.jboss.security.SimpleGroup. This is just a hunch, but OC4J might also require an oracle specific princial. A quick search gave me these two classes. oracle.j2ee.connector.InitiatingPrincipal oracle.j2ee.connector.InitiatingGroup hope this helps. -Ryan Rhodes From: Andrew Tibets [EMAIL PROTECTED] Reply-To: Andrew Tibets [EMAIL PROTECTED] To: Slide Users Mailing List slide-user@jakarta.apache.org Subject: JCA Connector/authentication Date: Mon, 24 Jan 2005 12:31:12 +0200 Hello, I use Slide with jaas on OC4J. I packaged slide.war with ejb module to ear file. When I access Slide through browser the login window appears, I enter username: root password: root, Slide authentication goes as root. But when I access through WebDAV JCA Connector or DAVExplorer Slide authentication goes as unauthenticated and I cannot access /slide/files. ejb-jar.xml: resource-ref res-ref-namejca/WebDAV-Connector/res-ref-name res-typeorg.apache.webdav.connector.WebDAVConnectionFactory/res-type res-authApplication/res-auth /resource-ref ejb class: url = (String) findEnvEntryValue(SERVER_URI); userName = (String) findEnvEntryValue(SERVER_USER_NAME); password = (String) findEnvEntryValue(SERVER_PASSWORD); timeout = (Integer) findEnvEntryValue(SERVER_TRANSACTION_TIMEOUT); WebDAVConnectionSpec spec = new WebDAVConnectionSpec(url, userName, password, timeout.intValue()); return (WebDAVConnection) factory.getConnection(spec); url = http://pc268/slide/files username = root password = root timeout = 50 log: through browser 05/01/24 11:09:28 JAAS-OC4J: Membership check for group: user failed for user: jazn.com/anonymous 05/01/24 11:09:28 JAAS-OC4J: Membership check for group: root failed for user: jazn.com/anonymous 05/01/24 11:09:28 JAAS-OC4J: Membership check for group: guest failed for user: jazn.com/anonymous 05/01/24 11:09:33 AJPRequestHandler-ApplicationServerThread-5, 24-Jan-2005 11:09:33, root, GET, 200 OK, 31 ms, / log: through DAVExplorer 05/01/24 11:10:52 AJPRequestHandler-ApplicationServerThread-5, 24-Jan-2005 11:10:52, unauthenticated, OPTIONS, 200 OK, 16 ms, / 05/01/24 11:10:52 AJPRequestHandler-ApplicationServerThread-5, 24-Jan-2005 11:10:52, unauthenticated, PROPFIND, 207 Multi-Status, 109 ms, / log: through WebDAV JCA Connector 05/01/24 11:12:14 24 Jan 2005 11:12:14 - org.apache.slide.common.Domain - ERROR - [SlideLoginModule] - Failure during login() - Access denied on /users by user unauthenticated for action /actions/read 05/01/24 11:12:14 24 Jan 2005 11:12:14 - org.apache.slide.common.Domain - ERROR - org.apache.slide.security.AccessDeniedException: Access denied on /users by user unauthenticated for action /actions/read 05/01/24 11:12:14 org.apache.slide.security.AccessDeniedException: Access denied on /users by user unauthenticated for action /actions/read 05/01/24 11:12:14 at org.apache.slide.security.SecurityImpl.checkCredentials(SecurityImpl.java:409) 05/01/24 11:12:14 at org.apache.slide.structure.StructureImpl.retrieve(StructureImpl.java:179) 05/01/24 11:12:14 at org.apache.slide.content.ContentImpl.retrieve(ContentImpl.java:155) ... 05/01/24 11:12:14 Authentication Failed 05/01/24 11:12:14 Authentication: FAILED. 05/01/24 11:12:14 JAAS-OC4J: Authentication failure for user: Why access through DAVExplorer/Connector is authenticated as unauthenticated? Thanks. -- Best regards, Andrew mailto:[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: JCA adapter question
Hi Brian, I believe the set of connections that is passed to matchManagedConnections is only the inactive connections. It's the containers responsibility to take care of that. The reason this method always returns the first connection in the inactive set, is because we are not keeping any connection configuration state on the managedconnection. We just setup the connection every time it is opened with WebDAVManagedConnection.open(), and we throw it away every time the connection is closed with WebDAVManagedConnection.cleanup(). The latest version allows for container managed authentication where the connection is created using a JAAS Subject, but I did not rewrite the matching to try to keep around the authentication information and reuse it by matching. -Ryan Rhodes From: Brian DeHaven [EMAIL PROTECTED] Reply-To: Slide Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: JCA adapter question Date: Wed, 15 Dec 2004 16:44:06 -0500 I have the JCA adapter mostly working in weblogic, but this isn't really a weblogic specific question. If no one has converted it yet, only a few changes were needed so far.. such as using interfaces so you can cast the connection proxy to something useful by the client. I'm running into a problem with the WebDAVManagedConnectionFactory.matchManagedConnections call, however. Once one connection is created, this method always matches with the first created connection and never returns null.. thus no new connections are ever created beyond the first one. I'm unsure if the Set of connections passed in represents all connections (active or inactive) or should only include inactive connections. In other words, who should be determining that a new connection needs to be created? This matchManagedConnections method or the creator of the Set of connections being considered for a match? I want to be sure this functionality (adding new connections at runtime beyond the first one) is working in JBoss, so I know if this is a weblogic issue or a coding issue of the JCA adapter. Thanks for any help. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: slide and jboss
Hi Roy, Another option besides auto-create-users is to use Slide as the actual authentication realm. That way you can manage your users in Slide, and let Tomcat pull its usernames and passwords from Slide when you try to login. A SlideLoginModule that works with jboss was posted to the list by James Higginbotham. I don't think I had to make any changes to it for jboss 3.2.5 - 3.2.7. You can find it here: http://www.mail-archive.com/slide-user@jakarta.apache.org/msg03493.html Here is a policy file that you can use for this: application-policy name = slide-domain authentication login-module code=com.greenmud.auth.SlideLoginModule flag=required module-option name=namespaceslide/module-option /login-module /authentication /application-policy Good Luck, Ryan Rhodes From: Roy Russo [EMAIL PROTECTED] Reply-To: Slide Users Mailing List [EMAIL PROTECTED] To: Slide Users Mailing List [EMAIL PROTECTED] Subject: Re: slide and jboss Date: Tue, 30 Nov 2004 11:50:59 -0500 ok... I got it working, without going to the DB for now, and heres what I did. (I will update our wiki page this week) It is exactly the same as securing the jmx-console: http://www.jboss.org/wiki/Wiki.jsp?page=SecureTheJmxConsole 1. Upack the slide.war and place it under the deploy dir. 2. Create /WEB-INF/classes/slide-users.properties and /WEB-INF/classes/slide-roles.properties 3. Edit the /server/standard/conf/login-config.xml and add a security domain for slide-domain: !-- Security domain for JBoss Portal - Jakarta Slide -- application-policy name = slide-domain authentication login-module code=org.jboss.security.auth.spi.UsersRolesLoginModule flag = required module-option name=usersPropertiesslide-users.properties/module-option module-option name=rolesPropertiesslide-roles.properties/module-option /login-module /authentication /application-policy 4. Create /WEB-INF/jboss-web.xml and add this to it: jboss-web security-domainjava:/jaas/slide-domain/security-domain /jboss-web 5. Go in to /WEB-INF/web.xml and uncomment the security contraint blocks at the bottom. 6. Start jboss. 7. Go to http://localhost:8080/slide and you should be prompted for a login. I think I got it all. Thank you very much, Pat. Roy Russo JBoss Portal Developer JBoss, Inc. 404-467-8555 x223 [EMAIL PROTECTED] - Original Message - From: Patrick van Kann [EMAIL PROTECTED] To: Slide Users Mailing List [EMAIL PROTECTED]; Slide Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, November 30, 2004 10:54 AM Subject: RE: slide and jboss auto-create-users will have no effect until you secure slide using a non-Slide realm. You have to get that working first - and the wiki page doesn't really describe this properly. The effect it will have is that when you authenticate against the external realm, Slide will automatically create a collection in /slide/users named after the principal you have logged in as. I believe there is also a setting for auto-create-roles that will do the same with any of the roles that the principal has in /slide/roles. The effect of this is that you will then be able to set ACLS on specific URIs based on these users and roles. If you don't use auto-create-users and auto-create-roles, you can use application logic (say in the portlet itself, assuming this is what you are developing) that can create these collections for you. These settings got non-slide authentication working for me: server/default/deploy/slide.war/WEB-INF/jboss-web.xml ?xml version=1.0 encoding=UTF-8? !DOCTYPE jboss-web PUBLIC -//JBoss//DTD Web Application 2.3//EN http://www.jboss.org/j2ee/dtd/jboss-web_3_0.dtd; jboss-web class-loading java2ClassLoadingCompliance=false loader-repositoryorg.apache.slide:loader=slide.war/loader-repository /class-loading security-domainjava:/jaas/slide-domain/security-domain resource-ref res-ref-namejdbc/SlideDS/res-ref-name res-typejavax.sql.DataSource/res-type jndi-namejava:/jdbc/SlideDS/jndi-name /resource-ref /jboss-web in server/default/conf/login-config.xml I added a policy application-policy name = slide-domain authentication login-module code = org.jboss.security.auth.spi.DatabaseServerLoginModule flag=required module-option name = dsJndiNamejava:/jdbc/SecurityDS/module-option module-option name = principalsQuery select password from Users where username=? /module-option module-option name = rolesQuery select groupname, null from GroupMembers m where m.username = ? /module-option /login-module /authentication /application-policy Hope it helps. Patrick -Original Message- From: Roy Russo [mailto:[EMAIL PROTECTED] Sent: Tue 11/30/2004 3:29 PM To: Slide Users Mailing List Subject: Re: slide and jboss Well, its definitely good news to hear that someone got it working
RE: Simple XML and Office extractor configs
Hi Warwick, The MS office extractor will extract the OLE metadata, like author and date modified, from office documents. The example directory /slide/doc is the directory you want it to extract properties from. The metadata is stored as regular DAV properties once extracted. That directory doesn't exist. It is just an example. The overhead of using /slide/files is probably too much for people who don't need it. I'm not sure about the xml extractor, but I was getting the same exception on init. I think it is a bug because I don't remember getting it a couple months ago. I just disabled it. -Ryan _ From: Warwick Burrows [mailto:[EMAIL PROTECTED] Sent: Monday, August 30, 2004 4:45 PM To: '[EMAIL PROTECTED]' Subject: Simple XML and Office extractor configs Hi, The simple and office extractors that are configured in the Domain.xml file by default. What do they do? ie. One is configured to /slide/articles/test.xml and the other to /slide/doc. Do they create these dirs and put data in them or do they only extract properties from files under those directories? Do I need to have a test.xml to make it work? I'm getting an xpath failure from the simple extractor init process and am not sure whether how they should be configured. Slide starts but I'm guessing that the extractors (or at least one) didn't load. Thanks, Warwick http://www.e2open.com/ _ Warwick Burrows Senior Software Engineer Email: [EMAIL PROTECTED] Fax: 512.343.8727 9600 Great Hills Trail, #325 Austin, TX 78759 http://www.e2open.com http://www.e2open.com/ _
RE: Simple XML and Office extractor configs
Actually, I don't know anything about the performance. I only meant that it was turned off by default and that was an example config. I've been using the MS content extractors I wrote only in a test environment, and I haven't had performance problems yet. The OLE metadata is the fastest thing you can extract, but I'm not sure if that gets called much more often than content extractors. The content extractor definitely only saves the content when it is originally saved or updated. I am guessing the property extractors do the same thing. This is actually a big problem I have with it right now. It would be easy to write a recursive touch tool, but the modification dates are meaningful in the application and I don't want them changed. Any ideas here would be great! -Ryan -Original Message- From: Warwick Burrows [mailto:[EMAIL PROTECTED] Sent: Monday, August 30, 2004 9:12 PM To: 'Slide Users Mailing List' Subject: RE: Simple XML and Office extractor configs Thanks. So if a new document is uploaded under /slide/doc then the office extractor will extract properties from it but not otherwise. Will it also process any files that are already there when it starts or would you need to upload them for it to process the properties again? I would like it enabled for my whole tree but I'm not sure what you mean when you say it may be too much for most people. Is there performance problems with the implementation? Thanks, Warwick -Original Message- From: Ryan Rhodes [mailto:[EMAIL PROTECTED] Sent: Monday, August 30, 2004 7:46 PM To: 'Slide Users Mailing List' Subject: RE: Simple XML and Office extractor configs Hi Warwick, The MS office extractor will extract the OLE metadata, like author and date modified, from office documents. The example directory /slide/doc is the directory you want it to extract properties from. The metadata is stored as regular DAV properties once extracted. That directory doesn't exist. It is just an example. The overhead of using /slide/files is probably too much for people who don't need it. I'm not sure about the xml extractor, but I was getting the same exception on init. I think it is a bug because I don't remember getting it a couple months ago. I just disabled it. -Ryan _ From: Warwick Burrows [mailto:[EMAIL PROTECTED] Sent: Monday, August 30, 2004 4:45 PM To: '[EMAIL PROTECTED]' Subject: Simple XML and Office extractor configs Hi, The simple and office extractors that are configured in the Domain.xml file by default. What do they do? ie. One is configured to /slide/articles/test.xml and the other to /slide/doc. Do they create these dirs and put data in them or do they only extract properties from files under those directories? Do I need to have a test.xml to make it work? I'm getting an xpath failure from the simple extractor init process and am not sure whether how they should be configured. Slide starts but I'm guessing that the extractors (or at least one) didn't load. Thanks, Warwick http://www.e2open.com/ _ Warwick Burrows Senior Software Engineer Email: [EMAIL PROTECTED] Fax: 512.343.8727 9600 Great Hills Trail, #325 Austin, TX 78759 http://www.e2open.com http://www.e2open.com/ _ - 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: Searching in Slide
Hi Peder, Slide supports DASL queries through the webdav servlet. You can query for resources by property value, and perform full text search against the content. Text search against content is optimized by a Lucene index. The properties aren't currently indexed by Lucene, but I think full text search for properties still works using a default brute force search. I'm not sure about the performance. There isn't much documentation on search, but take a look at the documentation for DASL. Full Text search is done by having a contains condition in the where clause. I think there is also a new DASL implementation for one of the database stores. -Ryan Rhodes -Original Message- From: Peder Nordvaller [mailto:[EMAIL PROTECTED] Sent: Monday, August 02, 2004 7:58 AM To: Slide Users Mailing List Subject: Searching in Slide Hi, I've been working with slide for a bit and it's been working just fine most of the time. I'm now working with a lot of content and nodes in Slide and the way I've been searching for things is getting sluggish. I am working directly towards the helpers but I'm not using the SearchImpl class because I haven't had time to check it out. When I search I get the children of a node and get their properties, check them for keywords and continue on with the childrens children in the same fashion. This is taking way too much time with some 60k nodes and I have had to do some caching to make it work at all in a useful way. My questions are: Is there any things I can do to speed up getting information out of nodes (properties etc)? How fast is the built-in slide Search? Is there any documentation on how to make use of it? Sincerely, Peder Nordvaller - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: MSPowerPointExtractor problem
Hi Ralph, I haven't tested the PPT extractor with any other languages. I remember reading about other people having problems with different character sets though. Could you send a before and after example file here or to bugzilla? -Ryan Rhodes -Original Message- From: Ralph Scheuer [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 28, 2004 10:01 AM To: slide Subject: MSPowerPointExtractor problem Hello everybody, When I was searching for a Java class to extract text from PowerPoint files, I accidentally discovered Slide. I pulled the MSPowerPointExtractor class and some other stuff it depends on via CVS and tried it for some text extraction. The method I used looks very similar to the provided example main method (see below). However. when I tried to extract text from a German PowerPoint presentation, I had some problems with the encoding. I did not know which encoding to use, converting the output to ISO Latin 1 with my text editor solved only part of the problem (some German Umlaute were displayed correctly, some were not). Is this a known issue or am I doing something wrong? Any hints for me? Thanks in advance. Ralph Scheuer BTW. I am using Mac OS X 10.3.4 with JDK 1.4.2_03, the native encoding on this platform is MacRoman. public static String contentStringForData(NSData data){ StringBuffer buf = new StringBuffer(); try{ ByteArrayInputStream input = data.stream(); MSPowerPointExtractor ex = new MSPowerPointExtractor(null, null); Reader reader = ex.extract(input); int c; do { c = reader.read(); buf.append((char)c); } while( c != -1 ); }catch(Exception e){ } return buf.toString(); } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 403 Forbidden Error when uploading a file using DAV Exploere
This is just a shot in the dark, but I think prior to 2.1 you got a 403 for: PUT The client required instead: PUT Where is the uri it will have on the server. The only other hair pulling 403's I can remember where linux file permissions related. -Ryan -Original Message- From: Krishna Kankipati [mailto:[EMAIL PROTECTED] Sent: Thursday, July 22, 2004 7:38 PM To: '[EMAIL PROTECTED]' Subject: 403 Forbidden Error when uploading a file using DAV Exploere Hi, I have Slide2.0 installed on Websphere 5.0 App server. In the present environment I have disabled authentication and authorization as mentioned in the Slide docs as follows: To dis-able authentication: (from Slide doc) To disable authentication, open the webapp deployment descriptor, i.e. WEB-INF/web.xml in the webapp directory, and uncomment the two elements given by the xpath expressions /web-app/security-constraint and /web-app/login-config: To dis-able authorization: (from Slide doc) To disable access control, search for a configuration file named slide.properties in the classpath (if not there, you can create a new one at e.g. $CATALINA_HOME/common/classes) and set or add: org.apache.slide.security=false When I try to upload a file using DAV Explorer or create a collection under /files context, I get the following error: [7/22/04 17:24:42:346 MDT] 7926d6a8 SystemOut O Servlet.Engine.Transports : 1, 22-Jul-2004 17:24:41, , PUT, 403 Forbidden, 391 ms, / I have tried all configuration settings, nothing seems to work, I have been stuck with this for past few days. Can any Slide experts among you help me get out this situation. I also tried using DAV Client command tool to run a few commands. When I run the command cd files, I get an error: Warning: Not found the path C:\JavaApps\WebdavClient\jakarta-slide-webdavclient-bin-2.0\binrun.bat [ Slide ] $ open http://localhost:9080/webdav-server/ connect http://localhost:9080/webdav-server/ [LOCALHOST] /webdav-server/ $ pwd /webdav-server/ [LOCALHOST] /webdav-server/ $ cd files Warning: Not found the path Any help here is highly appreciated, thanks in advance kind regards, Krishna Krishna Kankipati Software Engineer SSA Global * 1626 Cole Blvd. Golden, CO 80401, USA * 303-274-3027 Fax:303-274-3137 * [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: advanced collection and search
Slide 2.1 supports full text search using Lucene. If you want to plug in your own search engine take a look at IndexStore to index the content, and ExpressionFactory to handle the actual search query. -Ryan -Original Message- From: elaine chien [mailto:[EMAIL PROTECTED] Sent: Monday, July 19, 2004 10:00 PM To: [EMAIL PROTECTED] Subject: advanced collection and search I am looking into using Slide for a project. Appreciate any help in anwering the following questions: 1.Does slide 2.0 support advanced collection? 2.Is it possible to do full text search with slide 2.0? 3.Is it possible to plug in our own search engine? Thanks, Elaine - 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: How to implement a ContentExtractor?
Hi Daniel, I'd like to try and implement this if its ok. I'm looking at Oliver's version of the LuceneIndexer that is in CVS. It looks like you extend AbstractService to give it a context for transactions and implement IndexStore to override the IExpressionFactory. Do you know if everything works with IExpressionFactory? Do I just need to plug the lucene code into it? I'm not sure I understand the difference between the Indexer and the IndexStore. In the example in CVS the LuceneIndex is separate from the actual IndexStore (SimpleTxtContainsIndexer) even though they both implement Indexer. What is the separation between these two interfaces? Kind of a side point.. but is it envisioned that multiple extractors might be operating on the same content... with the extracted content from both needing to go into the index? Regards, Ryan Rhodes From: Daniel Florey [EMAIL PROTECTED] Reply-To: Slide Users Mailing List [EMAIL PROTECTED] To: Slide Users Mailing List [EMAIL PROTECTED] Subject: Re: How to implement a ContentExtractor? Date: Mon, 21 Jun 2004 09:44:14 +0200 Hi Ryan, you are exactly right. I didn't implement the ContentExtractor yet, because it makes no sense to do it in the way the property extractors works. As you stated the content extractor only makes sense in combination with an indexer. It was my plan to build an indexing framework, but had no time to do it. The LuceneIndex by Christophe is not checked in yet, because it is not integrated into all of the DASL stuff. So it is not possible to search the content via webdav by using this index. If you want to perform server side queries only, it might be a choice to use this indexer and to integrate the ContentExtractor you are thinking of. But in long term we need the 'big' solution that integrates indexing, extracting and DASL. Regards, Daniel ryan wrote: I tried to build a content extractor to pull the text from MS Word docs. It looks like the PropertyExtractorTrigger is fired by the event framework when a node is created or stored, and then it calls the ExtractorManager to get all the PropertyExtractors associated with the node that changed and adds the extracted properties to the node. event framework -- PropertyExtractorTrigger -- ExtractorManager -- PropertyExtractor I don't think the ContentExtractor is getting called at all now. I was thinking it probably can't be a ContentExtractorTrigger, because there isn't anywhere to store the extracted content on the node. I think it will probably have to call ExtractorManager from LuceneIndex. Something like: IndexTrigger -- LuceneIndex -- ExtractorManager -- ContentExtractor Does this sound correct? I found this LuceneIndex posted by Christophe, but I don't think it is checked into CVS. I believe you can index fields in Lucene that are not actually stored as content. I would like to try and add the content extractor code to the LuceneIndex. Does anyone know the status of the LuceneIndex? http://www.mail-archive.com/[EMAIL PROTECTED]/msg09091.html Thanks, Ryan Rhodes - 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: Download of files that are larger than 65535 Bytes (63,9K)
It sounds like you are using MySQL as your content store. Is that correct? From: Oleg Rostanin [EMAIL PROTECTED] Reply-To: Slide Users Mailing List [EMAIL PROTECTED] To: Slide Users Mailing List [EMAIL PROTECTED] Subject: Re: Download of files that are larger than 65535 Bytes (63,9K) Date: Tue, 27 Apr 2004 16:46:08 +0200 I have checked the Slide servlet with another client (DAVExplorer). It works correctly. It means the reason must be hiding somwhere in webdav API Oleg Rostanin wrote: Hello everyone, I'm writing a universal module for UP/Downloading files to/from WebDAV repositories. I have encountered the strange problem that only files with the size up to 65535 Bytes are uploaded/downloaded correctly. If a file is larger that only the first 65535 Bytes are uploaded or downloaded. import org.apache.webdav.lib.*; public void downloadDocument(WebdavResource resource, File localFile) throws Exception { if(!resource.isCollection()) { resource.getMethod(localFile); } } can anybody help me? Best, Oleg Rostanin - 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] _ Watch LIVE baseball games on your computer with MLB.TV, included with MSN Premium! http://join.msn.com/?page=features/mlbpgmarket=en-us/go/onm00200439ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: patch for auto-create-users
Daniel Florey wrote: It is possible to assign different stores to different scopes (like mount points), so you don't need the proxy thing. So the main task would be to write a LDAP-store. To have such a store would be really a great thing so that users and roles are stored only in one physical store. If LDAP provides some notification mechanism for informing slide about user/role updates additional user/role caching would be possible to achieve better performance. Regards, Daniel I went through the same progression as Jamie with auto-create-users. It would have been nice to have when I started, but it doesn't add anything now since I ultimately need the LDAP sync'd setup as well. Could you give an idea of just how much effort is involved in creating an LDAP store? I don't know if it makes it any easier, but I only need LDAP for usernames and passwords. I don't really even care if roles are stored in LDAP. Regards, Ryan Rhodes _ Stop worrying about overloading your inbox - get MSN Hotmail Extra Storage! http://join.msn.com/?pgmarket=en-uspage=hotmail/es2ST=1/go/onm00200362ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Download of files that are larger than 65535 Bytes (63,9K)
I was intending to put something detailed together on this. The problem is with MySQL 4.0. It only allows BLOB's up to 64k. I have searched everywhere on MySQL lists and could not confirm this, but you will notice that you can't even upload a file greater than 64k using phpmyadmin. I don't know if this is a phpmyadmin problem (I created the tables with phpmyadmin in the first place), a mysql driver problem, or just a problem with 4.0 that has been fixed in 4.x 0. I can't imagine 64k is the correct max for blobs for such a popular database. The solution I used was to change the type of the CONTENT column in the VERSION_CONTENT table from BLOB to LONGBLOB. I can no longer browse this table with phpmyadmin (bug???), but I have tested upload/download with 100 Meg files. Apparently, changing the type to LONGBLOB will break PROPPATCH requests. Stuart MacPherson posted a patch for this sometime back. I have not tested for the problem or applied the patch. I don't think the patch or the change to the table structure ever got into the Slide codebase. --hope this helps Ryan Rhodes From: Oleg Rostanin [EMAIL PROTECTED] Reply-To: Slide Users Mailing List [EMAIL PROTECTED] To: Slide Users Mailing List [EMAIL PROTECTED] Subject: Re: Download of files that are larger than 65535 Bytes (63,9K) Date: Tue, 27 Apr 2004 17:07:42 +0200 Yes, it is correct Ryan Rhodes wrote: It sounds like you are using MySQL as your content store. Is that correct? From: Oleg Rostanin [EMAIL PROTECTED] Reply-To: Slide Users Mailing List [EMAIL PROTECTED] To: Slide Users Mailing List [EMAIL PROTECTED] Subject: Re: Download of files that are larger than 65535 Bytes (63,9K) Date: Tue, 27 Apr 2004 16:46:08 +0200 I have checked the Slide servlet with another client (DAVExplorer). It works correctly. It means the reason must be hiding somwhere in webdav API Oleg Rostanin wrote: Hello everyone, I'm writing a universal module for UP/Downloading files to/from WebDAV repositories. I have encountered the strange problem that only files with the size up to 65535 Bytes are uploaded/downloaded correctly. If a file is larger that only the first 65535 Bytes are uploaded or downloaded. import org.apache.webdav.lib.*; public void downloadDocument(WebdavResource resource, File localFile) throws Exception { if(!resource.isCollection()) { resource.getMethod(localFile); } } can anybody help me? Best, Oleg Rostanin - 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] _ Watch LIVE baseball games on your computer with MLB.TV, included with MSN Premium! http://join.msn.com/?page=features/mlbpgmarket=en-us/go/onm00200439ave/direct/01/ - 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] _ FREE pop-up blocking with the new MSN Toolbar get it now! http://toolbar.msn.com/go/onm00200415ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: patch for auto-create-users
Well, I should restate that. I do need roles. I was actually hoping to use SlideRealm, because I want other parts of the webapp to use Slide roles for access control. The only reason I need LDAP is because usernames/passwords must all come from LDAP in the environments we are targeting. Once the user is created in Slide, I want SlideRealm to handle everything. The question is... how do you use an LDAP Realm for authentication, but a SlideRealm for authorization. I think I would need the SlideRealm to pull it's users from an LDAP store. Does any of this sound correct? --Ryan From: Martin Holz [EMAIL PROTECTED] Reply-To: Slide Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: patch for auto-create-users Date: 27 Apr 2004 17:32:51 +0200 Ryan Rhodes [EMAIL PROTECTED] writes: I went through the same progression as Jamie with auto-create-users. It would have been nice to have when I started, but it doesn't add anything now since I ultimately need the LDAP sync'd setup as well. Could you give an idea of just how much effort is involved in creating an LDAP store? I don't know if it makes it any easier, but I only need LDAP for usernames and passwords. I don't really even care if roles are stored in LDAP. If you don't need groups, why do you need a sync with the LDAP-Server? This is a scenario where autocreate-users is really helpfull. Configure your servlet container to use LDAP authentication. If you delete a user, in LDAP the servlet container does not longer allow login (assuming the container does not cache to much). So nobody cares about a user node in slide which belongs to user which not longer exists in LDAP. Btw. deleting this user node might be problematic, if the user still owns files. Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Get rid of annoying pop-up ads with the new MSN Toolbar FREE! http://toolbar.msn.com/go/onm00200414ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: patch for auto-create-users
Martin Holz wrote: Don't use SlideRealm. The slide realm makes user/password combinations available to the servlet container. I am not grasping this part. You mean that slide realm becomes the store for usernames/passwords that the servlet container authenticates against? Any realm does not handle authorization. The servlet container does a coarse authorization based on the information in web.xml. If this authorization is successfull the implementation of org.apache.slide.Security will do a detailed authorization based on the information in the /users node. Slide ignores the results of javax.servlet.http.HttpRequest.isUserInRole(). Martin I think we are in reverse here. I want to pull roles from Slide for other webapps. For instance, I might want to have a webapp with forums that are linked to slide groups, so that users of the webapp will browse the forums and only see the forums that are associated with the Slide Groups they belong to. I am thinking that the course authorization will be fine for apps that don't allow the users to directly manipulate the content tree. So... I want the webapps to use javax.servlet.http.HttpRequest.isUserInRole(), but I want the roles to come from Slide. Does this make sense? --Ryan _ MSN Toolbar provides one-click access to Hotmail from any Web page FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OutOfMemoryError for large file uploads
Thanks for the reply Daniel, We tried to turn the memory up to 256M and we got the same error. From: Daniel Florey [EMAIL PROTECTED] Reply-To: Slide Users Mailing List [EMAIL PROTECTED] To: Slide Users Mailing List [EMAIL PROTECTED] Subject: Re: OutOfMemoryError for large file uploads Date: Thu, 22 Apr 2004 15:36:00 +0200 Hi Ryan, try to start Tomcat with 256M. This might help as slide tries to load the file into memory (this is a known issue). We'll have a closer look at the problem in the near future. Regards, Daniel Ryan Rhodes wrote: We're having some issues getting large files into Slide. Other suggestions on the mailing list have helped somewhat (like setting the max_packet_size MySQL attribute) for getting larger files in, but nothing anywhere near what we'll need to be able to handle. I have not tried the LONGBLOB solution mentioned elsewhere in the mailing lists; frankly it looks like way too much of a pain to implement. The root of the problem appears to be that the MySQL JDBC driver can't deal with blob insert sizes somewhere between 9M and 60M - I was able to successfully insert a 9M file into our Slide app (once we tweaked MySQL's max_allowedpacket attribute, and giving Tomcat 128M stack size using the -Xmx and -Xms options), but the 60M file fails no matter how I try. I've attempted it using our interface to Slide, the command-line client provided, and through IE, but it never works. We're using MySQL 4.0.18 and the JDBCStore with the MySQL RDBMS adapter. Our version of Slide was checked out from the HEAD a week ago. Has anybody gotten mysql to take large files (large for my purposes being in the 15-100 meg range)? Am I right about it being the driver? Any other suggestions or workarounds? I'll do the LONGBLOB thing if I have to but...I really don't want to have to. ;) Catalina.out shows the following: 21 Apr 2004 17:40:43 - org.apache.slide.util.event.EventLogger - INFO - Recieved event with name 'transaction:begin': [EMAIL PROTECTED] 21 Apr 2004 17:40:43 - org.apache.slide.util.event.EventLogger - INFO - Recieved vetoable event with name 'webdav:put': [EMAIL PROTECTED] 21 Apr 2004 17:40:43 - org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter - INFO - /files/projects/project-1/largeFile60M1.0 21 Apr 2004 17:40:43 - org.apache.slide.util.event.EventLogger - INFO - Recieved vetoable event with name 'content:create': org.apache.slide.event.ContentEvent[content uri=/files/projects/project-1/largeFile60M contentType=application/octet-stream] java.lang.OutOfMemoryError org.apache.slide.common.ServiceAccessException: Service [EMAIL PROTECTED] access error : java.lang.OutOfMemoryError at org.apache.slide.store.AbstractStore.createRevisionContent(AbstractStore.java:1311) at org.apache.slide.store.ExtendedStore.createRevisionContent(ExtendedStore.java:393) at org.apache.slide.content.ContentImpl.create(ContentImpl.java:552) at org.apache.slide.webdav.method.PutMethod.executeRequest(PutMethod.java:380) at org.apache.slide.webdav.method.AbstractWebdavMethod.run(AbstractWebdavMethod.java:322) at org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:165) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204) at org.apache.slide.webdav.filter.LogFilter.doFilter(LogFilter.java:139) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:233) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:587) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567
Re: Automatic creation of user nodes in slide
Hi Martin, I tried to request the page with Curl using a PUT. It works for an already created user. I just get access denied when I try a new user. From: Martin Holz [EMAIL PROTECTED] Reply-To: Slide Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: Automatic creation of user nodes in slide Date: 31 Mar 2004 23:23:54 +0200 Ryan Rhodes [EMAIL PROTECTED] writes: I'm using a version I checked out from the head about a week ago. When I set logger-level to 7 I saw some Exceptions related to this, and I also saw a number of Exceptions when slide loaded that I didn't see before. Everything else seems to be working... so I'm not sure if these are normal and/or unrelated. I'm going to put some info about these new exceptions at the bottom of the email. You can completely ignore all ObjectNotFound and ObjectAlreadyExistExceptions. However the null pointer exception is serious. [Changed order of cited stuff] Getting current connection for thread Thread[http8080-Processor25,5,main] 31 Mar 2004 12:11:10 - org.apache.slide.store.impl.rdbms.JDBCStore - DEBUG - No id for current thread - called outside transaction? 31 Mar 2004 12:11:10 - org.apache.slide.common.SlideException - DEBUG - org.apache.slide.common.ServiceAccessException: Service [EMAIL PROTECTED] access error : java.lang.NullPointerException at org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.assureUriId(StandardRDBMSAdapter.java:1216) at org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.storeObject(StandardRDBMSAdapter.java:107) at org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.createObject(StandardRDBMSAdapter.java:89) [...] at org.apache.slide.structure.StructureImpl.retrieve(StructureImpl.java:143) at org.apache.slide.webdav.util.DirectoryIndexGenerator.generate(DirectoryIndexGenerator.java:162) at org.apache.slide.webdav.WebdavServlet.doGet(WebdavServlet.java:346) Could you verify that this means the connection is NULL. There seems to be a bug in the way DirectoryIndexGenerator/J2EE store/SecurityImpl work together. doGet() assumes, that is does not need a transaction since it does not do any write operation. Thats correct unless a user is autocreated, which results in a write operation. You may try to do a PUT request as the first action of the new user. This should autocreate the user inside the transaction. Please tell me if this works. I will try to fix the bug tomorrow, its almost midnight in here. Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Get reliable access on MSN 9 Dial-up. 3 months for the price of 1! (Limited-time offer) http://join.msn.com/?page=dept/dialuppgmarket=en-usST=1/go/onm00200361ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How do I propogate user identity from a webapp to slide using the client API?
We are using the slide client API inside of a webapp. If slide requires authentication credentials, then I'm going to need the username/password to access it with the client API. I don't want to expose credentials in the webapp, but I would like to let slide keep managing access control to the documents I'm exposing in the webapp. Does anyone have a decent solution for this? _ Get rid of annoying pop-up ads with the new MSN Toolbar FREE! http://toolbar.msn.com/go/onm00200414ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Automatic creation of user nodes in slide
Thanks for the response Martin. I set auto-create-users to true. When I log in with a user that is already in slide it still works, but when I try to log in with a new user (admin) I get: HTTP Status 500 The server encountered an internal error () that prevented it from fulfilling this request. The only thing I get from the logs is this: 31 Mar 2004 11:25:18 - WARNING - WARNING: No active transaction http8080-Processor23, 31-Mar-2004 11:25:18, admin, GET, 500 Internal Server Error, 20 ms, / Any idea why this might be failing? Does this require SlideRealm or the JAAS module to work? From: Martin Holz [EMAIL PROTECTED] Reply-To: Slide Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Automatic creation of user nodes in slide Date: 31 Mar 2004 17:36:12 +0200 Ryan Rhodes [EMAIL PROTECTED] writes: I read somewhere that slide would automatically create a new user node when a new user is authenticated by Tomcat. We are trying to setup Tomcat/Slide to authenticate users against an LDAP directory, but we do not want to have to run any batch processes to add user nodes. We just want the node to be created whenever a new user is authenticated. We DO NOT necessarily need ACL to be mapped from the directory. We can manage ACL in slide. Add auto-create-userstrue/auto-create-users to your Domain.xml below the filespath / element. This works fine as long as you do not need roles. Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN Toolbar provides one-click access to Hotmail from any Web page FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Automatic creation of user nodes in slide
) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133) at org.apache.catalina.core.StandardHost.start(StandardHost.java:832) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345) at org.apache.catalina.startup.Catalina.start(Catalina.java:598) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) From: Martin Holz [EMAIL PROTECTED] Reply-To: Slide Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Automatic creation of user nodes in slide Date: 31 Mar 2004 18:56:15 +0200 Ryan Rhodes [EMAIL PROTECTED] writes: Thanks for the response Martin. I set auto-create-users to true. When I log in with a user that is already in slide it still works, but when I try to log in with a new user (admin) I get: HTTP Status 500 The server encountered an internal error () that prevented it from fulfilling this request. The only thing I get from the logs is this: 31 Mar 2004 11:25:18 - WARNING - WARNING: No active transaction http8080-Processor23, 31-Mar-2004 11:25:18, admin, GET, 500 Internal Server Error, 20 ms, / This looks like a bug. The warning may or may not be related to the problem. Which version of slide are you using? Could you set the logger-level at the top of Domain.xml to 7 and look if you get more information about the problem? Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Free up your inbox with MSN Hotmail Extra Storage. Multiple plans available. http://join.msn.com/?pgmarket=en-uspage=hotmail/es2ST=1/go/onm00200362ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
J2EE Store vs. JDBC Store
Is the only difference in the J2EE store and the JDBC store that I can configure the connection for the J2EE store at the application server level? The higher level features like connection pooling... etc.. don't affect slide... or do they? _ Check out MSN PC Safety Security to help ensure your PC is protected and safe. http://specials.msn.com/msn/security.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exceptions when I try to setup a mysql JDBC store
I am trying to setup a JDBC store for the first time using mysql. I copied the domain.xml from a copy a found online, but I get Exceptions when I start the server. It looks like it is failing to create the initial tables in the database. Can anyone help out with this problem? Can anyone confirm for me that slide creates it's own tables and that I don't need to create them manually? Here is the domain.xml: definition store name=jdbc nodestore classname=org.apache.slide.store.impl.rdbms.JDBCStore parameter name=adapterorg.apache.slide.store.impl.rdbms.MySqlRDBMSAdapter/parameter parameter name=drivercom.mysql.jdbc.Driver/parameter parameter name=urljdbc:mysql://192.168.1.15/piefinger/parameter parameter name=userauser/parameter parameter name=passwordapassword/parameter parameter name=dbcpPoolingtrue/parameter parameter name=maxPooledConnections10/parameter parameter name=isolationSERIALIZABLE/parameter parameter name=compressfalse/parameter /nodestore securitystore reference store=nodestore / /securitystore lockstore reference store=nodestore / /lockstore revisiondescriptorsstore reference store=nodestore / /revisiondescriptorsstore revisiondescriptorstore reference store=nodestore / /revisiondescriptorstore contentstore classname=org.apache.slide.store.txfile.TxFileContentStore parameter name=rootpath/blarg_contentstore/parameter parameter name=workpath/blarg_workingresource/parameter parameter name=versionfalse/parameter parameter name=resetBeforeStartingfalse/parameter /contentstore /store scope match=/ store=jdbc / /definition Here is the server log: 29 Mar 2004 16:43:13 - org.apache.slide.common.Domain - INFO - Initializing Domain 29 Mar 2004 16:43:13 - 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.domain=E:/tmp/Slide 2.0b1 Tomcat 5.0/slide/Domain.xml} 29 Mar 2004 16:43:13 - 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=false, logger=org.apache.slide.util.logger.SimpleLogger, checkout-fork=forbidden} 29 Mar 2004 16:43:13 - org.apache.slide.common.Domain - INFO - Initializing namespace : slide 29 Mar 2004 16:43:13 - org.apache.slide.common.Namespace - INFO - Loading namespace slide parameters 29 Mar 2004 16:43:14 - org.apache.slide.common.Namespace - INFO - Loading namespace definition 29 Mar 2004 16:43:14 - org.apache.slide.common.Namespace - INFO - Node store: org.apache.slide.store.impl.rdbms.JDBCStore 29 Mar 2004 16:43:14 - org.apache.slide.store.impl.rdbms.JDBCStore - INFO - Loading and registering driver 'com.mysql.jdbc.Driver' 29 Mar 2004 16:43:14 - org.apache.slide.store.impl.rdbms.JDBCStore - INFO - Setting isolation level 'SERIALIZABLE' 29 Mar 2004 16:43:14 - org.apache.slide.store.impl.rdbms.JDBCStore - INFO - Using DBCP pooling 29 Mar 2004 16:43:14 - org.apache.slide.store.impl.rdbms.JDBCStore - INFO - Number of connections set to 10 29 Mar 2004 16:43:14 - org.apache.slide.common.Namespace - INFO - Security store references nodestore 29 Mar 2004 16:43:14 - org.apache.slide.common.Namespace - INFO - Lock store store references nodestore 29 Mar 2004 16:43:14 - org.apache.slide.common.Namespace - INFO - Revision descriptors store references nodestore 29 Mar 2004 16:43:14 - org.apache.slide.common.Namespace - INFO - Revision descriptor store references nodestore 29 Mar 2004 16:43:14 - org.apache.slide.common.Namespace - INFO - Content store: org.apache.slide.store.txfile.TxFileContentStore 29 Mar 2004 16:43:14 - org.apache.slide.store.txfile.AbstractTxFileStoreService - INFO - File Store configured to /blarg_contentstore, working directory /blarg_workingresource 29 Mar 2004 16:43:14 - INFO - Setting object cache size for store jdbc to 1 29 Mar 2004 16:43:14 - org.apache.slide.store.ExtendedStore - INFO - Setting permission cache size for store jdbc to 1 29 Mar 2004 16:43:14 - org.apache.slide.store.ExtendedStore - INFO - Setting lock cache size for store jdbc to 100 29 Mar 2004 16:43:14 - org.apache.slide.store.ExtendedStore - INFO - Setting descriptors cache size for store jdbc to 1 29 Mar 2004 16:43:14 - org.apache.slide.store.ExtendedStore - INFO - Setting descriptor cache size for store jdbc to 1 29 Mar 2004 16:43:14 - org.apache.slide.store.ExtendedStore - INFO - Setting content caching for store jdbc to false 29 Mar 2004 16:43:14 - org.apache.slide.store.ExtendedStore - INFO - Setting content cache size for store jdbc
Re: Which API should I use for a web app?
Thanks for the info Daniel, I'm still building proof of concept demos at this stage, but I'm going to try and rebuild them all with the WVCM API so I can test it out. The source code looks very similar to the client library in some places. Does the WVCM actually build on the source for the client library or just the webdav protocol? Can anyone confirm that the client library and WVCM API will be able to use the external transactions support in development for slide? Ideally, I think a webapp would want to drop a JCA Adapter into the app server and treat slide like a database from there on. I just need to find the JDBC for slide. thanks, Ryan Rhodes From: Daniel Florey [EMAIL PROTECTED] Reply-To: Slide Users Mailing List [EMAIL PROTECTED] To: Slide Users Mailing List [EMAIL PROTECTED] Subject: Re: Which API should I use for a web app? Date: Mon, 15 Mar 2004 16:50:09 +0100 Hi Ryan, at the moment it is not recommended to use the slide api directly as you don't have access to many features that are hacked into the webdav layer. I don't know if versioning is working by using the slide api, there is some revision support but it is somehow mixed up with the webdav layer, so my advice would be not to use it. If you use slide api you are tied to the same vm so your webapp is not very scalable. The client library is a good way to access slide as the webdav-layer will not change soo much in future. WVCM is an abstraction layer on top of webdav, so it is little slower than webdav clientlib but it would be nice, if you would give it a try so that the jsr can get some feedback. Regards, Daniel BTW: Slide is (at the moment) far to slow to serve any webapp in real time. I'm currently working on a process engine that is doing all the caching and background-building of webpages so that a webapp can be build on top of slide. It will take some weeks until it is at a usable stage, but this might be a choice for webapps in the future. ryan wrote: I'm looking at the slide client library, the slide API, and the WVCM API, and I can't figure out which one I should use for a web application. Can someone explain what the difference in these API's is? Does the Slide API support versioning? Would the Slide API be much faster than the other two because of the network traffic? Which API will support external transactions in the future? Thanks, Ryan Rhodes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Get a FREE online computer virus scan from McAfee when you click here. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Which API should I use for a web app?
Daniel wrote: BTW: Slide is (at the moment) far to slow to serve any webapp in real time. I'm currently working on a process engine that is doing all the caching and background-building of webpages so that a webapp can be build on top of slide. It will take some weeks until it is at a usable stage, but this might be a choice for webapps in the future. Would the caching take place on the side end of the connection like a database or is this more like a web framework? _ Get business advice and resources to improve your work life, from bCentral. http://special.msn.com/bcentral/loudclear.armx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]