Version number control via low level Slide (non WebDAV) API

2004-04-20 Thread Alexander
Hi, All!

Is there possible to control the revision version manually in the low 
level Slide API ?
F.e.: I need to increase the 'major' number of revision version. I try 
to create NodeRevisionDescriptor
with required NodeRevisionNumber (i.e. “version”), but all 
ContentHelper’s create() methods does
the resetting of the NodeRevisionNumber by 
descriptor.setNodeRevisionNumber(…).
The setNodeRevisionNumber(…) method is protected in the 
NodeRevisionDescriptor itself.
How can I change the NodeRevisionNumber in the NodeRevisionDescriptor?
Or how can I create theNodeRevisionDescriptor with the specified 
NodeRevisionNumber ?

Is this possible?

Please help.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


SQL Error with MySqlRDBMSAdapter

2004-04-20 Thread Andrew Badstubner
I am trying to configure Slide to use MySql as the backend, as
described in the docs on the web site. The problem is that
MySql doesn't seem to like the SQL that it is being fed. I
have built slide from source using the 2.0 RC1 tag, and
created the tables using the provided db scripts (thanks!!). I
can see when it starts that some data is being added to the db
(a few rows in previously empty tables), but it very quickly
dies. I am running Tomcat 5 and MySql 3.23.55. Any ideas?

Many Thanks,

Andy

**
* store config from Domain.xml
**


  
org.apache.slide.store.impl.rdbms.MySqlRDBMSAdapter
com.mysql.jdbc.Driver
jdbc:mysql://localhost/Slide
xxx
xxx
true
10
SERIALIZABLE
false
  
  

  
  

  
  

  
  

  
  

  
 
 



**
* snip from catalina.out
**
INFO: Starting Servlet Engine: Apache Tomcat/5.0.19
20 Apr 2004 20:11:22 - org.apache.slide.common.Domain - INFO -
Auto-Initializing Domain
20 Apr 2004 20:11:22 - 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.sli
de.search=true, org.apache.slide.security=true,
org.apache.slide.urlEncoding=UTF-8,
org.apache.slide.domain=../slide/Domain.xml}
20 Apr 2004 20:11:22 - org.apache.slide.common.Domain - INFO -
Initializing Domain
20 Apr 2004 20:11:22 - 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.sli
de.search=true, org.apache.slide.security=true,
org.apache.slide.urlEncoding=UTF-8,
org.apache.slide.domain=../slide/Domain.xml}
20 Apr 2004 20:11:22 - org.apache.slide.common.Domain - INFO -
Domain parameters: {logger-level=6, versioncontrol-exclude=,
auto-version=checkout-checkin, historypath=/history,
checkin-fork=forbidd
en, workingresourcepath=/workingresource,
workspacepath=/workspace, default=slide,
auto-version-control=true,
logger=org.apache.slide.util.logger.SimpleLogger,
checkout-fork=forbidden}
20 Apr 2004 20:11:22 - org.apache.slide.common.Domain - INFO -
Initializing namespace : slide
20 Apr 2004 20:11:22 - org.apache.slide.common.Namespace -
INFO - Loading namespace slide parameters
20 Apr 2004 20:11:22 - org.apache.slide.common.Namespace -
INFO - Loading namespace definition
20 Apr 2004 20:11:23 - org.apache.slide.common.Namespace -
INFO - Node store: org.apache.slide.store.impl.rdbms.JDBCStore
20 Apr 2004 20:11:23 -
org.apache.slide.store.impl.rdbms.JDBCStore - INFO - Loading
and registering driver 'com.mysql.jdbc.Driver'
20 Apr 2004 20:11:23 -
org.apache.slide.store.impl.rdbms.JDBCStore - INFO - Setting
isolation level 'SERIALIZABLE'
20 Apr 2004 20:11:23 -
org.apache.slide.store.impl.rdbms.JDBCStore - INFO - Using
DBCP pooling
20 Apr 2004 20:11:23 -
org.apache.slide.store.impl.rdbms.JDBCStore - INFO - Number of
connections set to 10
20 Apr 2004 20:11:23 - org.apache.slide.common.Namespace -
INFO - Security store references nodestore
20 Apr 2004 20:11:23 - org.apache.slide.common.Namespace -
INFO - Lock store store references nodestore
20 Apr 2004 20:11:23 - org.apache.slide.common.Namespace -
INFO - Revision descriptors store references nodestore
20 Apr 2004 20:11:23 - org.apache.slide.common.Namespace -
INFO - Revision descriptor store references nodestore
20 Apr 2004 20:11:23 - org.apache.slide.common.Namespace -
INFO - Content store references nodestore
20 Apr 2004 20:11:23 - INFO - Setting object cache size for
store MySqlStore to 1
20 Apr 2004 20:11:23 - org.apache.slide.store.ExtendedStore -
INFO - Setting permission cache size for store MySqlStore to 1
20 Apr 2004 20:11:23 - org.apache.slide.store.ExtendedStore -
INFO - Setting lock cache size for store MySqlStore to 100
20 Apr 2004 20:11:23 - org.apache.slide.store.ExtendedStore -
INFO - Setting descriptors cache size for store MySqlStore to
1
20 Apr 2004 20:11:23 - org.apache.slide.store.ExtendedStore -
INFO - Setting descriptor cache size for store MySqlStore to 1
20 Apr 2004 20:11:23 - org.apache.slide.store.ExtendedStore -
INFO - Setting content caching for store MySqlStore to false
20 Apr 2004 20:11:23 - org.apache.slide.store.ExtendedStore -
INFO - Setting content cache size for store MySqlStore to 1
20 Apr 2004 20:11:23 - org.apache.slide.store.ExtendedStore -
INFO - Setting content cache byte size for store MySqlStore to
1000
20 Apr 2004 20:11:23 - org.apache.slide.store.ExtendedStore -
INFO - Setting transaction content cache size for store
MySqlStore to 1000
20 Apr 2004 20:11:23 - org.apache.slide.store.ExtendedStore -
INFO - Setting transaction content cache byte size for store
MySqlStore to 100
20 Apr 2004 20:11:23 - org.apache.slide.store.ExtendedStore -
INFO - Setting maximum byte size for content cache entry for
st

