RE: Optical/RO Stores with Slide?

2005-04-04 Thread Darren Hartford
Hi Miguel,
Thank you for your input.  Unfortunately, I already considered the
transaction-nature of these stores, and the work/'metadata' and
work/'content' related directories are still on regular filesystem, not
pointing to the read-only CD/DVD.

Example:
parameter name=rootpathe:/kbstore/metadata/parameter
parameter name=workpathwork/metadata2/parameter

This is where e:/ is the CD drive, and 'work' is still the relative BIN
path of Tomcat with r/w access.

Unfortunately, one of the concerns is that I purposely want to keep the
DAV properties metadata that is stored via TxXMLFileDescriptorsStore. I
think SimpleStore only handles files/content, not the metadata.  And I
do not know of any metadata stores that can read the files generated by
TxXMLFileDescriptorsStore.

Hopefully I'm wrong?  Any feedback please!

-D

 

 -Original Message-
 From: Miguel Figueiredo [mailto:[EMAIL PROTECTED] 
 Sent: Monday, April 04, 2005 6:39 AM
 To: 'Slide Users Mailing List'
 Subject: RE: Optical/RO Stores with Slide?
 
 
 Hello Darren,
 
  I believe you are having read-only problems. First of all, 
 stores should have read-write access or strange things might 
 happen. In your case, I bet that the domain.xml file is 
 pointing to the transient files (like transaction 
 information) also know as the 'work' directory, to the same 
 base directory of the 'store' directory. This would explain 
 the error you describe.
  The solution is to define very well these store parameters 
 (presented here is the default conf of domain.xml):
 
 parameter 
 name=rootpathstore/metadata/parameter
 parameter 
 name=workpathwork/metadata/parameter
 
  I don't know how you could do it but: what you want is the 
 rootpath in the DVD, but you need the workpath with write 
 access for accessing the roothpath through slide.
 
  I believe there are also simpler file stores, that don't 
 need to store transient files (SimpleStore rings me a bell). 
 Perhaps is good spot for you to search also.
 
  Hope this helps,
  Miguel Figueiredo
 

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



RE: Optical/RO Stores with Slide?

2005-04-04 Thread Miguel Figueiredo

 Hello Darren,

 I don't know if it is that simple as your configuration seems to be.
Anyway, could you try and add the drive letter for the workpath also?
Perhaps it gives a different error :)

 Best regards,
 Miguel



Hi Miguel,
Thank you for your input.  Unfortunately, I already considered the
transaction-nature of these stores, and the work/'metadata' and
work/'content' related directories are still on regular filesystem, not
pointing to the read-only CD/DVD.

Example:
parameter name=rootpathe:/kbstore/metadata/parameter
parameter name=workpathwork/metadata2/parameter

This is where e:/ is the CD drive, and 'work' is still the relative BIN
path of Tomcat with r/w access.

Unfortunately, one of the concerns is that I purposely want to keep the
DAV properties metadata that is stored via TxXMLFileDescriptorsStore. I
think SimpleStore only handles files/content, not the metadata.  And I
do not know of any metadata stores that can read the files generated by
TxXMLFileDescriptorsStore.

Hopefully I'm wrong?  Any feedback please!