Re: Slide and multiple languange??

2004-04-20 Thread 陶 京瑞
thx for your email. then do you know how to solve the problem in mySQL?


From: "Jacob Lund" <[EMAIL PROTECTED]>
Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: Slide and multiple languange??
Date: Tue, 20 Apr 2004 13:03:11 +0200
MySql 4.0 does not support UTF-8! Mysql 4.1 should, but it is still in 
alpha
and I have not succeeded in getting it to work yet!

/jacob

- Original Message -
From: "陶 京瑞" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 20, 2004 12:32 PM
Subject: Re: Slide and multiple languange??
> I thought the problem maybe lie in mySql, since if I use the same 
chinese
> name to download the file in Slide, it success although the file is 
shown
> as ???.txt. I check the file name in mySql, the file show the same as
> ???.txt. But I still don't know how can I solve the problem.
>
>
> >From: "Jacob Lund" <[EMAIL PROTECTED]>
> >Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: Re: Slide and multiple languange??
> >Date: Tue, 20 Apr 2004 11:55:31 +0200
> >
> >I don't know anything about jboss! But when I used TC 4.1 i had to use
the
> >coyoteconnector and apply useURIValidationHack="false" in order to get
> UTF-8
> >working properly.
> >
> >/jacob
> >
> >- Original Message -
> >From: "陶 京瑞" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Tuesday, April 20, 2004 11:43 AM
> >Subject: Re: Slide and multiple languange??
> >
> >
> > > thanks for your reply.
> > >
> > > I use slide 2RC1 with Jboss3.0.8+tomcat4.1.24. which seems tomcat's
> > > server.xml doesnot work when I start the Jboss+tomcat, I have found
> that
> > > org.apache.slide.urlEncoding=UTF-8 had been set in slide.properties
> file.
> > >
> > > I have follow your words as following:
> > >
> > >   
> > > classname="org.apache.slide.store.txfile.TxFileContentStore">
> > > slide/fileContent
> > > slide/workContent
> > > true
> > > true
> > >   
> > >
> > > However, when I successfully upload a file in slide, and use
> > > propfindMehtod, the file name still display as ???.txt. the 
properties
> > > shown as following(see  and ):
> > >
> > > 
> > >
> > > 
>
> > >
>
/slide/files/testtomcat%C3%A4%C2%B8%C2%AD%C3%A6%C2%96%C2%87.test
:
>
> >href>
>
> > >
>
> > >   
>
> > > testtomcat??.test
>
> > > 
>
> > > Tue, 20 Apr 2004 09:32:20
> > > GMT
>
> > > 852
>
> > > 
>
> > > application/octet-stream
>
> > >
> > > en
>
> > > 2004-04-20T09:17:21Z
>
> > > 
>
> > > 
>
> > >
>
> > >  
>
> > > 
>
> > >  
>
> > >  
>
> > > 
>
> > >  
>
> > >   
>
> > >   
>
> > >  
>
> > > 
>
> > >  
>
> > > 
>
> > > 
>
> > > 
>
> > >  
>
> > >   
>
> > >   2004-04-20T09:32:20Z
>
> > >
> > >   791b7c7bddf9ae4259e6c8d2a7ad0f1a
>
> > >   
>
> > >   HTTP/1.1 200 OK
>
> > >   
>
> > > 
> > >
> > > >From: "Jacob Lund" <[EMAIL PROTECTED]>
> > > >Reply-To: "Slide Users Mailing List" 
<[EMAIL PROTECTED]>
> > > >To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
> > > >Subject: Re: Slide and multiple languange??
> > > >Date: Tue, 20 Apr 2004 11:11:24 +0200
> > > >
> > > >what version of slide are you using and what servlet engine are 
you
> >using?
> > > >
> > > >I have slide 2RC1 working fine with utf-8 encoding on a tomcat 5.
Here
> is
> > > >what I did to make it work:
> > > >In slide:
> > > >Add a parameter url-encode-path in the tx content and descriptors
> store
> > > and
> > > >set it to true. (in domain.xml)
> > > >In tomcat 5:
> > > >add URIEncoding="UTF-8" as parameter to the connector in 
server.xml.
> > > >
> > > >I have not tested it with Chinese but it works with Russian and
Danish
> on
> > > an
> > > >English machine.
> > > >
> > > >Just notice that this requires your client to support UTF-8 
encoding.
> > > >
> > > >/jacob
> > > >
> > > >- Original Message -
> > > >From: "陶 京瑞" <[EMAIL PROTECTED]>
> > > >To: <[EMAIL PROTECTED]>
> > > >Sent: Tuesday, April 20, 2004 10:48 AM
> > > >Subject: Slide and multiple languange??
> > > >
> > > >
> > > > > hi,
> > > > >
> > > > > does the Slide support Chinese? if so how to?
> > > > >
> > > > > I have put a file onto the slide, when I use propfindmethod to
> display
> > > the
> > > > > file name, the file with Chinese name is shown as ???.txt. I 
think
> >some
> > > >one
> > > > > may also face such multiple language problem, but how to deal 
with
> it?
> > > > >
> > > > > Thanks for any help.
> > > > >
> > > > > 
_
> > > > > 与联机的朋友进行交流,请使用 MSN Messenger:
> > > http://messenger.msn.com/cn
> > > > >
> > > > >
> > > > >
> -
> > > > > To unsubsc

Re: Error when doing store & committing

2004-04-20 Thread Peder Nordvaller
That would make sense, but I'm never getting a read-lock (at least not
explicitly, is it done implicitly by the structure or content-helper when
doing a retrieve?) that I could release?

I'm getting the same error when doing a macro.move() (recursive overwrite)
on a node but it happens only when I've recently created a node below -that-
node:

Say I have node /files/folder/image.jpg. I can move the folder to
/files/newfolder/image.jpg just fine to wherever I want using macro.move().
If I create a new node below that one at e.g.
/files/folder/image.jpg/thumb.jpg (read /files/folder/image.jpg latest
revision content, manipulate it and set the new node's content to it), and
then try to move the folder I get the above(and below)mentioned error:
Could not upgrade to commit lock for resource at
'/files/folder/image.jpg_1.0' (ERR_NO_LOCK)

Directly after creating the new node I look at the xml-documents for the
node /files/folder/image.jpg and it seems to contain no locks ().

If I restart tomcat and try to do the move, however, it works just fine to
move the folder with the created node (created before the restart).

Am I creating the new node in some wrong way?

Regards, Peder


- Original Message - 
From: "Oliver Zeigermann" <[EMAIL PROTECTED]>
To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, April 19, 2004 10:10 AM
Subject: Re: Error when doing store & committing


> Hmmm, it seems here you have two transactions: One does a single read on
> a resources, but never frees the lock on it. The next tries to acquire a
> commit locks which needs the read lock to be released first. As this
> never happens it times out and tells you it could not commit. I'd
> suggest to find the spot where you acquire the read lock and make sure
> to release.
>
> Oliver
>
> Peder Nordvaller wrote:
>
> > Hi, when I try to store a revision to a node (content.store()) and
commit, I get an exception:
> >
> > org.apache.slide.store.txfile.rm.ResourceManagerException:
Thread-14-1082064016763-6: Could not upgrade to commit lock for resource at
'/files/fractal.jpg/thumb.jpg_1.0' (ERR_NO_LOCK)
> >
> > together with some errors in the log:
> >
> > 15 Apr 2004 23:20:27 -
org.apache.slide.store.txfile.AbstractTxFileStoreService - CRITICAL - Thread
Thread[Thread-14,5,main] failed to prepare transaction branch
Thread-14-1082064016763-6
> > 15 Apr 2004 23:20:27 - org.apache.slide.transaction.SlideTransaction -
WARNING - Prepare failure: Resource manager TxFileStore at
D:\Slide2\store\store\content  working on D:\Slide2\store\work\content Error
code UNKNOWN in Transaction 6 xid Thread-14-
> 1082064016763-6- in thread Thread-14
> >
> > I've tried to lock the resource via lock.lock() but with no success.
Does anyone know what I'm doing wrong?
> >
> > Regards, Peder Nordvaller
> >
> >
> >
>
>
> -
> 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]