-D

 

 -Original Message-
 From: Miguel Figueiredo [mailto:[EMAIL PROTECTED] 
 Sent: Monday, April 04, 2005 6:39 AM
 To: 'Slide Users Mailing List'
 Subject: RE: Optical/RO Stores with Slide?
 
 
 Hello Darren,
 
  I believe you are having read-only problems. First of all, 
 stores should have read-write access or strange things might 
 happen. In your case, I bet that the domain.xml file is 
 pointing to the transient files (like transaction 
 information) also know as the 'work' directory, to the same 
 base directory of the 'store' directory. This would explain 
 the error you describe.
  The solution is to define very well these store parameters 
 (presented here is the default conf of domain.xml):
 
 parameter 
 name=rootpathstore/metadata/parameter
 parameter 
 name=workpathwork/metadata/parameter
 
  I don't know how you could do it but: what you want is the 
 rootpath in the DVD, but you need the workpath with write 
 access for accessing the roothpath through slide.
 
  I believe there are also simpler file stores, that don't 
 need to store transient files (SimpleStore rings me a bell). 
 Perhaps is good spot for you to search also.
 
  Hope this helps,
  Miguel Figueiredo
 

-
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: Optical/RO Stores with Slide?

2005-04-04 Thread Darren Hartford
The error is related to accessing the root path's location of the
files.def.xml for that store (or instead of 'files', the
sub-store/collection name).

i.e. the error happens when reading e:\mycdstore\metadata\files.def.xml
as pointed to by the rootpath.  The workpath is never mentioned, nor
would it makes sense for the work directory to point to a read-only
location (the workpath points to r/w local access within the bin
directory of Tomcat).

Note the error is from 'FileOutputStream'.

01 Apr 2005 16:52:23 - org.apache.slide.common.Namespace - INFO - Finish
init namespace slide configuration
01 Apr 2005 16:52:23 -
org.apache.commons.transaction.file.FileResourceManager - EMERGENCY -
Fatal error during critical commit/rollback of transaction main-111
2392342717-1, setting database to dirty.
01 Apr 2005 16:52:23 -
org.apache.commons.transaction.file.FileResourceManager - EMERGENCY -
org.apache.commons.transaction.file.ResourceManagerSystemException:
main-1112392342717-1: Commit failed (ERR_SYSTEM) Caused by:
java.io.FileNotFoundException:
e:\mycdstore\metadata\files.def.xml (Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.init(FileOutputStream.java:179)
at java.io.FileOutputStream.init(FileOutputStream.java:131)
 

 -Original Message-
 From: Miguel Figueiredo [mailto:[EMAIL PROTECTED] 
 Sent: Monday, April 04, 2005 7:43 AM
 To: 'Slide Users Mailing List'
 Subject: RE: Optical/RO Stores with Slide?
 
 
  Hello Darren,
 
  I don't know if it is that simple as your configuration seems to be.
 Anyway, could you try and add the drive letter for the workpath also?
 Perhaps it gives a different error :)
 
  Best regards,
  Miguel
 
 
 

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



Invalid transaction id error

2005-04-04 Thread Ethem YUKSEL
Hi to all
when i try to execute the code below:
structure.create(slideToken, subject, resourcePath);

i got the error below:
org.apache.slide.common.ServiceAccessException: Service
TxXMLFileDescriptorsStore at c:/bin/store/metadata  working on
c:/bin/work/metadata access error : Invalid transaction id
at
org.apache.slide.store.txfile.AbstractTxFileStoreService.throwInternalError(
AbstractTxFileStoreService.java:354)
at
org.apache.slide.store.txfile.XMLResourceDescriptor.create(XMLResourceDescri
ptor.java:126)
at
org.apache.slide.store.txfile.TxXMLFileDescriptorsStore.createObject(TxXMLFi
leDescriptorsStore.java:121)
at
org.apache.slide.store.AbstractStore.createObject(AbstractStore.java:670)
at
org.apache.slide.store.ExtendedStore.createObject(ExtendedStore.java:602)
at
org.apache.slide.structure.StructureImpl.create(StructureImpl.java:354)
at com.siemens.pse.slide.Main.main(Main.java:75)
at com.siemens.pse.slide.Main.main(Main.java:153)


my domain.xml is like this: any help will be appreciated, kind regards.ethem
yuksel

?xml version=1.0?
slide
namespace name=slide
definition
store name=tx
parameter name=tlock-timeout120/parameter
nodestore
classname=org.apache.slide.store.txfile.TxXMLFileDescriptorsStore
parameter
name=rootpathc:/bin/store/metadata/parameter
parameter
name=workpathc:/bin/work/metadata/parameter
parameter name=defer-savingtrue/parameter
parameter name=timeout120/parameter
/nodestore
sequencestore
classname=org.apache.slide.store.txfile.FileSequenceStore
parameter name=rootpathstore/sequence/parameter
/sequencestore
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=rootpathstore/content/parameter
parameter name=workpathwork/content/parameter
parameter name=defer-savingtrue/parameter
parameter name=timeout120/parameter
/contentstore
!-- uncomment if you want to use the sample Indexer --
!-- be sure to have Lucene in your classpath
--
!--
contentindexer
classname=org.apache.slide.index.SampleTxtContainsIndexer
parameter name=indexpath./index/parameter
/contentindexer
--
/store
scope match=/ store=tx/
/definition
configuration
!-- Actions mapping --
read-object/actions/read/read-object
create-object/actions/write/create-object
remove-object/actions/write/remove-object
grant-permission/actions/write-acl/grant-permission
revoke-permission/actions/write-acl/revoke-permission
read-permissions/actions/read-acl/read-permissions
 
read-own-permissions/actions/read-current-user-privilege-set/read-own-per
missions
lock-object/actions/write/lock-object
kill-lock/actions/unlock/kill-lock
read-locks/actions/read/read-locks
read-revision-metadata/actions/read/read-revision-metadata
 
create-revision-metadata/actions/write-properties/create-revision-metadat
a
 
modify-revision-metadata/actions/write-properties/modify-revision-metadat
a
 
remove-revision-metadata/actions/write-properties/remove-revision-metadat
a
read-revision-content/actions/read/read-revision-content
 
create-revision-content/actions/write-content/create-revision-content
 
modify-revision-content/actions/write-content/modify-revision-content
 
remove-revision-content/actions/write-content/remove-revision-content
bind-member/actions/bind/bind-member
unbind-member/actions/unbind/unbind-member
!-- Paths configuration --
userspath/users/userspath
rolespath/roles/rolespath
actionspath/actions/actionspath
filespath/files/filespath
parameter name=davtrue/parameter
parameter name=standalonetrue/parameter
parameter name=acl_inheritance_typepath/parameter
!-- Nested roles: 0 means no nesting (default), 1 means one
sublevel, etc. --
parameter name=nested_roles_maxdepth0/parameter
!-- Can be off, write and full --
  

AW: Optical/RO Stores with Slide?

2005-04-04 Thread Darren Hartford
Created new bug # 34286.
http://issues.apache.org/bugzilla/show_bug.cgi?id=34286

Also reference bug # 31756 that may or may not help related to this
problem.

Please add any comments, suggestions, or good/bad idea to the above bug
#'s to keep it easily referenced for the developers.
-D

 -Original Message-
 From: Darren Hartford [mailto:[EMAIL PROTECTED] 
 Sent: Friday, April 01, 2005 5:02 PM
 To: Slide Users Mailing List
 Subject: Optical/RO Stores with Slide?
 
 Hey all,
 I have been utilizing the TxXMLFileDescriptorsStore, 
 TxFileContentStore to save my files.
 
 Now, I want to safely save a store and burn it to CD/DVD, so 
 I do not need to worry about viruses/corruption.
 
 How do I do this?  When I burn the 'content' and 'metadata' 
 files to CD, and point the domain.xml store to the new 
 location of 'content' and 'metadata', it comes back with the 
 following error:
 
 01 Apr 2005 16:52:23 - org.apache.slide.common.Namespace - 
 INFO - Finish init namespace slide configuration
 01 Apr 2005 16:52:23 -
 org.apache.commons.transaction.file.FileResourceManager - 
 EMERGENCY - Fatal error during critical commit/rollback of 
 transaction main-111 2392342717-1, setting database to dirty.
 01 Apr 2005 16:52:23 -
 org.apache.commons.transaction.file.FileResourceManager - EMERGENCY -
 org.apache.commons.transaction.file.ResourceManagerSystemException:
 main-1112392342717-1: Commit failed (ERR_SYSTEM) Caused by: 
 java.io.FileNotFoundException:
 e:\mycdstore\metadata\files.def.xml (Access is denied)
 at java.io.FileOutputStream.open(Native Method)
 at java.io.FileOutputStream.init(FileOutputStream.java:179)
 at java.io.FileOutputStream.init(FileOutputStream.java:131)
 
 
 Any recommendations please?
 
 -D
 
 -
 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: Errors when creating a new node

2005-04-04 Thread Brusic, Ivan
-Original Message-
From: Andrey Shulinsky [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 01, 2005 4:17 PM
To: 'Slide Users Mailing List'
Subject: RE: Errors when creating a new node

 Yeah, it shouldn't, it's very strange... Could you try the same config
with 2.0, btw?
 And  I'm starting to upgrade to 2.1 right now in fact and I'll let you
know if I enÓounter the same problem.

I reverted the jar files back to 2.0 with the same configs, and
everything works again.  Still can't believe such a flaw is in the new
version.  Is anybody using 2.1 without WebDAV?  Let me know how your
upgrade comes along.  Thanks for the help.

Cheers,

Ivan





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



RE: Errors when creating a new node

2005-04-04 Thread Gbenga Bello
Hi list,
I am having funny errors too in upgrading my code
(which works fine with 2.0 slide api ) to Slide 2.1
version

AccessdeniedException is what I get when I try to
create new resource(a new folder).

I wonder what the problem is

COGI
--- Brusic, Ivan [EMAIL PROTECTED] wrote:

 -Original Message-
 From: Andrey Shulinsky
 [mailto:[EMAIL PROTECTED] 
 Sent: Friday, April 01, 2005 4:17 PM
 To: 'Slide Users Mailing List'
 Subject: RE: Errors when creating a new node
 
  Yeah, it shouldn't, it's very strange... Could you
 try the same config
 with 2.0, btw?
  And  I'm starting to upgrade to 2.1 right now in
 fact and I'll let you
 know if I enÓounter the same problem.
 
 I reverted the jar files back to 2.0 with the same
 configs, and
 everything works again.  Still can't believe such a
 flaw is in the new
 version.  Is anybody using 2.1 without WebDAV?  Let
 me know how your
 upgrade comes along.  Thanks for the help.
 
 Cheers,
 
 Ivan
 
 
 
 
 

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




__ 
Do you Yahoo!? 
Yahoo! Personals - Better first dates. More second dates. 
http://personals.yahoo.com


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