Using Slide as windows filesystem gateway

2004-04-20 Thread pfoorion
Is there any way to have slide use a file system store
that is simply a shared directory on a windows
machine?  Basically something similar to Davenport
(http://davenport.sourceforge.net/) that uses the file
system's ACLs and allows the target store to also be a
shared windows directory. I am working on a project to
provide remote file access to a central repository of
files.  There is already a solution in place that uses
windows shared directories and while we move to the
new system, we want to be able to run the two in
parallel.
Eventually, I want to move to using slide's content
managment capabilities but won't be allowed to until
we have proven to the managers the viability of our
new architecture.
I know that slide has a file system store, but I can't
get it to not tag on the version number of the file,
ending up with files like "file.doc_1.0".  I tried
looking through the documentation and code but didn't
really see anything that would allow me to disable
this behavior.  Any help/suggestions are welcome.

Thanks,
Seth Wright




__
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Put: Forbidden

2004-04-20 Thread Jean-Baptiste Lièvremont
Hi,

I have a problem uploading files to my Slide server. I use the Slide 
command line WebDAV client to connect to my server (Slide 2.0rc1, Tomcat 
5.0.19, JDK 1.4.2_03). I authenticate myself as root, 'cd' to files. 
Until then it is alright, actually I am able to browse the directory 
structure, create folders and delete them. But when I try to put a file, 
the server answears '403 Forbidden'.

What is the configuration file I have to modify in order to fix this ?

Thx

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Mystical url for Domain.xml when compiling my jsp

2004-04-20 Thread Ari Paasonen
Hello,

first of all thanks for answering. I found the slide.properties from the 
slide-kernel-2.0rc1.jar file and modified it's org.apache.slide.domain 
property to match it with the absolute path to the Domain.xml in our server. 
I also removed all other slide-kernel.jars except those under 
webapps/slide... and webapps/myapp...

Now when I'm trying to access our namespace in the Domain object it returns 
null. I made few checks through my test jsp page and I found out that our 
namespace is supposedly not initialized altough if I connect straight to 
Slide (http://hostname.com/slide) it works ok. If I try 
enumerateNamespaces() I get nothing. If I ask default namespace it returns 
"slide" which is ok. And when I ask for the getDomainFileName() I get just 
"Domain.xml" not the whole absolute path I tried to give it.

Any idea why I get this null NamespaceAccessToken or why it says our 
namespace is not initialized although it slide is running and the namespace 
can be accessed through browser?

-Ari Paasonen

---
Quote from Oliver Zeigermann's post
The location of Domain.xml is configured in slide.properties which can be 
found in package
org.apache.slide. Try to locate this file either in class directories or in 
slide-kernel.jar. If you
have found it have a look at the property "org.apache.slide.domain". I 
suspect you have an old version of slide-kernel.jar lying around somewhere 
that has this wrong path in it.
---

_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Slide and multiple languange??

2004-04-20 Thread Jacob Lund
MySql 4.0 does not support UTF-8! Mysql 4.1 should, but it is still in alpha
and I have not succeeded in getting it to work yet!

/jacob

- Original Message - 
From: "陶 京瑞" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 20, 2004 12:32 PM
Subject: Re: Slide and multiple languange??


> I thought the problem maybe lie in mySql, since if I use the same chinese
> name to download the file in Slide, it success although the file is shown
> as ???.txt. I check the file name in mySql, the file show the same as
> ???.txt. But I still don't know how can I solve the problem.
>
>
> >From: "Jacob Lund" <[EMAIL PROTECTED]>
> >Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: Re: Slide and multiple languange??
> >Date: Tue, 20 Apr 2004 11:55:31 +0200
> >
> >I don't know anything about jboss! But when I used TC 4.1 i had to use
the
> >coyoteconnector and apply useURIValidationHack="false" in order to get
> UTF-8
> >working properly.
> >
> >/jacob
> >
> >- Original Message -
> >From: "陶 京瑞" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Tuesday, April 20, 2004 11:43 AM
> >Subject: Re: Slide and multiple languange??
> >
> >
> > > thanks for your reply.
> > >
> > > I use slide 2RC1 with Jboss3.0.8+tomcat4.1.24. which seems tomcat's
> > > server.xml doesnot work when I start the Jboss+tomcat, I have found
> that
> > > org.apache.slide.urlEncoding=UTF-8 had been set in slide.properties
> file.
> > >
> > > I have follow your words as following:
> > >
> > >> > classname="org.apache.slide.store.txfile.TxFileContentStore">
> > > slide/fileContent
> > > slide/workContent
> > > true
> > > true
> > >   
> > >
> > > However, when I successfully upload a file in slide, and use
> > > propfindMehtod, the file name still display as ???.txt. the properties
> > > shown as following(see  and ):
> > >
> > > 
> > >
> > > 
>
> > >
>
>/slide/files/testtomcat%C3%A4%C2%B8%C2%AD%C3%A6%C2%96%C2%87.test
> >href>
>
> > >
>
> > >   
>
> > > testtomcat??.test
>
> > > 
>
> > > Tue, 20 Apr 2004 09:32:20
> > > GMT
>
> > > 852
>
> > > 
>
> > > application/octet-stream
>
> > >
> > > en
>
> > > 2004-04-20T09:17:21Z
>
> > > 
>
> > > 
>
> > >
>
> > >  
>
> > > 
>
> > >  
>
> > >  
>
> > > 
>
> > >  
>
> > >   
>
> > >   
>
> > >  
>
> > > 
>
> > >  
>
> > > 
>
> > > 
>
> > > 
>
> > >  
>
> > >   
>
> > >   2004-04-20T09:32:20Z
>
> > >
> > >   791b7c7bddf9ae4259e6c8d2a7ad0f1a
>
> > >   
>
> > >   HTTP/1.1 200 OK
>
> > >   
>
> > > 
> > >
> > > >From: "Jacob Lund" <[EMAIL PROTECTED]>
> > > >Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
> > > >To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
> > > >Subject: Re: Slide and multiple languange??
> > > >Date: Tue, 20 Apr 2004 11:11:24 +0200
> > > >
> > > >what version of slide are you using and what servlet engine are you
> >using?
> > > >
> > > >I have slide 2RC1 working fine with utf-8 encoding on a tomcat 5.
Here
> is
> > > >what I did to make it work:
> > > >In slide:
> > > >Add a parameter url-encode-path in the tx content and descriptors
> store
> > > and
> > > >set it to true. (in domain.xml)
> > > >In tomcat 5:
> > > >add URIEncoding="UTF-8" as parameter to the connector in server.xml.
> > > >
> > > >I have not tested it with Chinese but it works with Russian and
Danish
> on
> > > an
> > > >English machine.
> > > >
> > > >Just notice that this requires your client to support UTF-8 encoding.
> > > >
> > > >/jacob
> > > >
> > > >- Original Message -
> > > >From: "陶 京瑞" <[EMAIL PROTECTED]>
> > > >To: <[EMAIL PROTECTED]>
> > > >Sent: Tuesday, April 20, 2004 10:48 AM
> > > >Subject: Slide and multiple languange??
> > > >
> > > >
> > > > > hi,
> > > > >
> > > > > does the Slide support Chinese? if so how to?
> > > > >
> > > > > I have put a file onto the slide, when I use propfindmethod to
> display
> > > the
> > > > > file name, the file with Chinese name is shown as ???.txt. I think
> >some
> > > >one
> > > > > may also face such multiple language problem, but how to deal with
> it?
> > > > >
> > > > > Thanks for any help.
> > > > >
> > > > > _
> > > > > 与联机的朋友进行交流,请使用 MSN Messenger:
> > > http://messenger.msn.com/cn
> > > > >
> > > > >
> > > > >
> -
> > > > > 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: Slide and multiple languange??

2004-04-20 Thread 陶 京瑞
I thought the problem maybe lie in mySql, since if I use the same chinese 
name to download the file in Slide, it success although the file is shown 
as ???.txt. I check the file name in mySql, the file show the same as 
???.txt. But I still don't know how can I solve the problem.


From: "Jacob Lund" <[EMAIL PROTECTED]>
Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: Slide and multiple languange??
Date: Tue, 20 Apr 2004 11:55:31 +0200
I don't know anything about jboss! But when I used TC 4.1 i had to use the
coyoteconnector and apply useURIValidationHack="false" in order to get 
UTF-8
working properly.

/jacob

- Original Message -
From: "陶 京瑞" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 20, 2004 11:43 AM
Subject: Re: Slide and multiple languange??
> thanks for your reply.
>
> I use slide 2RC1 with Jboss3.0.8+tomcat4.1.24. which seems tomcat's
> server.xml doesnot work when I start the Jboss+tomcat, I have found 
that
> org.apache.slide.urlEncoding=UTF-8 had been set in slide.properties 
file.
>
> I have follow your words as following:
>
>classname="org.apache.slide.store.txfile.TxFileContentStore">
> slide/fileContent
> slide/workContent
> true
> true
>   
>
> However, when I successfully upload a file in slide, and use
> propfindMehtod, the file name still display as ???.txt. the properties
> shown as following(see  and ):
>
> 
>
> 

>
/slide/files/testtomcat%C3%A4%C2%B8%C2%AD%C3%A6%C2%96%C2%87.test
href>

>

>   

> testtomcat??.test

> 

> Tue, 20 Apr 2004 09:32:20
> GMT

> 852

> 

> application/octet-stream

>
> en

> 2004-04-20T09:17:21Z

> 

> 

>

>  

> 

>  

>  

> 

>  

>   

>   

>  

> 

>  

> 

> 

> 

>  

>   

>   2004-04-20T09:32:20Z

>
>   791b7c7bddf9ae4259e6c8d2a7ad0f1a

>   

>   HTTP/1.1 200 OK

>   

> 
>
> >From: "Jacob Lund" <[EMAIL PROTECTED]>
> >Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: Re: Slide and multiple languange??
> >Date: Tue, 20 Apr 2004 11:11:24 +0200
> >
> >what version of slide are you using and what servlet engine are you
using?
> >
> >I have slide 2RC1 working fine with utf-8 encoding on a tomcat 5. Here 
is
> >what I did to make it work:
> >In slide:
> >Add a parameter url-encode-path in the tx content and descriptors 
store
> and
> >set it to true. (in domain.xml)
> >In tomcat 5:
> >add URIEncoding="UTF-8" as parameter to the connector in server.xml.
> >
> >I have not tested it with Chinese but it works with Russian and Danish 
on
> an
> >English machine.
> >
> >Just notice that this requires your client to support UTF-8 encoding.
> >
> >/jacob
> >
> >- Original Message -
> >From: "陶 京瑞" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Tuesday, April 20, 2004 10:48 AM
> >Subject: Slide and multiple languange??
> >
> >
> > > hi,
> > >
> > > does the Slide support Chinese? if so how to?
> > >
> > > I have put a file onto the slide, when I use propfindmethod to 
display
> the
> > > file name, the file with Chinese name is shown as ???.txt. I think
some
> >one
> > > may also face such multiple language problem, but how to deal with 
it?
> > >
> > > Thanks for any help.
> > >
> > > _
> > > 与联机的朋友进行交流,请使用 MSN Messenger:
> http://messenger.msn.com/cn
> > >
> > >
> > > 
-
> > > 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]
> >
>
> _
> 免费下载 MSN Explorer:   http://explorer.msn.com/lccn
>
>
> -
> 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]
_
享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Slide and multiple languange??

2004-04-20 Thread Jacob Lund
I don't know anything about jboss! But when I used TC 4.1 i had to use the
coyoteconnector and apply useURIValidationHack="false" in order to get UTF-8
working properly.

/jacob

- Original Message - 
From: "陶 京瑞" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 20, 2004 11:43 AM
Subject: Re: Slide and multiple languange??


> thanks for your reply.
>
> I use slide 2RC1 with Jboss3.0.8+tomcat4.1.24. which seems tomcat's
> server.xml doesnot work when I start the Jboss+tomcat, I have found that
> org.apache.slide.urlEncoding=UTF-8 had been set in slide.properties file.
>
> I have follow your words as following:
>
>classname="org.apache.slide.store.txfile.TxFileContentStore">
> slide/fileContent
> slide/workContent
> true
> true
>   
>
> However, when I successfully upload a file in slide, and use
> propfindMehtod, the file name still display as ???.txt. the properties
> shown as following(see  and ):
>
> 
>
> 

>
/slide/files/testtomcat%C3%A4%C2%B8%C2%AD%C3%A6%C2%96%C2%87.test

>

>   

> testtomcat??.test

> 

> Tue, 20 Apr 2004 09:32:20
> GMT

> 852

> 

> application/octet-stream

>
> en

> 2004-04-20T09:17:21Z

> 

> 

>

>  

> 

>  

>  

> 

>  

>   

>   

>  

> 

>  

> 

> 

> 

>  

>   

>   2004-04-20T09:32:20Z

>
>   791b7c7bddf9ae4259e6c8d2a7ad0f1a

>   

>   HTTP/1.1 200 OK

>   

> 
>
> >From: "Jacob Lund" <[EMAIL PROTECTED]>
> >Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: Re: Slide and multiple languange??
> >Date: Tue, 20 Apr 2004 11:11:24 +0200
> >
> >what version of slide are you using and what servlet engine are you
using?
> >
> >I have slide 2RC1 working fine with utf-8 encoding on a tomcat 5. Here is
> >what I did to make it work:
> >In slide:
> >Add a parameter url-encode-path in the tx content and descriptors store
> and
> >set it to true. (in domain.xml)
> >In tomcat 5:
> >add URIEncoding="UTF-8" as parameter to the connector in server.xml.
> >
> >I have not tested it with Chinese but it works with Russian and Danish on
> an
> >English machine.
> >
> >Just notice that this requires your client to support UTF-8 encoding.
> >
> >/jacob
> >
> >- Original Message -
> >From: "陶 京瑞" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Tuesday, April 20, 2004 10:48 AM
> >Subject: Slide and multiple languange??
> >
> >
> > > hi,
> > >
> > > does the Slide support Chinese? if so how to?
> > >
> > > I have put a file onto the slide, when I use propfindmethod to display
> the
> > > file name, the file with Chinese name is shown as ???.txt. I think
some
> >one
> > > may also face such multiple language problem, but how to deal with it?
> > >
> > > Thanks for any help.
> > >
> > > _
> > > 与联机的朋友进行交流,请使用 MSN Messenger:
> http://messenger.msn.com/cn
> > >
> > >
> > > -
> > > 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]
> >
>
> _
> 免费下载 MSN Explorer:   http://explorer.msn.com/lccn
>
>
> -
> 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: Slide and multiple languange??

2004-04-20 Thread 陶 京瑞
thanks for your reply.

I use slide 2RC1 with Jboss3.0.8+tomcat4.1.24. which seems tomcat's 
server.xml doesnot work when I start the Jboss+tomcat, I have found that 
org.apache.slide.urlEncoding=UTF-8 had been set in slide.properties file. 

I have follow your words as following:

	  
	slide/fileContent
	slide/workContent
	true
	true
		  

However, when I successfully upload a file in slide, and use 
propfindMehtod, the file name still display as ???.txt. the properties 
shown as following(see  and ):





/slide/files/testtomcat%C3%A4%C2%B8%C2%AD%C3%A6%C2%96%C2%87.test
 
  

 

   testtomcat??.test
  
   

   Tue, 20 Apr 2004 09:32:20 
GMT
 
   852
  
   

   application/octet-stream
  
 
   en
   
   2004-04-20T09:17:21Z

   

   

  
   

  
   





   


   
 

 


 
   



   

   

   



 

 2004-04-20T09:32:20Z

  
 791b7c7bddf9ae4259e6c8d2a7ad0f1a

 

 HTTP/1.1 200 OK

 



From: "Jacob Lund" <[EMAIL PROTECTED]>
Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: Slide and multiple languange??
Date: Tue, 20 Apr 2004 11:11:24 +0200
what version of slide are you using and what servlet engine are you using?

I have slide 2RC1 working fine with utf-8 encoding on a tomcat 5. Here is
what I did to make it work:
In slide:
Add a parameter url-encode-path in the tx content and descriptors store 
and
set it to true. (in domain.xml)
In tomcat 5:
add URIEncoding="UTF-8" as parameter to the connector in server.xml.
I have not tested it with Chinese but it works with Russian and Danish on 
an
English machine.

Just notice that this requires your client to support UTF-8 encoding.

/jacob

- Original Message -
From: "陶 京瑞" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 20, 2004 10:48 AM
Subject: Slide and multiple languange??
> hi,
>
> does the Slide support Chinese? if so how to?
>
> I have put a file onto the slide, when I use propfindmethod to display 
the
> file name, the file with Chinese name is shown as ???.txt. I think some
one
> may also face such multiple language problem, but how to deal with it?
>
> Thanks for any help.
>
> _
> 与联机的朋友进行交流,请使用 MSN Messenger:  
http://messenger.msn.com/cn
>
>
> -
> 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]
_
免费下载 MSN Explorer:   http://explorer.msn.com/lccn  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Slide and multiple languange??

2004-04-20 Thread Jacob Lund
what version of slide are you using and what servlet engine are you using?

I have slide 2RC1 working fine with utf-8 encoding on a tomcat 5. Here is
what I did to make it work:
In slide:
Add a parameter url-encode-path in the tx content and descriptors store and
set it to true. (in domain.xml)
In tomcat 5:
add URIEncoding="UTF-8" as parameter to the connector in server.xml.

I have not tested it with Chinese but it works with Russian and Danish on an
English machine.

Just notice that this requires your client to support UTF-8 encoding.

/jacob

- Original Message - 
From: "陶 京瑞" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 20, 2004 10:48 AM
Subject: Slide and multiple languange??


> hi,
>
> does the Slide support Chinese? if so how to?
>
> I have put a file onto the slide, when I use propfindmethod to display the
> file name, the file with Chinese name is shown as ???.txt. I think some
one
> may also face such multiple language problem, but how to deal with it?
>
> Thanks for any help.
>
> _
> 与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn
>
>
> -
> 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: Exception when launching Tomcat

2004-04-20 Thread Oliver Zeigermann
Jean-Baptiste Lièvremont wrote:
It seems that it is a Tomcat-related problem, actually I think that it 
does not load the .jar files in the right order.

What I am trying to do is use Slide with the built-in authentication. As 
I already had a Tomcat (5.0.19), I only downloaded the .tar.gz bundle 
with the server and the commandline client. It works fine without 
authentication - except I can not access to the directories whose access 
is rectricted to root (users, roles, etc.).

At first I just uncommented the indicated lines in slide/WEB-INF/web.xml 
and added the roles and users to $CATALINA_HOME/common/lib. All I got 
was a beautiful 'HTTP 401' error, with my Mozilla browser, the WebDAV 
client in OpenOffice and the Slide command-line client.

So I did as it was written in the doc: I put the 
slide-catalinawrapper.jar into $CATALINA_HOME/common/lib and modified 
the default security realm in $CATALINA_HOME/conf/server.xml. At that 
point I just could not restart my server for it did not find some classes.
What doc?

My question is, what is the RIGHT method to make Slide's authentication 
work ? And maybe this should be put clearly in the documentation, at 
least as an FAQ...
The right method is to run tomcat-4-install resp. tomcat-5-install 
target in the build.xml if you have downloaded the src release. If you 
want to use binary stuff download one of the Tomcat bundles.

Oliver

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Slide and multiple languange??

2004-04-20 Thread 陶 京瑞
hi,

does the Slide support Chinese? if so how to?

I have put a file onto the slide, when I use propfindmethod to display the 
file name, the file with Chinese name is shown as ???.txt. I think some one 
may also face such multiple language problem, but how to deal with it?

Thanks for any help.

_
与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Error when getting getting resource from the server

2004-04-20 Thread Gbenga Bello
Hello List,
I am relating with slide via a Java Appication thru the JTA and slide API.
I am using slide 2.0, mysql 4.0.12 as my contentstore.
Running windows 2000 OS
My Challenge

I have been able to put resources into the contentstore. However, when I try to bring 
out the same resource I get a serviceAccessException described below.
<><>ERROR<><>
org.apache.slide.common.ServiceAccessException: Service [EMAIL PROTECTED] access error 
: slideroles.basic.UserRoleImpl.(java.lang.String, java.util.Vector, 
java.util.Vector, java.util.Vector)
<><><><><><><>
I get this error at this line of my code

NodeRevisionDescriptors revisionDescriptors = 
content.retrieve(newslideToken,myUri);

Pls could anyone show me what I am doing wrong or mixing up. Or probably a guide to 
what I should do. I would appreciate Sample codes that could give me insights into the 
direction I need to take.
I will appreciate all contributions today.
I thank you all in advance!
COGI
here is full description of my get method.
=
  public void testGetMethod() throws Exception{
   
String myUri = "/files/COGICollection/issuesDocument.doc";
boolean use_transaction = true;
int count = 10;
Structure structure = token.getStructureHelper();
Security security = token.getSecurityHelper();
Lock lock = token.getLockHelper();
Content content = token.getContentHelper();
// Retrieving some revisions
CredentialsToken credentials = new CredentialsToken("root");
SlideToken newslideToken = new SlideTokenImpl(credentials);
SubjectNode subject = new SubjectNode();

NodeRevisionDescriptor revisionDescriptor = null;
 
try
{
token.begin();
 
NodeRevisionDescriptors revisionDescriptors = 
content.retrieve(newslideToken,myUri);
//Retrieving some revisions
revisionDescriptor = content.retrieve(newslideToken,revisionDescriptors);
//NodeRevisionContent
NodeRevisionContent newRevContent =
  content.retrieve(newslideToken, myUri, revisionDescriptor);
InputStream newIS = newRevContent.streamContent();
if (null != newIS)
{
byte[] buf = new byte[1000];
int num = -1;
FileOutputStream fos = new FileOutputStream("C:/Inspired.doc/get.doc");
num = newIS.read(buf);
while (num > 0)
{
fos.write(buf, 0, num);
fos.flush();
num = newIS.read(buf);
}
fos.close();
newIS.close();
 }
}
catch (Exception ex)
{
System.out.println(" " + ex.toString());
token.rollback();
System.exit(0);
}
 }
=
Here is my Domain.xml
=


   




  
   com.mysql.jdbc.Driver
   jdbc:mysql://localhost:3306/slidedb?useUnicode=true&characterEncoding=UTF-8
   root
   root
   org.apache.slide.store.impl.rdbms.MySqlRDBMSAdapter
   true
   10
   1
  
  

  
  

  
  

  
  

  
  

  



  
 


/actions/read
/actions/write
/actions/write
/actions/write-acl
/actions/write-acl
/actions/read-acl

/actions/read-current-user-privilege-set
/actions/write
/actions/unlock
/actions/read
/actions/read

/actions/write-properties

/actions/write-properties

/actions/write-properties
/actions/read
/actions/write-content
/actions/write-content
/actions/write-content
/actions/bind
/actions/unbind

/users
/roles
/actions
/files
true
true
path

0
















http://jakarta.apache.org/slide/"; 
name="password"/>





http://jakarta.apache.org/slide/"; 
name="password"/>