You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Miguel Figueiredo <mf...@maisis.pt> on 2004/09/14 12:42:17 UTC
ldap configuration
Hello folks,
I've been trying to configure slide to use an ldap server for authentication
purposes.
I've been successful at that, but with a cost of an annoying null pointer
exception when tomcat is starting up:
org.apache.slide.common.ServiceAccessException: Service
TxXMLFileDescriptorsStore at users/store/metadata working on us
ers/work/metadata access error : java.lang.NullPointerException
at
org.apache.slide.store.txfile.AbstractXMLResourceDescriptor.encodeObje
ct(AbstractXMLResourceDescriptor.java:662)
My current setup is the tomcat 5.0.19 / slide 2.1b1 bundle with the attached
domain.xml file.
I suspect that it works well because JNDIPrincipalStore is read-only, so,
maybe it wouldn't need it's corresponding working directory, to witch this
exception relates to. Or perhaps I still didn't found any problem witch
shall occur more soon than later...
Does slide use the 'users working directory' in any of its use-cases? Am I
doing something wrong in the Domain.xml file?
Thanks in advance,
Miguel Figueiredo
Re: ldap configuration
Posted by Oliver Zeigermann <ol...@zeigermann.de>.
Hi James!
I see. I will try it ASAP.
Oliver
James Mason wrote:
> Oliver,
>
> I don't know if it's really a problem or not. With 2.1M1 I configured
> JNDIPrincipalStore to use a TxXMLFileDescriptorStore for the
> SecurityStore and LockStore implementations. When I upgraded to 2.1b1 I
> started getting errors with this configuration. I think it was the same
> error that Miguel reported.
>
> For reproducing I suppose you could try using the memory stores for
> everything but security and locks. If you can't reproduce it that way
> than the problem is probably obscure enough not worry about.
>
> -James
>
> Oliver Zeigermann wrote:
>
>> Hi James!
>>
>> Could you describe how I can reproduce the problem? I would take care
>> of it then...
>>
>> Oliver
>>
>>> This problem cropped up in 2.1b1. I'm not sure what causes it
>>> (something changed with the TxFile stores) and I was too lazy to
>>> track it down :).
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: ldap configuration
Posted by Oliver Zeigermann <ol...@zeigermann.de>.
Fixed. Was in Namespace and due to a patch I applied before. So, it was
all my fault :( Release branch was not affected...
Oliver
Oliver Zeigermann wrote:
> Oooops, you were just right. I will have a look at it...
>
> Oliver
>
> Miguel Figueiredo wrote:
>
>> Hello Oliver, sorry for taking so long, had wife and kids waiting :)
>>
>> Well, if I remove the old metadata and start tomcat all goes well. The
>> problem occurs if I restart tomcat: that's when that error occurs.
>>
>> I'm using the default Domain.xml configuration with the
>> TxXMLFileDescriptorsStore for nodestore and TxFileContentStore for
>> content.
>> Miguel
>> ____
>>
>> Oliver Zeigermann wrote:
>>
>>
>>> Miguel, I have tried deleting the old meta-data...
>>
>>
>>
>> Sorry, getting a little bit tired, read "Miguel, have you tried
>> deleting the old meta-data..."
>>
>> Oliver
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: ldap configuration
Posted by Oliver Zeigermann <ol...@zeigermann.de>.
Oooops, you were just right. I will have a look at it...
Oliver
Miguel Figueiredo wrote:
> Hello Oliver, sorry for taking so long, had wife and kids waiting :)
>
> Well, if I remove the old metadata and start tomcat all goes well. The
> problem occurs if I restart tomcat: that's when that error occurs.
>
> I'm using the default Domain.xml configuration with the
> TxXMLFileDescriptorsStore for nodestore and TxFileContentStore for content.
>
> Miguel
> ____
>
> Oliver Zeigermann wrote:
>
>
>>Miguel, I have tried deleting the old meta-data...
>
>
> Sorry, getting a little bit tired, read "Miguel, have you tried deleting
> the old meta-data..."
>
> Oliver
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
RE: ldap configuration
Posted by Miguel Figueiredo <mf...@maisis.pt>.
Hello Oliver, sorry for taking so long, had wife and kids waiting :)
Well, if I remove the old metadata and start tomcat all goes well. The
problem occurs if I restart tomcat: that's when that error occurs.
I'm using the default Domain.xml configuration with the
TxXMLFileDescriptorsStore for nodestore and TxFileContentStore for content.
Miguel
____
Oliver Zeigermann wrote:
> Miguel, I have tried deleting the old meta-data...
Sorry, getting a little bit tired, read "Miguel, have you tried deleting
the old meta-data..."
Oliver
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: ldap configuration
Posted by Oliver Zeigermann <ol...@zeigermann.de>.
Oliver Zeigermann wrote:
> Miguel, I have tried deleting the old meta-data...
Sorry, getting a little bit tired, read "Miguel, have you tried deleting
the old meta-data..."
Oliver
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: ldap configuration
Posted by Oliver Zeigermann <ol...@zeigermann.de>.
OK, I just tried Slide HEAD including all recent changes and it actually
works like I expected. Miguel, I have tried deleting the old meta-data...
Oliver
Oliver Zeigermann wrote:
> Have you removed the XML files containing the meta-data before? To me it
> looks as if you are using the default tx file store only, right? This
> however operates on only partial XML files which makes is cough. Delete
> the store directory and I am pretty sure everthing will work...
>
> Please report back :)
>
> Oliver
>
> Miguel Figueiredo wrote:
>
>> Attention folks!!
>>
>> I've just synchronized, after the struggle to obtain stefan's stream of
>> patches ;), my source code with HEAD cvs tag.
>>
>> After compiling and deploying it in a tomcat 5.0.28 instance I get the
>> following tomcat console log IF the content store is already deployed, if
>> NOT deployed slide starts ok (in attach I add my domain.xml, error:
>> ObjectAlreadyExistsException):
>>
>>
>> 22/Set/2004 18:22:00 org.apache.coyote.http11.Http11Protocol init
>> INFO: Initializing Coyote HTTP/1.1 on http-8080
>> 22/Set/2004 18:22:00 org.apache.catalina.startup.Catalina load
>> INFO: Initialization processed in 1391 ms
>> 22/Set/2004 18:22:00 org.apache.catalina.core.StandardService start
>> INFO: Starting service Catalina
>> 22/Set/2004 18:22:00 org.apache.catalina.core.StandardEngine start
>> INFO: Starting Servlet Engine: Apache Tomcat/5.0.28
>> 22/Set/2004 18:22:00 org.apache.catalina.core.StandardHost start
>> INFO: XML validation disabled
>> 22/Set/2004 18:22:00 org.apache.catalina.core.StandardHost getDeployer
>> INFO: Create Host deployer for direct deployment ( non-jmx )
>> 22/Set/2004 18:22:01 org.apache.catalina.core.StandardHostDeployer
>> install
>> INFO: Processing Context configuration file URL
>> file:E:\servers\jakarta-tomcat-5.0.28\conf\Catalina\localhost\admin.xml
>> 22/Set/2004 18:22:01 org.apache.struts.util.PropertyMessageResources
>> <init>
>> INFO: Initializing, config='org.apache.struts.util.LocalStrings',
>> returnNull=true
>> 22/Set/2004 18:22:01 org.apache.struts.util.PropertyMessageResources
>> <init>
>> INFO: Initializing, config='org.apache.struts.action.ActionResources',
>> returnNull=true
>> 22/Set/2004 18:22:02 org.apache.struts.util.PropertyMessageResources
>> <init>
>> INFO: Initializing,
>> config='org.apache.webapp.admin.ApplicationResources',
>> returnNull=true
>> 22/Set/2004 18:22:04 org.apache.catalina.core.StandardHostDeployer
>> install
>> INFO: Processing Context configuration file URL
>> file:E:\servers\jakarta-tomcat-5.0.28\conf\Catalina\localhost\balancer.xml
>>
>> 22/Set/2004 18:22:04 org.apache.catalina.core.StandardHostDeployer
>> install
>> INFO: Processing Context configuration file URL
>> file:E:\servers\jakarta-tomcat-5.0.28\conf\Catalina\localhost\manager.xml
>> 22/Set/2004 18:22:04 org.apache.catalina.core.StandardHostDeployer
>> install
>> INFO: Installing web application at context path /slide from URL
>> file:E:/servers/jakarta-tomcat-5.0.28/webapps/slide
>> 22/Set/2004 18:22:04 org.apache.catalina.loader.WebappClassLoader
>> validateJarFile
>> INFO:
>> validateJarFile(E:\servers\jakarta-tomcat-5.0.28\webapps\slide\WEB-INF\lib\s
>>
>> ervlet-2.3.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2.
>> Offending class: javax/servlet/Servlet.class
>> 22 Sep 2004 18:22:05 - org.apache.slide.common.Domain - INFO -
>> Initializing
>> Domain
>> 22 Sep 2004 18:22:05 - org.apache.slide.common.Domain - INFO - Domain
>> configuration : {}
>> 22 Sep 2004 18:22:05 - 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}
>> 22 Sep 2004 18:22:05 - org.apache.slide.common.Domain - INFO -
>> Initializing
>> namespace : slide
>> 22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO - Loading
>> namespace slide parameters
>> 22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO - Loading
>> namespace definition
>> 22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO -
>> nodestore:
>> org.apache.slide.store.txfile.TxXMLFileDescriptorsStore
>> 22 Sep 2004 18:22:05 - file-meta-store - INFO - File Store configured to
>> store/metadata, working directory work/metadata
>> 22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO -
>> securitystore references nodestore
>> 22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO -
>> lockstore
>> references nodestore
>> 22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO -
>> revisiondescriptorsstore references nodestore
>> 22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO -
>> revisiondescriptorstore references nodestore
>> 22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO -
>> contentstore: org.apache.slide.store.txfile.TxFileContentStore
>> 22 Sep 2004 18:22:05 - file-content-store - INFO - File Store
>> configured to
>> store/content, working directory work/content
>> 22 Sep 2004 18:22:05 - INFO - Setting TLock timeout for store tx to 20
>> seconds
>> 22 Sep 2004 18:22:05 - INFO - Setting object cache size for store tx to
>> 10000
>> 22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO -
>> Setting
>> permission cache size for store tx to 10000
>> 22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO -
>> Setting
>> lock cache size for store tx to 100
>> 22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO -
>> Setting
>> descriptors cache size for store tx to 10000
>> 22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO -
>> Setting
>> descriptor cache size for store tx to 10000
>> 22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO -
>> Setting
>> content caching for store tx to false
>> 22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO -
>> Setting
>> content cache size for store tx to 10000
>> 22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO -
>> Setting
>> content cache byte size for store tx to 10000000
>> 22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO -
>> Setting
>> transaction content cache size for store tx to 1000
>> 22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO -
>> Setting
>> transaction content cache byte size for store tx to 1000000
>> 22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO -
>> Setting
>> maximum byte size for content cache entry for store tx to 50000
>> 22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO -
>> Enabling full caching causing low isolation
>> 22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO -
>> Registering Store tx (class org.apache.slide.store.ExtendedStore) with
>> parameters {} on scope /
>> 22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO -
>> Initializing Store tx(org.apache.slide.store.ExtendedStore)
>> 22 Sep 2004 18:22:06 - org.apache.slide.common.Namespace - INFO - Loading
>> namespace slide base data
>> 22 Sep 2004 18:22:06 -
>> org.apache.commons.transaction.file.FileResourceManager - INFO -
>> Starting RM
>> at 'store/metadata' / 'work/metadata'
>> 22 Sep 2004 18:22:06 -
>> org.apache.commons.transaction.file.FileResourceManager - INFO -
>> Started RM
>> 22 Sep 2004 18:22:06 -
>> org.apache.commons.transaction.file.FileResourceManager - INFO -
>> Starting RM
>> at 'store/content' / 'work/content'
>> 22 Sep 2004 18:22:06 -
>> org.apache.commons.transaction.file.FileResourceManager - INFO -
>> Started RM
>> org.apache.slide.structure.ObjectAlreadyExistsException: Another object
>> already exist at /
>> at
>> org.apache.slide.store.txfile.XMLResourceDescriptor.create(XMLResourceDescri
>>
>> ptor.java:133)
>> 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.common.Namespace.loadBaseData(Namespace.java:781)
>> at org.apache.slide.common.Domain.initNamespace(Domain.java:845)
>> at org.apache.slide.common.Domain.init(Domain.java:432)
>> at org.apache.slide.common.Domain.init(Domain.java:366)
>> at org.apache.slide.common.Domain.init(Domain.java:329)
>> at
>> org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:263)
>> at javax.servlet.GenericServlet.init(GenericServlet.java:211)
>> at
>> org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:205)
>> at
>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:10
>>
>> 29)
>> at
>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
>> at
>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
>>
>> 4013)
>> at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
>> at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
>>
>> 23)
>> at
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
>> at
>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
>> at
>> org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
>>
>> ava:277)
>> at
>> org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
>> at
>> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625)
>> at
>> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431)
>> at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
>> at
>> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
>>
>> at
>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
>>
>> t.java:119)
>> at
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
>> at
>> org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
>> at
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
>> at
>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
>> at
>> org.apache.catalina.core.StandardService.start(StandardService.java:480)
>> at
>> org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
>> at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
>> 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:287)
>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
>> 22 Sep 2004 18:22:06 - org.apache.slide.common.Namespace - INFO -
>> Namespace
>> base configuration was already done before
>> 22 Sep 2004 18:22:06 - org.apache.slide.common.Namespace - INFO - Loading
>> namespace slide configuration
>> 22 Sep 2004 18:22:07 - org.apache.slide.common.Domain - INFO - Namespace
>> configuration complete
>> 22/Set/2004 18:22:07 org.apache.catalina.core.StandardHostDeployer
>> install
>> INFO: Installing web application at context path /jsp-examples from URL
>> file:E:\servers\jakarta-tomcat-5.0.28\webapps\jsp-examples
>> 22/Set/2004 18:22:07 org.apache.catalina.core.StandardHostDeployer
>> install
>> INFO: Installing web application at context path from URL
>> file:E:\servers\jakarta-tomcat-5.0.28\webapps\ROOT
>> 22/Set/2004 18:22:07 org.apache.catalina.core.StandardHostDeployer
>> install
>> INFO: Installing web application at context path /servlets-examples
>> from URL
>> file:E:\servers\jakarta-tomcat-5.0.28\webapps\servlets-examples
>> 22/Set/2004 18:22:07 org.apache.catalina.core.StandardHostDeployer
>> install
>> INFO: Installing web application at context path /tomcat-docs from URL
>> file:E:\servers\jakarta-tomcat-5.0.28\webapps\tomcat-docs
>> 22/Set/2004 18:22:07 org.apache.catalina.core.StandardHostDeployer
>> install
>> INFO: Installing web application at context path /webdav from URL
>> file:E:\servers\jakarta-tomcat-5.0.28\webapps\webdav
>> 22/Set/2004 18:22:07 org.apache.coyote.http11.Http11Protocol start
>> INFO: Starting Coyote HTTP/1.1 on http-8080
>> 22/Set/2004 18:22:08 org.apache.jk.common.ChannelSocket init
>> INFO: JK2: ajp13 listening on /0.0.0.0:8009
>> 22/Set/2004 18:22:08 org.apache.jk.server.JkMain start
>> INFO: Jk running ID=0 time=0/47
>> config=E:\servers\jakarta-tomcat-5.0.28\conf\jk2.properties
>> 22/Set/2004 18:22:08 org.apache.catalina.startup.Catalina start
>> INFO: Server startup in 7750 ms
>>
>>
>>
>> Also, slide is NOT working!...
>>
>> Miguel
>> _____________________________________________
>>
>>
>> Hello Oliver, James,
>>
>> I can test it for you... I'll be back with a 'report' in a few minutes.
>>
>> BRB, Miguel
>>
>> -----Original Message-----
>> From: Oliver Zeigermann [mailto:oliver@zeigermann.de] Sent:
>> quarta-feira, 22 de Setembro de 2004 15:16
>> To: Slide Users Mailing List
>> Subject: Re: ldap configuration
>>
>> Hi James,
>>
>> there really was a pretty obvious bug in
>> AbstractXMLResourceDescriptor. It should have shown up everytime the
>> TxXMLFileDescriptorStore tried to create a new descriptor without the
>> real object stored into it and later trying to re-read it. Nothing has
>> changed for ages in AbstractXMLResourceDescriptor so I am wondering
>> why this error did not show up earlier.
>>
>> Anyway, it should be fixed now both in the HEAD as well as the release
>> branch. Can anyone check, please?
>>
>> Thanks,
>> Oliver
>>
>> James Mason wrote:
>>
>>
>>> Oliver,
>>>
>>> I don't know if it's really a problem or not. With 2.1M1 I configured
>>> JNDIPrincipalStore to use a TxXMLFileDescriptorStore for the
>>> SecurityStore and LockStore implementations. When I upgraded to 2.1b1
>>> I started getting errors with this configuration. I think it was the
>>> same error that Miguel reported.
>>>
>>> For reproducing I suppose you could try using the memory stores for
>>> everything but security and locks. If you can't reproduce it that way
>>> than the problem is probably obscure enough not worry about.
>>>
>>> -James
>>>
>>> Oliver Zeigermann wrote:
>>>
>>>
>>>> Hi James!
>>>>
>>>> Could you describe how I can reproduce the problem? I would take
>>>> care of it then...
>>>>
>>>> Oliver
>>>>
>>>>
>>>>> This problem cropped up in 2.1b1. I'm not sure what causes it
>>>>> (something changed with the TxFile stores) and I was too lazy to
>>>>> track it down :).
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>>>>
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>>>
>>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>>
>>
>> ------------------------------------------------------------------------
>>
>> <?xml version="1.0"?>
>> <slide>
>> <namespace name="slide">
>> <definition>
>> <store name="tx">
>> <nodestore
>> classname="org.apache.slide.store.txfile.TxXMLFileDescriptorsStore">
>> <parameter name="rootpath">store/metadata</parameter>
>> <parameter name="workpath">work/metadata</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">store/content</parameter>
>> <parameter name="workpath">work/content</parameter>
>> </contentstore>
>> </store>
>> <!-- Use a JNDIPrincipalStore for users -->
>> <!-- <store name="users">
>> <nodestore
>> classname="org.apache.slide.store.txjndi.JNDIPrincipalStore">
>> <parameter
>> name="jndi.container">ou=people,dc=dominio,dc=pt</parameter>
>> <parameter name="jndi.attributes.rdn">uid</parameter>
>> <parameter
>> name="jndi.search.filter">(objectClass=inetOrgPerson)</parameter>
>> <parameter
>> name="jndi.search.scope">ONELEVEL_SCOPE</parameter>
>> <parameter
>> name="jndi.search.attributes">postalCode,initials,givenName,uid,mail,fullName,telephoneNumber,title,facsimileTelephoneNumber,groupMembership,l,sn,cn</parameter>
>>
>> <parameter
>> name="java.naming.provider.url">ldap://miguel-desktop:389</parameter>
>> <parameter
>> name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</parameter>
>>
>> <parameter
>> name="java.naming.security.principal">cn=Manager,dc=dominio,dc=pt</parameter>
>>
>> <parameter
>> name="java.naming.security.authentication">simple</parameter>
>> <parameter
>> name="java.naming.security.credentials">segredo</parameter>
>>
>>
>> <parameter
>> name="cache.refresh.checkrate">15</parameter>
>> <parameter name="cache.refresh.rate">800</parameter>
>> <parameter
>> name="cache.refresh.threshold">15000</parameter>
>>
>>
>> </nodestore> -->
>> <!-- Use a Tx Store to store security and lock
>> information -->
>> <!-- securitystore
>> classname="org.apache.slide.store.txfile.TxXMLFileDescriptorsStore">
>> <parameter
>> name="rootpath">users/store/metadata</parameter>
>> <parameter
>> name="workpath">users/work/metadata</parameter>
>> </securitystore -->
>> <!-- <securitystore
>> classname="org.apache.slide.store.impl.rdbms.JDBCStore">
>> <parameter
>> name="adapter">org.apache.slide.store.impl.rdbms.MySqlRDBMSAdapter</parameter>
>>
>> <parameter
>> name="driver">com.mysql.jdbc.Driver</parameter>
>> <parameter
>> name="url">jdbc:mysql://localhost/slideustore</parameter>
>> <parameter name="user">slideustore</parameter>
>> <parameter name="password">slide</parameter>
>> <parameter name="dbcpPooling">true</parameter>
>> <parameter name="maxPooledConnections">10</parameter>
>> <parameter
>> name="isolation">READ_COMMITTED</parameter>
>> <parameter name="compress">false</parameter>
>> </securitystore> -->
>> <!-- <securitystore
>> classname="org.apache.slide.store.mem.TransientSecurityStore">
>> </securitystore>
>> <lockstore
>> classname="org.apache.slide.store.mem.TransientLockStore">
>> </lockstore> -->
>> <!-- <lockstore>
>> <reference store="securitystore"/>
>> </lockstore> -->
>> <!-- <revisiondescriptorsstore>
>> <reference store="nodestore"/>
>> </revisiondescriptorsstore>
>> <revisiondescriptorstore>
>> <reference store="nodestore"/>
>> </revisiondescriptorstore>
>> <contentstore>
>> <reference store="nodestore"/>
>> </contentstore>
>> </store> -->
>> <!-- Use a JNDIPrincipalStore for
>> roles -->
>> <!-- <store name="roles">
>> <nodestore
>> classname="org.apache.slide.store.txjndi.JNDIPrincipalStore">
>> <parameter
>> name="jndi.container">ou=groups,dc=dominio,dc=pt</parameter>
>> <parameter name="jndi.attributes.rdn">cn</parameter>
>> <parameter
>> name="jndi.attributes.groupmemberset">uniqueMember</parameter>
>> <parameter
>> name="jndi.search.filter">(objectClass=groupOfUniqueNames)</parameter>
>> <parameter
>> name="jndi.search.scope">ONELEVEL_SCOPE</parameter>
>> <parameter
>> name="jndi.search.attributes">cn</parameter>
>> <parameter
>> name="java.naming.provider.url">ldap://miguel-desktop:389</parameter>
>> <parameter
>> name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</parameter>
>>
>> <parameter
>> name="java.naming.security.principal">cn=Manager,dc=dominio,dc=pt</parameter>
>>
>> <parameter
>> name="java.naming.security.authentication">simple</parameter>
>> <parameter
>> name="java.naming.security.credentials">segredo</parameter>
>>
>>
>>
>> <parameter
>> name="cache.refresh.checkrate">15</parameter>
>> <parameter name="cache.refresh.rate">800</parameter>
>> <parameter
>> name="cache.refresh.threshold">15000</parameter>
>>
>>
>> </nodestore> -->
>> <!-- Use a Tx Store to store security and lock
>> information -->
>> <!-- securitystore
>> classname="org.apache.slide.store.txfile.TxXMLFileDescriptorsStore">
>> <parameter
>> name="rootpath">roles/store/metadata</parameter>
>> <parameter
>> name="workpath">roles/work/metadata</parameter>
>> </securitystore -->
>> <!-- <securitystore
>> classname="org.apache.slide.store.mem.TransientSecurityStore">
>> </securitystore>
>> <lockstore
>> classname="org.apache.slide.store.mem.TransientLockStore">
>> </lockstore> -->
>> <!-- <securitystore
>> classname="org.apache.slide.store.impl.rdbms.JDBCStore">
>> <parameter
>> name="adapter">org.apache.slide.store.impl.rdbms.MySqlRDBMSAdapter</parameter>
>>
>> <parameter
>> name="driver">com.mysql.jdbc.Driver</parameter>
>> <parameter
>> name="url">jdbc:mysql://localhost/sliderstore</parameter>
>> <parameter name="user">sliderstore</parameter>
>> <parameter name="password">slide</parameter>
>> <parameter name="dbcpPooling">true</parameter>
>> <parameter name="maxPooledConnections">10</parameter>
>> <parameter
>> name="isolation">READ_COMMITTED</parameter>
>> <parameter name="compress">false</parameter>
>> </securitystore>
>> <lockstore>
>> <reference store="securitystore"/>
>> </lockstore> -->
>> <!-- <revisiondescriptorsstore>
>> <reference store="nodestore"/>
>> </revisiondescriptorsstore>
>> <revisiondescriptorstore>
>> <reference store="nodestore"/>
>> </revisiondescriptorstore>
>> <contentstore>
>> <reference store="nodestore"/>
>> </contentstore>
>> </store> -->
>> <scope match="/" store="tx"/>
>> <!-- <scope match="/users" store="users"/>
>> <scope match="/roles" store="roles"/> -->
>> </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-permissions>
>>
>> <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-metadata>
>>
>>
>> <modify-revision-metadata>/actions/write-properties</modify-revision-metadata>
>>
>>
>> <remove-revision-metadata>/actions/write-properties</remove-revision-metadata>
>>
>> <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="dav">true</parameter>
>> <parameter name="standalone">true</parameter>
>> <parameter name="acl_inheritance_type">path</parameter>
>> </configuration>
>> <data>
>> <objectnode
>> classname="org.apache.slide.structure.SubjectNode" uri="/">
>> <!-- Subject can be:
>> any user "all"
>> authenticated user "authenticated"
>> unauthenticated user "unauthenticated"
>> self "self"
>> owner of resource "owner"
>> a user "/users/john"
>> a role "/roles/admin"
>> -->
>> <permission action="all" subject="/roles/root"
>> inheritable="true"/>
>> <permission action="/actions/read-acl" subject="all"
>> inheritable="true" negative="true"/>
>> <permission action="/actions/write-acl" subject="all"
>> inheritable="true" negative="true"/>
>> <permission action="/actions/unlock" subject="all"
>> inheritable="true" negative="true"/>
>> <permission action="/actions/read" subject="all"
>> inheritable="true"/>
>> <!-- /users -->
>> <objectnode
>> classname="org.apache.slide.structure.SubjectNode" uri="/users">
>> <permission action="all" subject="self"
>> inheritable="true"/>
>> <permission action="all" subject="unauthenticated"
>> inheritable="true" negative="true"/>
>> <!-- /users/root represents the administrator -->
>> <objectnode
>> classname="org.apache.slide.structure.SubjectNode" uri="/users/root">
>> <revision>
>> <property
>> namespace="http://jakarta.apache.org/slide/"
>> name="password">root</property>
>> </revision>
>> </objectnode>
>> <!-- /users/john and /users/john2 represent
>> authenticated users -->
>> <objectnode
>> classname="org.apache.slide.structure.SubjectNode" uri="/users/john">
>> <revision>
>> <property
>> namespace="http://jakarta.apache.org/slide/"
>> name="password">john</property>
>> </revision>
>> </objectnode>
>> <objectnode
>> classname="org.apache.slide.structure.SubjectNode" uri="/users/john2">
>> <revision>
>> <property
>> namespace="http://jakarta.apache.org/slide/"
>> name="password">john2</property>
>> </revision>
>> </objectnode>
>> <!-- /users/guest represents an authenticated or
>> unauthenticated guest user -->
>> <objectnode
>> classname="org.apache.slide.structure.SubjectNode" uri="/users/guest">
>> <revision>
>> <property
>> namespace="http://jakarta.apache.org/slide/"
>> name="password">guest</property>
>> </revision>
>> </objectnode>
>> </objectnode>
>> <!-- /roles -->
>> <objectnode
>> classname="org.apache.slide.structure.SubjectNode" uri="/roles">
>> <permission action="all" subject="self"
>> inheritable="true"/>
>> <permission action="all" subject="unauthenticated"
>> inheritable="true" negative="true"/>
>> <objectnode
>> classname="org.apache.slide.structure.SubjectNode" uri="/roles/root">
>> <revision>
>> <property
>> name="group-member-set"><![CDATA[<D:href
>> xmlns:D='DAV:'>/users/root</D:href>]]></property>
>> </revision>
>> </objectnode>
>> <objectnode
>> classname="org.apache.slide.structure.SubjectNode" uri="/roles/user">
>> <revision>
>> <property
>> name="group-member-set"><![CDATA[<D:href
>> xmlns:D='DAV:'>/users/john</D:href><D:href
>> xmlns:D='DAV:'>/users/john2</D:href><D:href
>> xmlns:D='DAV:'>/users/root</D:href>]]></property>
>> </revision>
>> </objectnode>
>> <objectnode
>> classname="org.apache.slide.structure.SubjectNode" uri="/roles/guest">
>> <revision>
>> <property
>> name="group-member-set"><![CDATA[<D:href
>> xmlns:D='DAV:'>/users/guest</D:href>]]></property>
>> </revision>
>> </objectnode>
>> </objectnode>
>> <!-- action -->
>> <objectnode
>> classname="org.apache.slide.structure.ActionNode" uri="/actions">
>> <objectnode
>> classname="org.apache.slide.structure.ActionNode" uri="/actions/read">
>> <revision>
>> <property
>> name="privilege-member-set"><![CDATA[<D:href
>> xmlns:D='DAV:'>/actions/read-acl</D:href> <D:href
>> xmlns:D='DAV:'>/actions/read-current-user-privilege-set</D:href>]]></property>
>>
>> </revision>
>> </objectnode>
>> <objectnode
>> classname="org.apache.slide.structure.ActionNode"
>> uri="/actions/read-acl">
>> <revision>
>> <property name="privilege-member-set"/>
>> </revision>
>> </objectnode>
>> <objectnode
>> classname="org.apache.slide.structure.ActionNode"
>> uri="/actions/read-current-user-privilege-set">
>> <revision>
>> <property name="privilege-member-set"/>
>> </revision>
>> </objectnode>
>> <objectnode
>> classname="org.apache.slide.structure.ActionNode" uri="/actions/write">
>> <revision>
>> <property
>> name="privilege-member-set"><![CDATA[<D:href
>> xmlns:D='DAV:'>/actions/write-acl</D:href> <D:href
>> xmlns:D='DAV:'>/actions/write-properties</D:href> <D:href
>> xmlns:D='DAV:'>/actions/write-content</D:href>]]></property>
>> </revision>
>> </objectnode>
>> <objectnode
>> classname="org.apache.slide.structure.ActionNode"
>> uri="/actions/write-acl">
>> <revision>
>> <property name="privilege-member-set"/>
>> </revision>
>> </objectnode>
>> <objectnode
>> classname="org.apache.slide.structure.ActionNode"
>> uri="/actions/write-properties">
>> <revision>
>> <property name="privilege-member-set"/>
>> </revision>
>> </objectnode>
>> <objectnode
>> classname="org.apache.slide.structure.ActionNode"
>> uri="/actions/write-content">
>> <revision>
>> <property
>> name="privilege-member-set"><![CDATA[<D:href
>> xmlns:D='DAV:'>/actions/bind</D:href> <D:href
>> xmlns:D='DAV:'>/actions/unbind</D:href>]]></property>
>> </revision>
>> </objectnode>
>> <objectnode
>> classname="org.apache.slide.structure.ActionNode" uri="/actions/bind">
>> <revision>
>> <property name="privilege-member-set"/>
>> </revision>
>> </objectnode>
>> <objectnode
>> classname="org.apache.slide.structure.ActionNode" uri="/actions/unbind">
>> <revision>
>> <property name="privilege-member-set"/>
>> </revision>
>> </objectnode>
>> <objectnode
>> classname="org.apache.slide.structure.ActionNode" uri="/actions/unlock">
>> <revision>
>> <property name="privilege-member-set"/>
>> </revision>
>> </objectnode>
>> </objectnode>
>> <objectnode
>> classname="org.apache.slide.structure.SubjectNode" uri="/files">
>> <permission action="all" subject="unauthenticated"
>> inheritable="true"/>
>> <permission action="/actions/write"
>> subject="/roles/user" inheritable="true"/>
>> <permission action="/actions/read-acl"
>> subject="owner" inheritable="true"/>
>> </objectnode>
>> <!-- DeltaV: default history and workspace paths -->
>> <objectnode
>> classname="org.apache.slide.structure.SubjectNode" uri="/history">
>> <permission action="all" subject="unauthenticated"
>> inheritable="true"/>
>> </objectnode>
>> <objectnode
>> classname="org.apache.slide.structure.SubjectNode" uri="/workspace">
>> <permission action="all" subject="unauthenticated"
>> inheritable="true"/>
>> </objectnode>
>> <objectnode
>> classname="org.apache.slide.structure.SubjectNode"
>> uri="/workingresource">
>> <permission action="all" subject="unauthenticated"
>> inheritable="true"/>
>> </objectnode>
>> </objectnode>
>> </data>
>> </namespace>
>> <!--
>> DeltaV global parameters
>> ========================
>> * historypath (mandatory=no, default="/history"):
>> Specifies a Slide path which determines the location where this
>> DeltaV
>> server stores history data.
>>
>> * workspacepath (mandatory=no, default="/workspace"):
>> Specifies a Slide path which determines the location where this
>> DeltaV
>> server allows workspaces to reside.
>>
>> * workingresourcepath (mandatory=no, default="/workingresource"):
>> Specifies a Slide path which determines the location where this
>> DeltaV
>> server stores working resources.
>>
>> * auto-version (mandatory=no, default="checkout-checkin"):
>> Controls the DeltaV auto-version behaviour.
>>
>> * auto-version-control (mandatory=no, default="false"):
>> Indicates if a resource just created by a PUT should be set under
>> version-control.
>>
>> * versioncontrol-exclude (mandatory=no, default=""):
>> Specifies a Slide path which determines resources which are
>> excluded from version-control.
>> The default value "" makes no path being excluded.
>>
>> * checkout-fork (mandatory=no, default="forbidden"):
>> Controls the DeltaV check-out behaviour when a version is already
>> checked-out or has a successor.
>>
>> * checkin-fork (mandatory=no, default="forbidden"):
>> Controls the DeltaV check-out behaviour when a version has already a
>> successor.
>>
>> * standardLivePropertiesClass (mandatory=no,
>>
>> default="org.apache.slide.webdav.util.resourcekind.AbstractResourceKind"):
>>
>> Determines the "agent" knowing about what the standard live
>> properties are.
>> It should be a loadable class containing the following static
>> methods:
>> - boolean isLiveProperty(String propName)
>> - boolean isProtectedProperty(String propName)
>> - boolean isComputedProperty(String propName)
>> - Set getAllLiveProperties()
>> - Set getAllProtectedProperties()
>> - Set getAllComputedProperties()
>>
>> * uriRedirectorClass (mandatory=no,
>> default="org.apache.slide.webdav.util.DeltavUriRedirector"):
>> Determines the URI redirector class. The DeltaV URI redirector is in
>> charge of the following redirections:
>> - version URI to history URI, e.g. /history/2/1.4 to /history/2
>> - latest revision number for history resource to 0.0
>> - latest revision number for version resource to last URI token,
>> e.g. /history/2/1.4 to 1.4
>> It should be a loadable class containing the following static
>> methods:
>> - String redirectUri(String uri)
>> - NodeRevisionNumber redirectLatestRevisionNumber(String uri)
>> -->
>> <parameter name="historypath">/history</parameter>
>> <parameter name="workspacepath">/workspace</parameter>
>> <parameter name="workingresourcepath">/workingresource</parameter>
>> <parameter name="auto-version">checkout-checkin</parameter>
>> <parameter name="auto-version-control">false</parameter>
>> <parameter name="versioncontrol-exclude"/>
>> <parameter name="checkout-fork">forbidden</parameter>
>> <parameter name="checkin-fork">forbidden</parameter>
>> </slide>
>>
>>
>> ------------------------------------------------------------------------
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: ldap configuration
Posted by Oliver Zeigermann <ol...@zeigermann.de>.
Have you removed the XML files containing the meta-data before? To me it
looks as if you are using the default tx file store only, right? This
however operates on only partial XML files which makes is cough. Delete
the store directory and I am pretty sure everthing will work...
Please report back :)
Oliver
Miguel Figueiredo wrote:
> Attention folks!!
>
> I've just synchronized, after the struggle to obtain stefan's stream of
> patches ;), my source code with HEAD cvs tag.
>
> After compiling and deploying it in a tomcat 5.0.28 instance I get the
> following tomcat console log IF the content store is already deployed, if
> NOT deployed slide starts ok (in attach I add my domain.xml, error:
> ObjectAlreadyExistsException):
>
>
> 22/Set/2004 18:22:00 org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> 22/Set/2004 18:22:00 org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 1391 ms
> 22/Set/2004 18:22:00 org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> 22/Set/2004 18:22:00 org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.0.28
> 22/Set/2004 18:22:00 org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> 22/Set/2004 18:22:00 org.apache.catalina.core.StandardHost getDeployer
> INFO: Create Host deployer for direct deployment ( non-jmx )
> 22/Set/2004 18:22:01 org.apache.catalina.core.StandardHostDeployer install
> INFO: Processing Context configuration file URL
> file:E:\servers\jakarta-tomcat-5.0.28\conf\Catalina\localhost\admin.xml
> 22/Set/2004 18:22:01 org.apache.struts.util.PropertyMessageResources <init>
> INFO: Initializing, config='org.apache.struts.util.LocalStrings',
> returnNull=true
> 22/Set/2004 18:22:01 org.apache.struts.util.PropertyMessageResources <init>
> INFO: Initializing, config='org.apache.struts.action.ActionResources',
> returnNull=true
> 22/Set/2004 18:22:02 org.apache.struts.util.PropertyMessageResources <init>
> INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources',
> returnNull=true
> 22/Set/2004 18:22:04 org.apache.catalina.core.StandardHostDeployer install
> INFO: Processing Context configuration file URL
> file:E:\servers\jakarta-tomcat-5.0.28\conf\Catalina\localhost\balancer.xml
> 22/Set/2004 18:22:04 org.apache.catalina.core.StandardHostDeployer install
> INFO: Processing Context configuration file URL
> file:E:\servers\jakarta-tomcat-5.0.28\conf\Catalina\localhost\manager.xml
> 22/Set/2004 18:22:04 org.apache.catalina.core.StandardHostDeployer install
> INFO: Installing web application at context path /slide from URL
> file:E:/servers/jakarta-tomcat-5.0.28/webapps/slide
> 22/Set/2004 18:22:04 org.apache.catalina.loader.WebappClassLoader
> validateJarFile
> INFO:
> validateJarFile(E:\servers\jakarta-tomcat-5.0.28\webapps\slide\WEB-INF\lib\s
> ervlet-2.3.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2.
> Offending class: javax/servlet/Servlet.class
> 22 Sep 2004 18:22:05 - org.apache.slide.common.Domain - INFO - Initializing
> Domain
> 22 Sep 2004 18:22:05 - org.apache.slide.common.Domain - INFO - Domain
> configuration : {}
> 22 Sep 2004 18:22:05 - 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}
> 22 Sep 2004 18:22:05 - org.apache.slide.common.Domain - INFO - Initializing
> namespace : slide
> 22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO - Loading
> namespace slide parameters
> 22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO - Loading
> namespace definition
> 22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO - nodestore:
> org.apache.slide.store.txfile.TxXMLFileDescriptorsStore
> 22 Sep 2004 18:22:05 - file-meta-store - INFO - File Store configured to
> store/metadata, working directory work/metadata
> 22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO -
> securitystore references nodestore
> 22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO - lockstore
> references nodestore
> 22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO -
> revisiondescriptorsstore references nodestore
> 22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO -
> revisiondescriptorstore references nodestore
> 22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO -
> contentstore: org.apache.slide.store.txfile.TxFileContentStore
> 22 Sep 2004 18:22:05 - file-content-store - INFO - File Store configured to
> store/content, working directory work/content
> 22 Sep 2004 18:22:05 - INFO - Setting TLock timeout for store tx to 20
> seconds
> 22 Sep 2004 18:22:05 - INFO - Setting object cache size for store tx to
> 10000
> 22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO - Setting
> permission cache size for store tx to 10000
> 22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO - Setting
> lock cache size for store tx to 100
> 22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO - Setting
> descriptors cache size for store tx to 10000
> 22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO - Setting
> descriptor cache size for store tx to 10000
> 22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO - Setting
> content caching for store tx to false
> 22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO - Setting
> content cache size for store tx to 10000
> 22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO - Setting
> content cache byte size for store tx to 10000000
> 22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO - Setting
> transaction content cache size for store tx to 1000
> 22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO - Setting
> transaction content cache byte size for store tx to 1000000
> 22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO - Setting
> maximum byte size for content cache entry for store tx to 50000
> 22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO -
> Enabling full caching causing low isolation
> 22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO -
> Registering Store tx (class org.apache.slide.store.ExtendedStore) with
> parameters {} on scope /
> 22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO -
> Initializing Store tx(org.apache.slide.store.ExtendedStore)
> 22 Sep 2004 18:22:06 - org.apache.slide.common.Namespace - INFO - Loading
> namespace slide base data
> 22 Sep 2004 18:22:06 -
> org.apache.commons.transaction.file.FileResourceManager - INFO - Starting RM
> at 'store/metadata' / 'work/metadata'
> 22 Sep 2004 18:22:06 -
> org.apache.commons.transaction.file.FileResourceManager - INFO - Started RM
> 22 Sep 2004 18:22:06 -
> org.apache.commons.transaction.file.FileResourceManager - INFO - Starting RM
> at 'store/content' / 'work/content'
> 22 Sep 2004 18:22:06 -
> org.apache.commons.transaction.file.FileResourceManager - INFO - Started RM
> org.apache.slide.structure.ObjectAlreadyExistsException: Another object
> already exist at /
> at
> org.apache.slide.store.txfile.XMLResourceDescriptor.create(XMLResourceDescri
> ptor.java:133)
> 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.common.Namespace.loadBaseData(Namespace.java:781)
> at org.apache.slide.common.Domain.initNamespace(Domain.java:845)
> at org.apache.slide.common.Domain.init(Domain.java:432)
> at org.apache.slide.common.Domain.init(Domain.java:366)
> at org.apache.slide.common.Domain.init(Domain.java:329)
> at
> org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:263)
> at javax.servlet.GenericServlet.init(GenericServlet.java:211)
> at
> org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:205)
> at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:10
> 29)
> at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
> at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
> 4013)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
> 23)
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
> at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
> at
> org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
> ava:277)
> at
> org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
> at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625)
> at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431)
> at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
> at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
> t.java:119)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
> at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
> at
> org.apache.catalina.core.StandardService.start(StandardService.java:480)
> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
> 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:287)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
> 22 Sep 2004 18:22:06 - org.apache.slide.common.Namespace - INFO - Namespace
> base configuration was already done before
> 22 Sep 2004 18:22:06 - org.apache.slide.common.Namespace - INFO - Loading
> namespace slide configuration
> 22 Sep 2004 18:22:07 - org.apache.slide.common.Domain - INFO - Namespace
> configuration complete
> 22/Set/2004 18:22:07 org.apache.catalina.core.StandardHostDeployer install
> INFO: Installing web application at context path /jsp-examples from URL
> file:E:\servers\jakarta-tomcat-5.0.28\webapps\jsp-examples
> 22/Set/2004 18:22:07 org.apache.catalina.core.StandardHostDeployer install
> INFO: Installing web application at context path from URL
> file:E:\servers\jakarta-tomcat-5.0.28\webapps\ROOT
> 22/Set/2004 18:22:07 org.apache.catalina.core.StandardHostDeployer install
> INFO: Installing web application at context path /servlets-examples from URL
> file:E:\servers\jakarta-tomcat-5.0.28\webapps\servlets-examples
> 22/Set/2004 18:22:07 org.apache.catalina.core.StandardHostDeployer install
> INFO: Installing web application at context path /tomcat-docs from URL
> file:E:\servers\jakarta-tomcat-5.0.28\webapps\tomcat-docs
> 22/Set/2004 18:22:07 org.apache.catalina.core.StandardHostDeployer install
> INFO: Installing web application at context path /webdav from URL
> file:E:\servers\jakarta-tomcat-5.0.28\webapps\webdav
> 22/Set/2004 18:22:07 org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> 22/Set/2004 18:22:08 org.apache.jk.common.ChannelSocket init
> INFO: JK2: ajp13 listening on /0.0.0.0:8009
> 22/Set/2004 18:22:08 org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/47
> config=E:\servers\jakarta-tomcat-5.0.28\conf\jk2.properties
> 22/Set/2004 18:22:08 org.apache.catalina.startup.Catalina start
> INFO: Server startup in 7750 ms
>
>
>
> Also, slide is NOT working!...
>
> Miguel
>
> _____________________________________________
>
>
> Hello Oliver, James,
>
> I can test it for you... I'll be back with a 'report' in a few minutes.
>
> BRB, Miguel
>
> -----Original Message-----
> From: Oliver Zeigermann [mailto:oliver@zeigermann.de]
> Sent: quarta-feira, 22 de Setembro de 2004 15:16
> To: Slide Users Mailing List
> Subject: Re: ldap configuration
>
> Hi James,
>
> there really was a pretty obvious bug in AbstractXMLResourceDescriptor.
> It should have shown up everytime the TxXMLFileDescriptorStore tried to
> create a new descriptor without the real object stored into it and later
> trying to re-read it. Nothing has changed for ages in
> AbstractXMLResourceDescriptor so I am wondering why this error did not
> show up earlier.
>
> Anyway, it should be fixed now both in the HEAD as well as the release
> branch. Can anyone check, please?
>
> Thanks,
> Oliver
>
> James Mason wrote:
>
>
>>Oliver,
>>
>>I don't know if it's really a problem or not. With 2.1M1 I configured
>>JNDIPrincipalStore to use a TxXMLFileDescriptorStore for the
>>SecurityStore and LockStore implementations. When I upgraded to 2.1b1 I
>>started getting errors with this configuration. I think it was the same
>>error that Miguel reported.
>>
>>For reproducing I suppose you could try using the memory stores for
>>everything but security and locks. If you can't reproduce it that way
>>than the problem is probably obscure enough not worry about.
>>
>>-James
>>
>>Oliver Zeigermann wrote:
>>
>>
>>>Hi James!
>>>
>>>Could you describe how I can reproduce the problem? I would take care
>>>of it then...
>>>
>>>Oliver
>>>
>>>
>>>>This problem cropped up in 2.1b1. I'm not sure what causes it
>>>>(something changed with the TxFile stores) and I was too lazy to
>>>>track it down :).
>>>
>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: slide-user-help@jakarta.apache.org
>>>
>>>
>>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: slide-user-help@jakarta.apache.org
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
>
> ------------------------------------------------------------------------
>
> <?xml version="1.0"?>
> <slide>
> <namespace name="slide">
> <definition>
> <store name="tx">
> <nodestore classname="org.apache.slide.store.txfile.TxXMLFileDescriptorsStore">
> <parameter name="rootpath">store/metadata</parameter>
> <parameter name="workpath">work/metadata</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">store/content</parameter>
> <parameter name="workpath">work/content</parameter>
> </contentstore>
> </store>
>
> <!-- Use a JNDIPrincipalStore for users -->
> <!-- <store name="users">
> <nodestore classname="org.apache.slide.store.txjndi.JNDIPrincipalStore">
> <parameter name="jndi.container">ou=people,dc=dominio,dc=pt</parameter>
> <parameter name="jndi.attributes.rdn">uid</parameter>
> <parameter name="jndi.search.filter">(objectClass=inetOrgPerson)</parameter>
> <parameter name="jndi.search.scope">ONELEVEL_SCOPE</parameter>
> <parameter name="jndi.search.attributes">postalCode,initials,givenName,uid,mail,fullName,telephoneNumber,title,facsimileTelephoneNumber,groupMembership,l,sn,cn</parameter>
> <parameter name="java.naming.provider.url">ldap://miguel-desktop:389</parameter>
> <parameter name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</parameter>
> <parameter name="java.naming.security.principal">cn=Manager,dc=dominio,dc=pt</parameter>
> <parameter name="java.naming.security.authentication">simple</parameter>
> <parameter name="java.naming.security.credentials">segredo</parameter>
>
>
> <parameter name="cache.refresh.checkrate">15</parameter>
> <parameter name="cache.refresh.rate">800</parameter>
> <parameter name="cache.refresh.threshold">15000</parameter>
>
>
> </nodestore> -->
> <!-- Use a Tx Store to store security and lock information -->
> <!-- securitystore classname="org.apache.slide.store.txfile.TxXMLFileDescriptorsStore">
> <parameter name="rootpath">users/store/metadata</parameter>
> <parameter name="workpath">users/work/metadata</parameter>
> </securitystore -->
> <!-- <securitystore classname="org.apache.slide.store.impl.rdbms.JDBCStore">
> <parameter name="adapter">org.apache.slide.store.impl.rdbms.MySqlRDBMSAdapter</parameter>
> <parameter name="driver">com.mysql.jdbc.Driver</parameter>
> <parameter name="url">jdbc:mysql://localhost/slideustore</parameter>
> <parameter name="user">slideustore</parameter>
> <parameter name="password">slide</parameter>
> <parameter name="dbcpPooling">true</parameter>
> <parameter name="maxPooledConnections">10</parameter>
> <parameter name="isolation">READ_COMMITTED</parameter>
> <parameter name="compress">false</parameter>
> </securitystore> -->
> <!-- <securitystore classname="org.apache.slide.store.mem.TransientSecurityStore">
> </securitystore>
> <lockstore classname="org.apache.slide.store.mem.TransientLockStore">
> </lockstore> -->
> <!-- <lockstore>
> <reference store="securitystore"/>
> </lockstore> -->
> <!-- <revisiondescriptorsstore>
> <reference store="nodestore"/>
> </revisiondescriptorsstore>
> <revisiondescriptorstore>
> <reference store="nodestore"/>
> </revisiondescriptorstore>
> <contentstore>
> <reference store="nodestore"/>
> </contentstore>
> </store> -->
>
>
> <!-- Use a JNDIPrincipalStore for roles -->
> <!-- <store name="roles">
> <nodestore classname="org.apache.slide.store.txjndi.JNDIPrincipalStore">
> <parameter name="jndi.container">ou=groups,dc=dominio,dc=pt</parameter>
> <parameter name="jndi.attributes.rdn">cn</parameter>
> <parameter name="jndi.attributes.groupmemberset">uniqueMember</parameter>
> <parameter name="jndi.search.filter">(objectClass=groupOfUniqueNames)</parameter>
> <parameter name="jndi.search.scope">ONELEVEL_SCOPE</parameter>
> <parameter name="jndi.search.attributes">cn</parameter>
> <parameter name="java.naming.provider.url">ldap://miguel-desktop:389</parameter>
> <parameter name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</parameter>
> <parameter name="java.naming.security.principal">cn=Manager,dc=dominio,dc=pt</parameter>
> <parameter name="java.naming.security.authentication">simple</parameter>
> <parameter name="java.naming.security.credentials">segredo</parameter>
>
>
>
> <parameter name="cache.refresh.checkrate">15</parameter>
> <parameter name="cache.refresh.rate">800</parameter>
> <parameter name="cache.refresh.threshold">15000</parameter>
>
>
> </nodestore> -->
> <!-- Use a Tx Store to store security and lock information -->
> <!-- securitystore classname="org.apache.slide.store.txfile.TxXMLFileDescriptorsStore">
> <parameter name="rootpath">roles/store/metadata</parameter>
> <parameter name="workpath">roles/work/metadata</parameter>
> </securitystore -->
> <!-- <securitystore classname="org.apache.slide.store.mem.TransientSecurityStore">
> </securitystore>
> <lockstore classname="org.apache.slide.store.mem.TransientLockStore">
> </lockstore> -->
> <!-- <securitystore classname="org.apache.slide.store.impl.rdbms.JDBCStore">
> <parameter name="adapter">org.apache.slide.store.impl.rdbms.MySqlRDBMSAdapter</parameter>
> <parameter name="driver">com.mysql.jdbc.Driver</parameter>
> <parameter name="url">jdbc:mysql://localhost/sliderstore</parameter>
> <parameter name="user">sliderstore</parameter>
> <parameter name="password">slide</parameter>
> <parameter name="dbcpPooling">true</parameter>
> <parameter name="maxPooledConnections">10</parameter>
> <parameter name="isolation">READ_COMMITTED</parameter>
> <parameter name="compress">false</parameter>
> </securitystore>
> <lockstore>
> <reference store="securitystore"/>
> </lockstore> -->
> <!-- <revisiondescriptorsstore>
> <reference store="nodestore"/>
> </revisiondescriptorsstore>
> <revisiondescriptorstore>
> <reference store="nodestore"/>
> </revisiondescriptorstore>
> <contentstore>
> <reference store="nodestore"/>
> </contentstore>
> </store> -->
>
>
> <scope match="/" store="tx"/>
> <!-- <scope match="/users" store="users"/>
> <scope match="/roles" store="roles"/> -->
> </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-permissions>
> <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-metadata>
> <modify-revision-metadata>/actions/write-properties</modify-revision-metadata>
> <remove-revision-metadata>/actions/write-properties</remove-revision-metadata>
> <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="dav">true</parameter>
> <parameter name="standalone">true</parameter>
> <parameter name="acl_inheritance_type">path</parameter>
> </configuration>
> <data>
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/">
> <!-- Subject can be:
> any user "all"
> authenticated user "authenticated"
> unauthenticated user "unauthenticated"
> self "self"
> owner of resource "owner"
> a user "/users/john"
> a role "/roles/admin"
> -->
> <permission action="all" subject="/roles/root" inheritable="true"/>
> <permission action="/actions/read-acl" subject="all" inheritable="true" negative="true"/>
> <permission action="/actions/write-acl" subject="all" inheritable="true" negative="true"/>
> <permission action="/actions/unlock" subject="all" inheritable="true" negative="true"/>
> <permission action="/actions/read" subject="all" inheritable="true"/>
> <!-- /users -->
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/users">
> <permission action="all" subject="self" inheritable="true"/>
> <permission action="all" subject="unauthenticated" inheritable="true" negative="true"/>
> <!-- /users/root represents the administrator -->
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/users/root">
> <revision>
> <property namespace="http://jakarta.apache.org/slide/" name="password">root</property>
> </revision>
> </objectnode>
> <!-- /users/john and /users/john2 represent authenticated users -->
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/users/john">
> <revision>
> <property namespace="http://jakarta.apache.org/slide/" name="password">john</property>
> </revision>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/users/john2">
> <revision>
> <property namespace="http://jakarta.apache.org/slide/" name="password">john2</property>
> </revision>
> </objectnode>
> <!-- /users/guest represents an authenticated or unauthenticated guest user -->
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/users/guest">
> <revision>
> <property namespace="http://jakarta.apache.org/slide/" name="password">guest</property>
> </revision>
> </objectnode>
> </objectnode>
> <!-- /roles -->
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/roles">
> <permission action="all" subject="self" inheritable="true"/>
> <permission action="all" subject="unauthenticated" inheritable="true" negative="true"/>
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/roles/root">
> <revision>
> <property name="group-member-set"><![CDATA[<D:href xmlns:D='DAV:'>/users/root</D:href>]]></property>
> </revision>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/roles/user">
> <revision>
> <property name="group-member-set"><![CDATA[<D:href xmlns:D='DAV:'>/users/john</D:href><D:href xmlns:D='DAV:'>/users/john2</D:href><D:href xmlns:D='DAV:'>/users/root</D:href>]]></property>
> </revision>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/roles/guest">
> <revision>
> <property name="group-member-set"><![CDATA[<D:href xmlns:D='DAV:'>/users/guest</D:href>]]></property>
> </revision>
> </objectnode>
> </objectnode>
> <!-- action -->
> <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions">
> <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/read">
> <revision>
> <property name="privilege-member-set"><![CDATA[<D:href xmlns:D='DAV:'>/actions/read-acl</D:href> <D:href xmlns:D='DAV:'>/actions/read-current-user-privilege-set</D:href>]]></property>
> </revision>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/read-acl">
> <revision>
> <property name="privilege-member-set"/>
> </revision>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/read-current-user-privilege-set">
> <revision>
> <property name="privilege-member-set"/>
> </revision>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/write">
> <revision>
> <property name="privilege-member-set"><![CDATA[<D:href xmlns:D='DAV:'>/actions/write-acl</D:href> <D:href xmlns:D='DAV:'>/actions/write-properties</D:href> <D:href xmlns:D='DAV:'>/actions/write-content</D:href>]]></property>
> </revision>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/write-acl">
> <revision>
> <property name="privilege-member-set"/>
> </revision>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/write-properties">
> <revision>
> <property name="privilege-member-set"/>
> </revision>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/write-content">
> <revision>
> <property name="privilege-member-set"><![CDATA[<D:href xmlns:D='DAV:'>/actions/bind</D:href> <D:href xmlns:D='DAV:'>/actions/unbind</D:href>]]></property>
> </revision>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/bind">
> <revision>
> <property name="privilege-member-set"/>
> </revision>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/unbind">
> <revision>
> <property name="privilege-member-set"/>
> </revision>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/unlock">
> <revision>
> <property name="privilege-member-set"/>
> </revision>
> </objectnode>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/files">
> <permission action="all" subject="unauthenticated" inheritable="true"/>
> <permission action="/actions/write" subject="/roles/user" inheritable="true"/>
> <permission action="/actions/read-acl" subject="owner" inheritable="true"/>
> </objectnode>
> <!-- DeltaV: default history and workspace paths -->
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/history">
> <permission action="all" subject="unauthenticated" inheritable="true"/>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/workspace">
> <permission action="all" subject="unauthenticated" inheritable="true"/>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/workingresource">
> <permission action="all" subject="unauthenticated" inheritable="true"/>
> </objectnode>
> </objectnode>
> </data>
> </namespace>
> <!--
> DeltaV global parameters
> ========================
> * historypath (mandatory=no, default="/history"):
> Specifies a Slide path which determines the location where this DeltaV
> server stores history data.
>
> * workspacepath (mandatory=no, default="/workspace"):
> Specifies a Slide path which determines the location where this DeltaV
> server allows workspaces to reside.
>
> * workingresourcepath (mandatory=no, default="/workingresource"):
> Specifies a Slide path which determines the location where this DeltaV
> server stores working resources.
>
> * auto-version (mandatory=no, default="checkout-checkin"):
> Controls the DeltaV auto-version behaviour.
>
> * auto-version-control (mandatory=no, default="false"):
> Indicates if a resource just created by a PUT should be set under
> version-control.
>
> * versioncontrol-exclude (mandatory=no, default=""):
> Specifies a Slide path which determines resources which are excluded from version-control.
> The default value "" makes no path being excluded.
>
> * checkout-fork (mandatory=no, default="forbidden"):
> Controls the DeltaV check-out behaviour when a version is already
> checked-out or has a successor.
>
> * checkin-fork (mandatory=no, default="forbidden"):
> Controls the DeltaV check-out behaviour when a version has already a
> successor.
>
> * standardLivePropertiesClass (mandatory=no,
> default="org.apache.slide.webdav.util.resourcekind.AbstractResourceKind"):
> Determines the "agent" knowing about what the standard live properties are.
> It should be a loadable class containing the following static methods:
> - boolean isLiveProperty(String propName)
> - boolean isProtectedProperty(String propName)
> - boolean isComputedProperty(String propName)
> - Set getAllLiveProperties()
> - Set getAllProtectedProperties()
> - Set getAllComputedProperties()
>
> * uriRedirectorClass (mandatory=no,
> default="org.apache.slide.webdav.util.DeltavUriRedirector"):
> Determines the URI redirector class. The DeltaV URI redirector is in
> charge of the following redirections:
> - version URI to history URI, e.g. /history/2/1.4 to /history/2
> - latest revision number for history resource to 0.0
> - latest revision number for version resource to last URI token,
> e.g. /history/2/1.4 to 1.4
> It should be a loadable class containing the following static methods:
> - String redirectUri(String uri)
> - NodeRevisionNumber redirectLatestRevisionNumber(String uri)
> -->
> <parameter name="historypath">/history</parameter>
> <parameter name="workspacepath">/workspace</parameter>
> <parameter name="workingresourcepath">/workingresource</parameter>
> <parameter name="auto-version">checkout-checkin</parameter>
> <parameter name="auto-version-control">false</parameter>
> <parameter name="versioncontrol-exclude"/>
> <parameter name="checkout-fork">forbidden</parameter>
> <parameter name="checkin-fork">forbidden</parameter>
> </slide>
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
RE: ldap configuration
Posted by Miguel Figueiredo <mf...@maisis.pt>.
Attention folks!!
I've just synchronized, after the struggle to obtain stefan's stream of
patches ;), my source code with HEAD cvs tag.
After compiling and deploying it in a tomcat 5.0.28 instance I get the
following tomcat console log IF the content store is already deployed, if
NOT deployed slide starts ok (in attach I add my domain.xml, error:
ObjectAlreadyExistsException):
22/Set/2004 18:22:00 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
22/Set/2004 18:22:00 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1391 ms
22/Set/2004 18:22:00 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
22/Set/2004 18:22:00 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.28
22/Set/2004 18:22:00 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
22/Set/2004 18:22:00 org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
22/Set/2004 18:22:01 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL
file:E:\servers\jakarta-tomcat-5.0.28\conf\Catalina\localhost\admin.xml
22/Set/2004 18:22:01 org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
22/Set/2004 18:22:01 org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
22/Set/2004 18:22:02 org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources',
returnNull=true
22/Set/2004 18:22:04 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL
file:E:\servers\jakarta-tomcat-5.0.28\conf\Catalina\localhost\balancer.xml
22/Set/2004 18:22:04 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL
file:E:\servers\jakarta-tomcat-5.0.28\conf\Catalina\localhost\manager.xml
22/Set/2004 18:22:04 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /slide from URL
file:E:/servers/jakarta-tomcat-5.0.28/webapps/slide
22/Set/2004 18:22:04 org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO:
validateJarFile(E:\servers\jakarta-tomcat-5.0.28\webapps\slide\WEB-INF\lib\s
ervlet-2.3.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2.
Offending class: javax/servlet/Servlet.class
22 Sep 2004 18:22:05 - org.apache.slide.common.Domain - INFO - Initializing
Domain
22 Sep 2004 18:22:05 - org.apache.slide.common.Domain - INFO - Domain
configuration : {}
22 Sep 2004 18:22:05 - 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}
22 Sep 2004 18:22:05 - org.apache.slide.common.Domain - INFO - Initializing
namespace : slide
22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO - Loading
namespace slide parameters
22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO - Loading
namespace definition
22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO - nodestore:
org.apache.slide.store.txfile.TxXMLFileDescriptorsStore
22 Sep 2004 18:22:05 - file-meta-store - INFO - File Store configured to
store/metadata, working directory work/metadata
22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO -
securitystore references nodestore
22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO - lockstore
references nodestore
22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO -
revisiondescriptorsstore references nodestore
22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO -
revisiondescriptorstore references nodestore
22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO -
contentstore: org.apache.slide.store.txfile.TxFileContentStore
22 Sep 2004 18:22:05 - file-content-store - INFO - File Store configured to
store/content, working directory work/content
22 Sep 2004 18:22:05 - INFO - Setting TLock timeout for store tx to 20
seconds
22 Sep 2004 18:22:05 - INFO - Setting object cache size for store tx to
10000
22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO - Setting
permission cache size for store tx to 10000
22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO - Setting
lock cache size for store tx to 100
22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO - Setting
descriptors cache size for store tx to 10000
22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO - Setting
descriptor cache size for store tx to 10000
22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO - Setting
content caching for store tx to false
22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO - Setting
content cache size for store tx to 10000
22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO - Setting
content cache byte size for store tx to 10000000
22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO - Setting
transaction content cache size for store tx to 1000
22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO - Setting
transaction content cache byte size for store tx to 1000000
22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO - Setting
maximum byte size for content cache entry for store tx to 50000
22 Sep 2004 18:22:05 - org.apache.slide.store.ExtendedStore - INFO -
Enabling full caching causing low isolation
22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO -
Registering Store tx (class org.apache.slide.store.ExtendedStore) with
parameters {} on scope /
22 Sep 2004 18:22:05 - org.apache.slide.common.Namespace - INFO -
Initializing Store tx(org.apache.slide.store.ExtendedStore)
22 Sep 2004 18:22:06 - org.apache.slide.common.Namespace - INFO - Loading
namespace slide base data
22 Sep 2004 18:22:06 -
org.apache.commons.transaction.file.FileResourceManager - INFO - Starting RM
at 'store/metadata' / 'work/metadata'
22 Sep 2004 18:22:06 -
org.apache.commons.transaction.file.FileResourceManager - INFO - Started RM
22 Sep 2004 18:22:06 -
org.apache.commons.transaction.file.FileResourceManager - INFO - Starting RM
at 'store/content' / 'work/content'
22 Sep 2004 18:22:06 -
org.apache.commons.transaction.file.FileResourceManager - INFO - Started RM
org.apache.slide.structure.ObjectAlreadyExistsException: Another object
already exist at /
at
org.apache.slide.store.txfile.XMLResourceDescriptor.create(XMLResourceDescri
ptor.java:133)
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.common.Namespace.loadBaseData(Namespace.java:781)
at org.apache.slide.common.Domain.initNamespace(Domain.java:845)
at org.apache.slide.common.Domain.init(Domain.java:432)
at org.apache.slide.common.Domain.init(Domain.java:366)
at org.apache.slide.common.Domain.init(Domain.java:329)
at
org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:263)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at
org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:205)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:10
29)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
4013)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
23)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:277)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:119)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at
org.apache.catalina.core.StandardService.start(StandardService.java:480)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
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:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
22 Sep 2004 18:22:06 - org.apache.slide.common.Namespace - INFO - Namespace
base configuration was already done before
22 Sep 2004 18:22:06 - org.apache.slide.common.Namespace - INFO - Loading
namespace slide configuration
22 Sep 2004 18:22:07 - org.apache.slide.common.Domain - INFO - Namespace
configuration complete
22/Set/2004 18:22:07 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /jsp-examples from URL
file:E:\servers\jakarta-tomcat-5.0.28\webapps\jsp-examples
22/Set/2004 18:22:07 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path from URL
file:E:\servers\jakarta-tomcat-5.0.28\webapps\ROOT
22/Set/2004 18:22:07 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /servlets-examples from URL
file:E:\servers\jakarta-tomcat-5.0.28\webapps\servlets-examples
22/Set/2004 18:22:07 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /tomcat-docs from URL
file:E:\servers\jakarta-tomcat-5.0.28\webapps\tomcat-docs
22/Set/2004 18:22:07 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /webdav from URL
file:E:\servers\jakarta-tomcat-5.0.28\webapps\webdav
22/Set/2004 18:22:07 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
22/Set/2004 18:22:08 org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
22/Set/2004 18:22:08 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/47
config=E:\servers\jakarta-tomcat-5.0.28\conf\jk2.properties
22/Set/2004 18:22:08 org.apache.catalina.startup.Catalina start
INFO: Server startup in 7750 ms
Also, slide is NOT working!...
Miguel
_____________________________________________
Hello Oliver, James,
I can test it for you... I'll be back with a 'report' in a few minutes.
BRB, Miguel
-----Original Message-----
From: Oliver Zeigermann [mailto:oliver@zeigermann.de]
Sent: quarta-feira, 22 de Setembro de 2004 15:16
To: Slide Users Mailing List
Subject: Re: ldap configuration
Hi James,
there really was a pretty obvious bug in AbstractXMLResourceDescriptor.
It should have shown up everytime the TxXMLFileDescriptorStore tried to
create a new descriptor without the real object stored into it and later
trying to re-read it. Nothing has changed for ages in
AbstractXMLResourceDescriptor so I am wondering why this error did not
show up earlier.
Anyway, it should be fixed now both in the HEAD as well as the release
branch. Can anyone check, please?
Thanks,
Oliver
James Mason wrote:
> Oliver,
>
> I don't know if it's really a problem or not. With 2.1M1 I configured
> JNDIPrincipalStore to use a TxXMLFileDescriptorStore for the
> SecurityStore and LockStore implementations. When I upgraded to 2.1b1 I
> started getting errors with this configuration. I think it was the same
> error that Miguel reported.
>
> For reproducing I suppose you could try using the memory stores for
> everything but security and locks. If you can't reproduce it that way
> than the problem is probably obscure enough not worry about.
>
> -James
>
> Oliver Zeigermann wrote:
>
>> Hi James!
>>
>> Could you describe how I can reproduce the problem? I would take care
>> of it then...
>>
>> Oliver
>>
>>> This problem cropped up in 2.1b1. I'm not sure what causes it
>>> (something changed with the TxFile stores) and I was too lazy to
>>> track it down :).
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
RE: ldap configuration
Posted by Miguel Figueiredo <mf...@maisis.pt>.
Hello Oliver, James,
I can test it for you... I'll be back with a 'report' in a few minutes.
BRB, Miguel
-----Original Message-----
From: Oliver Zeigermann [mailto:oliver@zeigermann.de]
Sent: quarta-feira, 22 de Setembro de 2004 15:16
To: Slide Users Mailing List
Subject: Re: ldap configuration
Hi James,
there really was a pretty obvious bug in AbstractXMLResourceDescriptor.
It should have shown up everytime the TxXMLFileDescriptorStore tried to
create a new descriptor without the real object stored into it and later
trying to re-read it. Nothing has changed for ages in
AbstractXMLResourceDescriptor so I am wondering why this error did not
show up earlier.
Anyway, it should be fixed now both in the HEAD as well as the release
branch. Can anyone check, please?
Thanks,
Oliver
James Mason wrote:
> Oliver,
>
> I don't know if it's really a problem or not. With 2.1M1 I configured
> JNDIPrincipalStore to use a TxXMLFileDescriptorStore for the
> SecurityStore and LockStore implementations. When I upgraded to 2.1b1 I
> started getting errors with this configuration. I think it was the same
> error that Miguel reported.
>
> For reproducing I suppose you could try using the memory stores for
> everything but security and locks. If you can't reproduce it that way
> than the problem is probably obscure enough not worry about.
>
> -James
>
> Oliver Zeigermann wrote:
>
>> Hi James!
>>
>> Could you describe how I can reproduce the problem? I would take care
>> of it then...
>>
>> Oliver
>>
>>> This problem cropped up in 2.1b1. I'm not sure what causes it
>>> (something changed with the TxFile stores) and I was too lazy to
>>> track it down :).
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: ldap configuration
Posted by Oliver Zeigermann <ol...@zeigermann.de>.
Hi James,
there really was a pretty obvious bug in AbstractXMLResourceDescriptor.
It should have shown up everytime the TxXMLFileDescriptorStore tried to
create a new descriptor without the real object stored into it and later
trying to re-read it. Nothing has changed for ages in
AbstractXMLResourceDescriptor so I am wondering why this error did not
show up earlier.
Anyway, it should be fixed now both in the HEAD as well as the release
branch. Can anyone check, please?
Thanks,
Oliver
James Mason wrote:
> Oliver,
>
> I don't know if it's really a problem or not. With 2.1M1 I configured
> JNDIPrincipalStore to use a TxXMLFileDescriptorStore for the
> SecurityStore and LockStore implementations. When I upgraded to 2.1b1 I
> started getting errors with this configuration. I think it was the same
> error that Miguel reported.
>
> For reproducing I suppose you could try using the memory stores for
> everything but security and locks. If you can't reproduce it that way
> than the problem is probably obscure enough not worry about.
>
> -James
>
> Oliver Zeigermann wrote:
>
>> Hi James!
>>
>> Could you describe how I can reproduce the problem? I would take care
>> of it then...
>>
>> Oliver
>>
>>> This problem cropped up in 2.1b1. I'm not sure what causes it
>>> (something changed with the TxFile stores) and I was too lazy to
>>> track it down :).
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: ldap configuration
Posted by James Mason <ma...@apache.org>.
Oliver,
I don't know if it's really a problem or not. With 2.1M1 I configured
JNDIPrincipalStore to use a TxXMLFileDescriptorStore for the
SecurityStore and LockStore implementations. When I upgraded to 2.1b1 I
started getting errors with this configuration. I think it was the same
error that Miguel reported.
For reproducing I suppose you could try using the memory stores for
everything but security and locks. If you can't reproduce it that way
than the problem is probably obscure enough not worry about.
-James
Oliver Zeigermann wrote:
> Hi James!
>
> Could you describe how I can reproduce the problem? I would take care of
> it then...
>
> Oliver
>
>> This problem cropped up in 2.1b1. I'm not sure what causes it
>> (something changed with the TxFile stores) and I was too lazy to track
>> it down :).
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: ldap configuration
Posted by Oliver Zeigermann <ol...@zeigermann.de>.
Hi James!
Could you describe how I can reproduce the problem? I would take care of
it then...
Oliver
> This problem cropped up in 2.1b1. I'm not sure what causes it (something
> changed with the TxFile stores) and I was too lazy to track it down :).
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
RE: ldap configuration
Posted by Miguel Figueiredo <mf...@maisis.pt>.
Thanx James, I'll try that :)
Regards,
Miguel
_________________
Miguel,
This problem cropped up in 2.1b1. I'm not sure what causes it (something
changed with the TxFile stores) and I was too lazy to track it down :).
If you grab the latest code from CVS the JNDIPrincipalStore now
implements SecurityStore and LockStore so that you don't have configure
a separate store. The implementations are empty, so you can't actually
set ACLs or LOCK resources inside the Store.
With your current version you might try using the Memory stores for
security and locks. That would be a quicker fix and should work fine.
-James
Miguel Figueiredo wrote:
> Hello folks,
>
> I've been trying to configure slide to use an ldap server for
authentication
> purposes.
> I've been successful at that, but with a cost of an annoying null pointer
> exception when tomcat is starting up:
>
> org.apache.slide.common.ServiceAccessException: Service
> TxXMLFileDescriptorsStore at users/store/metadata working on us
> ers/work/metadata access error : java.lang.NullPointerException
> at
> org.apache.slide.store.txfile.AbstractXMLResourceDescriptor.encodeObje
> ct(AbstractXMLResourceDescriptor.java:662)
>
> My current setup is the tomcat 5.0.19 / slide 2.1b1 bundle with the
attached
> domain.xml file.
>
> I suspect that it works well because JNDIPrincipalStore is read-only, so,
> maybe it wouldn't need it's corresponding working directory, to witch this
> exception relates to. Or perhaps I still didn't found any problem witch
> shall occur more soon than later...
>
> Does slide use the 'users working directory' in any of its use-cases? Am I
> doing something wrong in the Domain.xml file?
>
>
> Thanks in advance,
> Miguel Figueiredo
>
>
>
>
>
> ------------------------------------------------------------------------
>
> <?xml version="1.0"?>
> <slide>
> <namespace name="slide">
> <definition>
> <store name="tx">
> <parameter name="tlock-timeout">120</parameter>
> <nodestore
classname="org.apache.slide.store.txfile.TxXMLFileDescriptorsStore">
> <parameter
name="rootpath">main/store/metadata</parameter>
> <parameter
name="workpath">main/work/metadata</parameter>
> <parameter name="defer-saving">true</parameter>
> <parameter name="timeout">120</parameter>
> </nodestore>
> <sequencestore
classname="org.apache.slide.store.txfile.FileSequenceStore">
> <parameter
name="rootpath">main/store/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="rootpath">main/store/content</parameter>
> <parameter
name="workpath">main/work/content</parameter>
> <parameter name="defer-saving">true</parameter>
> <parameter name="timeout">120</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>
>
>
> <store name="users">
> <nodestore
classname="org.apache.slide.store.txjndi.JNDIPrincipalStore">
> <parameter
name="jndi.container">ou=people,dc=dominio,dc=pt</parameter>
> <parameter
name="jndi.attributes.rdn">uid</parameter>
> <parameter
name="jndi.search.filter">(objectClass=inetOrgPerson)</parameter>
> <parameter
name="jndi.search.scope">ONELEVEL_SCOPE</parameter>
> <parameter
name="jndi.search.attributes">postalCode,initials,givenName,uid,mail,fullNam
e,telephoneNumber,title,facsimileTelephoneNumber,groupMembership,l,sn,cn</pa
rameter>
> <parameter
name="java.naming.provider.url">ldap://miguel-desktop:389</parameter>
> <parameter
name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</paramet
er>
> <parameter
name="java.naming.security.principal">cn=Manager,dc=dominio,dc=pt</parameter
>
> <parameter
name="java.naming.security.authentication">simple</parameter>
> <parameter
name="java.naming.security.credentials">segredo</parameter>
>
>
> <parameter
name="cache.refresh.checkrate">15</parameter>
> <parameter
name="cache.refresh.rate">800</parameter>
> <parameter
name="cache.refresh.threshold">15000</parameter>
>
>
>
>
> </nodestore>
> <!-- Use a Tx Store to store security and lock
information -->
> <securitystore
classname="org.apache.slide.store.txfile.TxXMLFileDescriptorsStore">
> <parameter
name="rootpath">users/store/metadata</parameter>
> <parameter
name="workpath">users/work/metadata</parameter>
> </securitystore>
> <lockstore>
> <reference store="securitystore"/>
> </lockstore>
> <revisiondescriptorsstore>
> <reference store="nodestore"/>
> </revisiondescriptorsstore>
> <revisiondescriptorstore>
> <reference store="nodestore"/>
> </revisiondescriptorstore>
> <contentstore>
> <reference store="nodestore"/>
> </contentstore>
> </store>
>
> <!-- Use a JNDIPrincipalStore for roles -->
> <store name="roles">
> <nodestore
classname="org.apache.slide.store.txjndi.JNDIPrincipalStore">
> <parameter
name="jndi.container">ou=groups,dc=dominio,dc=pt</parameter>
> <parameter
name="jndi.attributes.rdn">cn</parameter>
> <parameter
name="jndi.attributes.groupmemberset">uniqueMember</parameter>
> <parameter
name="jndi.search.filter">(objectClass=groupOfUniqueNames)</parameter>
> <parameter
name="jndi.search.scope">ONELEVEL_SCOPE</parameter>
> <parameter
name="jndi.search.attributes">cn</parameter>
> <parameter
name="java.naming.provider.url">ldap://miguel-desktop:389</parameter>
> <parameter
name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</paramet
er>
> <parameter
name="java.naming.security.principal">cn=Manager,dc=dominio,dc=pt</parameter
>
> <parameter
name="java.naming.security.authentication">simple</parameter>
> <parameter
name="java.naming.security.credentials">segredo</parameter>
>
>
>
> <parameter
name="cache.refresh.checkrate">15</parameter>
> <parameter
name="cache.refresh.rate">800</parameter>
> <parameter
name="cache.refresh.threshold">15000</parameter>
>
>
> </nodestore>
> <!-- Use a Tx Store to store security and lock
information -->
> <securitystore
classname="org.apache.slide.store.txfile.TxXMLFileDescriptorsStore">
> <parameter
name="rootpath">roles/store/metadata</parameter>
> <parameter
name="workpath">roles/work/metadata</parameter>
> </securitystore>
> <lockstore>
> <reference store="securitystore"/>
> </lockstore>
> <revisiondescriptorsstore>
> <reference store="nodestore"/>
> </revisiondescriptorsstore>
> <revisiondescriptorstore>
> <reference store="nodestore"/>
> </revisiondescriptorstore>
> <contentstore>
> <reference store="nodestore"/>
> </contentstore>
> </store>
>
>
>
> <scope match="/" store="tx"/>
> <scope match="/users" store="users"/>
> <scope match="/roles" store="roles"/>
> </definition>
> <configuration>
>
> <parameter name="history-collection-hack">true</parameter>
>
> <!-- 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="dav">true</parameter>
> <parameter name="standalone">true</parameter>
> <parameter name="acl_inheritance_type">path</parameter>
> <!-- Nested roles: 0 means no nesting (default), 1 means one
sublevel, etc. -->
> <parameter name="nested_roles_maxdepth">0</parameter>
> <!-- Can be "off", "write" and "full" -->
> <parameter name="sequential-mode">full</parameter>
> <!-- "false" lets all read-only methods be executed outside of
transactions -->
> <parameter name="all-methods-in-transactions">true</parameter>
> </configuration>
> <data>
> <objectnode classname="org.apache.slide.structure.SubjectNode"
uri="/">
> <!-- Subject can be:
> any user "all"
> authenticated user "authenticated"
> unauthenticated user "unauthenticated"
> self "self"
> owner of resource "owner"
> a user "/users/john"
> a role "/roles/admin"
> -->
> <!-- Make sure the subject here is a valid LDAP group -->
> <permission action="all" subject="/roles/root"
inheritable="true"/>
> <permission action="/actions/read-acl" subject="all"
inheritable="true" negative="true"/>
> <permission action="/actions/write-acl" subject="all"
inheritable="true" negative="true"/>
> <permission action="/actions/unlock" subject="all"
inheritable="true" negative="true"/>
> <permission action="/actions/read" subject="all"
inheritable="true"/>
> <!-- /users -->
> <objectnode
classname="org.apache.slide.structure.SubjectNode" uri="/users">
> <!-- Make sure the subject here is a valid LDAP
group -->
> <permission action="all" subject="self"
inheritable="true"/>
> <permission action="all" subject="/roles/projector"
inheritable="true"/>
> <permission action="all" subject="unauthenticated"
inheritable="true" negative="true"/>
> <!-- /users/root represents the administrator -->
> <objectnode
classname="org.apache.slide.structure.SubjectNode" uri="/users/root">
> <revision>
> <property
namespace="http://jakarta.apache.org/slide/" name="password">root</property>
> </revision>
> </objectnode>
> <!-- /users/john and /users/john2 represent
authenticated users -->
> <objectnode
classname="org.apache.slide.structure.SubjectNode" uri="/users/john">
> <revision>
> <property
namespace="http://jakarta.apache.org/slide/" name="password">john</property>
> </revision>
> </objectnode>
> <objectnode
classname="org.apache.slide.structure.SubjectNode" uri="/users/john2">
> <revision>
> <property
namespace="http://jakarta.apache.org/slide/"
name="password">john2</property>
> </revision>
> </objectnode>
> <!-- /users/guest represents an authenticated or
unauthenticated guest user -->
> <objectnode
classname="org.apache.slide.structure.SubjectNode" uri="/users/guest">
> <revision>
> <property
namespace="http://jakarta.apache.org/slide/"
name="password">guest</property>
> </revision>
> </objectnode>
> <objectnode
classname="org.apache.slide.structure.SubjectNode" uri="/users/projector">
> <revision>
> <property
namespace="http://jakarta.apache.org/slide/"
name="password">projector</property>
> </revision>
> </objectnode>
> </objectnode>
> <!-- /roles -->
> <objectnode
classname="org.apache.slide.structure.SubjectNode" uri="/roles">
> <!-- Make sure the subject here is a valid
LDAP group -->
> <permission action="all" subject="self"
inheritable="true"/>
> <permission action="all" subject="/roles/projector"
inheritable="true"/>
> <permission action="all" subject="unauthenticated"
inheritable="true" negative="true"/>
> <objectnode
classname="org.apache.slide.structure.SubjectNode" uri="/roles/root">
> <revision>
> <property
name="group-member-set"><![CDATA[<D:href
xmlns:D='DAV:'>/users/root</D:href>]]></property>
> </revision>
> </objectnode>
> <objectnode
classname="org.apache.slide.structure.SubjectNode" uri="/roles/user">
> <revision>
> <property
name="group-member-set"><![CDATA[<D:href
xmlns:D='DAV:'>/users/john</D:href><D:href
xmlns:D='DAV:'>/users/john2</D:href><D:href
xmlns:D='DAV:'>/users/root</D:href><D:href
xmlns:D='DAV:'>/users/projector</D:href>]]></property>
> </revision>
> </objectnode>
> <objectnode
classname="org.apache.slide.structure.SubjectNode" uri="/roles/guest">
> <revision>
> <property
name="group-member-set"><![CDATA[<D:href
xmlns:D='DAV:'>/users/guest</D:href>]]></property>
> </revision>
> </objectnode>
> <objectnode
classname="org.apache.slide.structure.SubjectNode" uri="/roles/projector">
> <revision>
> <property
name="group-member-set"><![CDATA[<D:href
xmlns:D='DAV:'>/users/root</D:href><D:href
xmlns:D='DAV:'>/users/projector</D:href>]]></property>
> </revision>
> </objectnode>
> </objectnode>
> <!-- action -->
> <objectnode
classname="org.apache.slide.structure.ActionNode" uri="/actions">
> <objectnode
classname="org.apache.slide.structure.ActionNode" uri="/actions/read">
> <revision>
> <property
name="privilege-member-set"><![CDATA[<D:href
xmlns:D='DAV:'>/actions/read-acl</D:href> <D:href
xmlns:D='DAV:'>/actions/read-current-user-privilege-set</D:href>]]></propert
y>
> </revision>
> </objectnode>
> <objectnode
classname="org.apache.slide.structure.ActionNode" uri="/actions/read-acl">
> <revision>
> <property name="privilege-member-set"/>
> </revision>
> </objectnode>
> <objectnode
classname="org.apache.slide.structure.ActionNode"
uri="/actions/read-current-user-privilege-set">
> <revision>
> <property name="privilege-member-set"/>
> </revision>
> </objectnode>
> <objectnode
classname="org.apache.slide.structure.ActionNode" uri="/actions/write">
> <revision>
> <property
name="privilege-member-set"><![CDATA[<D:href
xmlns:D='DAV:'>/actions/write-acl</D:href> <D:href
xmlns:D='DAV:'>/actions/write-properties</D:href> <D:href
xmlns:D='DAV:'>/actions/write-content</D:href>]]></property>
> </revision>
> </objectnode>
> <objectnode
classname="org.apache.slide.structure.ActionNode" uri="/actions/write-acl">
> <revision>
> <property name="privilege-member-set"/>
> </revision>
> </objectnode>
> <objectnode
classname="org.apache.slide.structure.ActionNode"
uri="/actions/write-properties">
> <revision>
> <property name="privilege-member-set"/>
> </revision>
> </objectnode>
> <objectnode
classname="org.apache.slide.structure.ActionNode"
uri="/actions/write-content">
> <revision>
> <property
name="privilege-member-set"><![CDATA[<D:href
xmlns:D='DAV:'>/actions/bind</D:href> <D:href
xmlns:D='DAV:'>/actions/unbind</D:href>]]></property>
> </revision>
> </objectnode>
> <objectnode
classname="org.apache.slide.structure.ActionNode" uri="/actions/bind">
> <revision>
> <property name="privilege-member-set"/>
> </revision>
> </objectnode>
> <objectnode
classname="org.apache.slide.structure.ActionNode" uri="/actions/unbind">
> <revision>
> <property name="privilege-member-set"/>
> </revision>
> </objectnode>
> <objectnode
classname="org.apache.slide.structure.ActionNode" uri="/actions/unlock">
> <revision>
> <property name="privilege-member-set"/>
> </revision>
> </objectnode>
> </objectnode>
> <objectnode
classname="org.apache.slide.structure.SubjectNode" uri="/files">
> <!-- Make sure the subject here is a valid
LDAP group -->
> <permission action="all" subject="unauthenticated"
inheritable="true"/>
> <permission action="/actions/write"
subject="/roles/user" inheritable="true"/>
> <permission action="/actions/read-acl" subject="owner"
inheritable="true"/>
> </objectnode>
> <objectnode
classname="org.apache.slide.structure.SubjectNode" uri="/projector">
> <!-- Make sure the subject here is a valid
LDAP group -->
> <permission action="all" subject="unauthenticated"
inheritable="true"/>
> <permission action="/actions/write"
subject="/roles/projector" inheritable="true"/>
> <permission action="/actions/read-acl" subject="owner"
inheritable="true"/>
> <objectnode
classname="org.apache.slide.structure.SubjectNode" uri="/projector/work">
> </objectnode>
> </objectnode>
> <!-- DeltaV: default history and workspace paths -->
> <objectnode
classname="org.apache.slide.structure.SubjectNode" uri="/history">
> <!-- Make sure the subject here is a valid
LDAP group -->
> <permission action="all" subject="unauthenticated"
inheritable="true"/>
> <permission action="/actions/write"
subject="/roles/user" inheritable="true"/>
> <permission action="/actions/read-acl" subject="owner"
inheritable="true"/>
> </objectnode>
> <objectnode
classname="org.apache.slide.structure.SubjectNode" uri="/workspace">
> <!-- Make sure the subject here is a valid
LDAP group -->
> <permission action="all" subject="unauthenticated"
inheritable="true"/>
> <permission action="/actions/write"
subject="/roles/user" inheritable="true"/>
> <permission action="/actions/read-acl" subject="owner"
inheritable="true"/>
> </objectnode>
> <objectnode
classname="org.apache.slide.structure.SubjectNode" uri="/workingresource">
> <!-- Make sure the subject here is a valid
LDAP group -->
> <permission action="all" subject="unauthenticated"
inheritable="true"/>
> <permission action="/actions/write"
subject="/roles/user" inheritable="true"/>
> <permission action="/actions/read-acl" subject="owner"
inheritable="true"/>
> </objectnode>
> </objectnode>
> </data>
> </namespace>
> <!--
> DeltaV global parameters
> ========================
> * historypath (mandatory=no, default="/history"):
> Specifies a Slide path which determines the location where this DeltaV
> server stores history data.
>
> * workspacepath (mandatory=no, default="/workspace"):
> Specifies a Slide path which determines the location where this DeltaV
> server allows workspaces to reside.
>
> * workingresourcepath (mandatory=no, default="/workingresource"):
> Specifies a Slide path which determines the location where this DeltaV
> server stores working resources.
>
> * auto-version (mandatory=no, default="checkout-checkin"):
> Controls the DeltaV auto-version behaviour.
>
> * auto-version-control (mandatory=no, default="false"):
> Indicates if a resource just created by a PUT should be set under
> version-control.
>
> * versioncontrol-exclude (mandatory=no, default=""):
> Specifies a Slide path which determines resources which are excluded
from version-control.
> The default value "" makes no path being excluded.
>
> * checkout-fork (mandatory=no, default="forbidden"):
> Controls the DeltaV check-out behaviour when a version is already
> checked-out or has a successor.
>
> * checkin-fork (mandatory=no, default="forbidden"):
> Controls the DeltaV check-out behaviour when a version has already a
> successor.
>
> * standardLivePropertiesClass (mandatory=no,
>
default="org.apache.slide.webdav.util.resourcekind.AbstractResourceKind"):
> Determines the "agent" knowing about what the standard live properties
are.
> It should be a loadable class containing the following static methods:
> - boolean isLiveProperty(String propName)
> - boolean isProtectedProperty(String propName)
> - boolean isComputedProperty(String propName)
> - Set getAllLiveProperties()
> - Set getAllProtectedProperties()
> - Set getAllComputedProperties()
>
> * uriRedirectorClass (mandatory=no,
> default="org.apache.slide.webdav.util.DeltavUriRedirector"):
> Determines the URI redirector class. The DeltaV URI redirector is in
> charge of the following redirections:
> - version URI to history URI, e.g. /history/2/1.4 to /history/2
> - latest revision number for history resource to 0.0
> - latest revision number for version resource to last URI token,
> e.g. /history/2/1.4 to 1.4
> It should be a loadable class containing the following static methods:
> - String redirectUri(String uri)
> - NodeRevisionNumber redirectLatestRevisionNumber(String uri)
> -->
> <parameter name="historypath">/history</parameter>
> <parameter name="workspacepath">/workspace</parameter>
> <parameter name="workingresourcepath">/workingresource</parameter>
> <parameter name="auto-version">checkout-checkin</parameter>
> <parameter name="auto-version-control">true</parameter>
> <parameter name="versioncontrol-exclude"/>
> <parameter name="checkout-fork">forbidden</parameter>
> <parameter name="checkin-fork">forbidden</parameter>
>
>
> <!-- Extractor configuration -->
> <extractors>
> <extractor
classname="org.apache.slide.extractor.SimpleXmlExtractor"
uri="/files/articles/test.xml">
> <configuration>
> <instruction property="title"
xpath="/article/title/text()" />
> <instruction property="summary"
xpath="/article/summary/text()" />
> </configuration>
> </extractor>
> <extractor classname="org.apache.slide.extractor.OfficeExtractor"
uri="/files/docs/">
> <configuration>
> <instruction property="author" id="SummaryInformation-0-4"
/>
> <instruction property="application"
id="SummaryInformation-0-18" />
> </configuration>
> </extractor>
> </extractors>
>
> <!-- Event configuration -->
> <events>
> <event classname="org.apache.slide.webdav.event.WebdavEvent"
enable="true" />
> <event classname="org.apache.slide.event.ContentEvent"
enable="true" />
> <event classname="org.apache.slide.event.ContentEvent"
method="retrieve" enable="false" />
> <event classname="org.apache.slide.event.EventCollection"
enable="true" />
> <event classname="org.apache.slide.event.TransactionEvent"
enable="true" />
>
> <event classname="org.apache.slide.event.MacroEvent"
enable="true"/>
>
> <!--listener classname="org.apache.slide.util.event.EventLogger"
/-->
> <listener
classname="org.apache.slide.event.VetoableEventCollector" />
> <listener
classname="org.apache.slide.event.TransientEventCollector" />
> <listener
classname="org.apache.slide.webdav.event.NotificationTrigger">
> <configuration>
> <notification include-events="false" />
> <persist-subscriptions filename="subscriptions.xml" />
> </configuration>
> </listener>
> <listener
classname="org.apache.slide.extractor.PropertyExtractorTrigger" />
> <listener classname="org.apache.slide.search.IndexTrigger">
> <configuration>
> <indexer
classname="org.apache.slide.search.LoggingIndexer" synchronous="false"
uri="/files/articles" />
> </configuration>
> </listener>
>
> <!-- Uncomment for cluster support. Be sure to local-host
and repository-host -->
> <!--
> <listener
classname="org.apache.slide.cluster.ClusterCacheRefresher">
> <configuration>
> <node local-host="local.host.domain"
> local-port="4444"
>
repository-host="remote.host.domain"
> repository-port="8080"
> repository-protocol="http"
> username="root"
> password="root"
> base-uri="/files/"
> />
> </configuration>
> </listener>
> -->
>
> <listener classname="org.apache.slide.macro.MacroPropertyUpdater">
> <!-- Listener that updates some properties if resources are
> copied or moved. This requires MacroEvents enabled (at
> least methods copy and move) -->
> <configuration>
> <update-displayname>true</update-displayname>
> <update-owner-on-move>false</update-owner-on-move>
> <update-owner-on-copy>true</update-owner-on-copy>
> </configuration>
> </listener>
> </events>
> </slide>
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: ldap configuration
Posted by James Mason <ma...@apache.org>.
Miguel,
This problem cropped up in 2.1b1. I'm not sure what causes it (something
changed with the TxFile stores) and I was too lazy to track it down :).
If you grab the latest code from CVS the JNDIPrincipalStore now
implements SecurityStore and LockStore so that you don't have configure
a separate store. The implementations are empty, so you can't actually
set ACLs or LOCK resources inside the Store.
With your current version you might try using the Memory stores for
security and locks. That would be a quicker fix and should work fine.
-James
Miguel Figueiredo wrote:
> Hello folks,
>
> I've been trying to configure slide to use an ldap server for authentication
> purposes.
> I've been successful at that, but with a cost of an annoying null pointer
> exception when tomcat is starting up:
>
> org.apache.slide.common.ServiceAccessException: Service
> TxXMLFileDescriptorsStore at users/store/metadata working on us
> ers/work/metadata access error : java.lang.NullPointerException
> at
> org.apache.slide.store.txfile.AbstractXMLResourceDescriptor.encodeObje
> ct(AbstractXMLResourceDescriptor.java:662)
>
> My current setup is the tomcat 5.0.19 / slide 2.1b1 bundle with the attached
> domain.xml file.
>
> I suspect that it works well because JNDIPrincipalStore is read-only, so,
> maybe it wouldn't need it's corresponding working directory, to witch this
> exception relates to. Or perhaps I still didn't found any problem witch
> shall occur more soon than later...
>
> Does slide use the 'users working directory' in any of its use-cases? Am I
> doing something wrong in the Domain.xml file?
>
>
> Thanks in advance,
> Miguel Figueiredo
>
>
>
>
>
> ------------------------------------------------------------------------
>
> <?xml version="1.0"?>
> <slide>
> <namespace name="slide">
> <definition>
> <store name="tx">
> <parameter name="tlock-timeout">120</parameter>
> <nodestore classname="org.apache.slide.store.txfile.TxXMLFileDescriptorsStore">
> <parameter name="rootpath">main/store/metadata</parameter>
> <parameter name="workpath">main/work/metadata</parameter>
> <parameter name="defer-saving">true</parameter>
> <parameter name="timeout">120</parameter>
> </nodestore>
> <sequencestore classname="org.apache.slide.store.txfile.FileSequenceStore">
> <parameter name="rootpath">main/store/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="rootpath">main/store/content</parameter>
> <parameter name="workpath">main/work/content</parameter>
> <parameter name="defer-saving">true</parameter>
> <parameter name="timeout">120</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>
>
>
> <store name="users">
> <nodestore classname="org.apache.slide.store.txjndi.JNDIPrincipalStore">
> <parameter name="jndi.container">ou=people,dc=dominio,dc=pt</parameter>
> <parameter name="jndi.attributes.rdn">uid</parameter>
> <parameter name="jndi.search.filter">(objectClass=inetOrgPerson)</parameter>
> <parameter name="jndi.search.scope">ONELEVEL_SCOPE</parameter>
> <parameter name="jndi.search.attributes">postalCode,initials,givenName,uid,mail,fullName,telephoneNumber,title,facsimileTelephoneNumber,groupMembership,l,sn,cn</parameter>
> <parameter name="java.naming.provider.url">ldap://miguel-desktop:389</parameter>
> <parameter name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</parameter>
> <parameter name="java.naming.security.principal">cn=Manager,dc=dominio,dc=pt</parameter>
> <parameter name="java.naming.security.authentication">simple</parameter>
> <parameter name="java.naming.security.credentials">segredo</parameter>
>
>
> <parameter name="cache.refresh.checkrate">15</parameter>
> <parameter name="cache.refresh.rate">800</parameter>
> <parameter name="cache.refresh.threshold">15000</parameter>
>
>
>
>
> </nodestore>
> <!-- Use a Tx Store to store security and lock information -->
> <securitystore classname="org.apache.slide.store.txfile.TxXMLFileDescriptorsStore">
> <parameter name="rootpath">users/store/metadata</parameter>
> <parameter name="workpath">users/work/metadata</parameter>
> </securitystore>
> <lockstore>
> <reference store="securitystore"/>
> </lockstore>
> <revisiondescriptorsstore>
> <reference store="nodestore"/>
> </revisiondescriptorsstore>
> <revisiondescriptorstore>
> <reference store="nodestore"/>
> </revisiondescriptorstore>
> <contentstore>
> <reference store="nodestore"/>
> </contentstore>
> </store>
>
> <!-- Use a JNDIPrincipalStore for roles -->
> <store name="roles">
> <nodestore classname="org.apache.slide.store.txjndi.JNDIPrincipalStore">
> <parameter name="jndi.container">ou=groups,dc=dominio,dc=pt</parameter>
> <parameter name="jndi.attributes.rdn">cn</parameter>
> <parameter name="jndi.attributes.groupmemberset">uniqueMember</parameter>
> <parameter name="jndi.search.filter">(objectClass=groupOfUniqueNames)</parameter>
> <parameter name="jndi.search.scope">ONELEVEL_SCOPE</parameter>
> <parameter name="jndi.search.attributes">cn</parameter>
> <parameter name="java.naming.provider.url">ldap://miguel-desktop:389</parameter>
> <parameter name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</parameter>
> <parameter name="java.naming.security.principal">cn=Manager,dc=dominio,dc=pt</parameter>
> <parameter name="java.naming.security.authentication">simple</parameter>
> <parameter name="java.naming.security.credentials">segredo</parameter>
>
>
>
> <parameter name="cache.refresh.checkrate">15</parameter>
> <parameter name="cache.refresh.rate">800</parameter>
> <parameter name="cache.refresh.threshold">15000</parameter>
>
>
> </nodestore>
> <!-- Use a Tx Store to store security and lock information -->
> <securitystore classname="org.apache.slide.store.txfile.TxXMLFileDescriptorsStore">
> <parameter name="rootpath">roles/store/metadata</parameter>
> <parameter name="workpath">roles/work/metadata</parameter>
> </securitystore>
> <lockstore>
> <reference store="securitystore"/>
> </lockstore>
> <revisiondescriptorsstore>
> <reference store="nodestore"/>
> </revisiondescriptorsstore>
> <revisiondescriptorstore>
> <reference store="nodestore"/>
> </revisiondescriptorstore>
> <contentstore>
> <reference store="nodestore"/>
> </contentstore>
> </store>
>
>
>
> <scope match="/" store="tx"/>
> <scope match="/users" store="users"/>
> <scope match="/roles" store="roles"/>
> </definition>
> <configuration>
>
> <parameter name="history-collection-hack">true</parameter>
>
> <!-- 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-permissions>
> <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-metadata>
> <modify-revision-metadata>/actions/write-properties</modify-revision-metadata>
> <remove-revision-metadata>/actions/write-properties</remove-revision-metadata>
> <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="dav">true</parameter>
> <parameter name="standalone">true</parameter>
> <parameter name="acl_inheritance_type">path</parameter>
> <!-- Nested roles: 0 means no nesting (default), 1 means one sublevel, etc. -->
> <parameter name="nested_roles_maxdepth">0</parameter>
> <!-- Can be "off", "write" and "full" -->
> <parameter name="sequential-mode">full</parameter>
> <!-- "false" lets all read-only methods be executed outside of transactions -->
> <parameter name="all-methods-in-transactions">true</parameter>
> </configuration>
> <data>
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/">
> <!-- Subject can be:
> any user "all"
> authenticated user "authenticated"
> unauthenticated user "unauthenticated"
> self "self"
> owner of resource "owner"
> a user "/users/john"
> a role "/roles/admin"
> -->
> <!-- Make sure the subject here is a valid LDAP group -->
> <permission action="all" subject="/roles/root" inheritable="true"/>
> <permission action="/actions/read-acl" subject="all" inheritable="true" negative="true"/>
> <permission action="/actions/write-acl" subject="all" inheritable="true" negative="true"/>
> <permission action="/actions/unlock" subject="all" inheritable="true" negative="true"/>
> <permission action="/actions/read" subject="all" inheritable="true"/>
> <!-- /users -->
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/users">
> <!-- Make sure the subject here is a valid LDAP group -->
> <permission action="all" subject="self" inheritable="true"/>
> <permission action="all" subject="/roles/projector" inheritable="true"/>
> <permission action="all" subject="unauthenticated" inheritable="true" negative="true"/>
> <!-- /users/root represents the administrator -->
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/users/root">
> <revision>
> <property namespace="http://jakarta.apache.org/slide/" name="password">root</property>
> </revision>
> </objectnode>
> <!-- /users/john and /users/john2 represent authenticated users -->
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/users/john">
> <revision>
> <property namespace="http://jakarta.apache.org/slide/" name="password">john</property>
> </revision>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/users/john2">
> <revision>
> <property namespace="http://jakarta.apache.org/slide/" name="password">john2</property>
> </revision>
> </objectnode>
> <!-- /users/guest represents an authenticated or unauthenticated guest user -->
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/users/guest">
> <revision>
> <property namespace="http://jakarta.apache.org/slide/" name="password">guest</property>
> </revision>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/users/projector">
> <revision>
> <property namespace="http://jakarta.apache.org/slide/" name="password">projector</property>
> </revision>
> </objectnode>
> </objectnode>
> <!-- /roles -->
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/roles">
> <!-- Make sure the subject here is a valid LDAP group -->
> <permission action="all" subject="self" inheritable="true"/>
> <permission action="all" subject="/roles/projector" inheritable="true"/>
> <permission action="all" subject="unauthenticated" inheritable="true" negative="true"/>
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/roles/root">
> <revision>
> <property name="group-member-set"><![CDATA[<D:href xmlns:D='DAV:'>/users/root</D:href>]]></property>
> </revision>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/roles/user">
> <revision>
> <property name="group-member-set"><![CDATA[<D:href xmlns:D='DAV:'>/users/john</D:href><D:href xmlns:D='DAV:'>/users/john2</D:href><D:href xmlns:D='DAV:'>/users/root</D:href><D:href xmlns:D='DAV:'>/users/projector</D:href>]]></property>
> </revision>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/roles/guest">
> <revision>
> <property name="group-member-set"><![CDATA[<D:href xmlns:D='DAV:'>/users/guest</D:href>]]></property>
> </revision>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/roles/projector">
> <revision>
> <property name="group-member-set"><![CDATA[<D:href xmlns:D='DAV:'>/users/root</D:href><D:href xmlns:D='DAV:'>/users/projector</D:href>]]></property>
> </revision>
> </objectnode>
> </objectnode>
> <!-- action -->
> <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions">
> <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/read">
> <revision>
> <property name="privilege-member-set"><![CDATA[<D:href xmlns:D='DAV:'>/actions/read-acl</D:href> <D:href xmlns:D='DAV:'>/actions/read-current-user-privilege-set</D:href>]]></property>
> </revision>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/read-acl">
> <revision>
> <property name="privilege-member-set"/>
> </revision>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/read-current-user-privilege-set">
> <revision>
> <property name="privilege-member-set"/>
> </revision>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/write">
> <revision>
> <property name="privilege-member-set"><![CDATA[<D:href xmlns:D='DAV:'>/actions/write-acl</D:href> <D:href xmlns:D='DAV:'>/actions/write-properties</D:href> <D:href xmlns:D='DAV:'>/actions/write-content</D:href>]]></property>
> </revision>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/write-acl">
> <revision>
> <property name="privilege-member-set"/>
> </revision>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/write-properties">
> <revision>
> <property name="privilege-member-set"/>
> </revision>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/write-content">
> <revision>
> <property name="privilege-member-set"><![CDATA[<D:href xmlns:D='DAV:'>/actions/bind</D:href> <D:href xmlns:D='DAV:'>/actions/unbind</D:href>]]></property>
> </revision>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/bind">
> <revision>
> <property name="privilege-member-set"/>
> </revision>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/unbind">
> <revision>
> <property name="privilege-member-set"/>
> </revision>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/unlock">
> <revision>
> <property name="privilege-member-set"/>
> </revision>
> </objectnode>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/files">
> <!-- Make sure the subject here is a valid LDAP group -->
> <permission action="all" subject="unauthenticated" inheritable="true"/>
> <permission action="/actions/write" subject="/roles/user" inheritable="true"/>
> <permission action="/actions/read-acl" subject="owner" inheritable="true"/>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/projector">
> <!-- Make sure the subject here is a valid LDAP group -->
> <permission action="all" subject="unauthenticated" inheritable="true"/>
> <permission action="/actions/write" subject="/roles/projector" inheritable="true"/>
> <permission action="/actions/read-acl" subject="owner" inheritable="true"/>
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/projector/work">
> </objectnode>
> </objectnode>
> <!-- DeltaV: default history and workspace paths -->
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/history">
> <!-- Make sure the subject here is a valid LDAP group -->
> <permission action="all" subject="unauthenticated" inheritable="true"/>
> <permission action="/actions/write" subject="/roles/user" inheritable="true"/>
> <permission action="/actions/read-acl" subject="owner" inheritable="true"/>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/workspace">
> <!-- Make sure the subject here is a valid LDAP group -->
> <permission action="all" subject="unauthenticated" inheritable="true"/>
> <permission action="/actions/write" subject="/roles/user" inheritable="true"/>
> <permission action="/actions/read-acl" subject="owner" inheritable="true"/>
> </objectnode>
> <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/workingresource">
> <!-- Make sure the subject here is a valid LDAP group -->
> <permission action="all" subject="unauthenticated" inheritable="true"/>
> <permission action="/actions/write" subject="/roles/user" inheritable="true"/>
> <permission action="/actions/read-acl" subject="owner" inheritable="true"/>
> </objectnode>
> </objectnode>
> </data>
> </namespace>
> <!--
> DeltaV global parameters
> ========================
> * historypath (mandatory=no, default="/history"):
> Specifies a Slide path which determines the location where this DeltaV
> server stores history data.
>
> * workspacepath (mandatory=no, default="/workspace"):
> Specifies a Slide path which determines the location where this DeltaV
> server allows workspaces to reside.
>
> * workingresourcepath (mandatory=no, default="/workingresource"):
> Specifies a Slide path which determines the location where this DeltaV
> server stores working resources.
>
> * auto-version (mandatory=no, default="checkout-checkin"):
> Controls the DeltaV auto-version behaviour.
>
> * auto-version-control (mandatory=no, default="false"):
> Indicates if a resource just created by a PUT should be set under
> version-control.
>
> * versioncontrol-exclude (mandatory=no, default=""):
> Specifies a Slide path which determines resources which are excluded from version-control.
> The default value "" makes no path being excluded.
>
> * checkout-fork (mandatory=no, default="forbidden"):
> Controls the DeltaV check-out behaviour when a version is already
> checked-out or has a successor.
>
> * checkin-fork (mandatory=no, default="forbidden"):
> Controls the DeltaV check-out behaviour when a version has already a
> successor.
>
> * standardLivePropertiesClass (mandatory=no,
> default="org.apache.slide.webdav.util.resourcekind.AbstractResourceKind"):
> Determines the "agent" knowing about what the standard live properties are.
> It should be a loadable class containing the following static methods:
> - boolean isLiveProperty(String propName)
> - boolean isProtectedProperty(String propName)
> - boolean isComputedProperty(String propName)
> - Set getAllLiveProperties()
> - Set getAllProtectedProperties()
> - Set getAllComputedProperties()
>
> * uriRedirectorClass (mandatory=no,
> default="org.apache.slide.webdav.util.DeltavUriRedirector"):
> Determines the URI redirector class. The DeltaV URI redirector is in
> charge of the following redirections:
> - version URI to history URI, e.g. /history/2/1.4 to /history/2
> - latest revision number for history resource to 0.0
> - latest revision number for version resource to last URI token,
> e.g. /history/2/1.4 to 1.4
> It should be a loadable class containing the following static methods:
> - String redirectUri(String uri)
> - NodeRevisionNumber redirectLatestRevisionNumber(String uri)
> -->
> <parameter name="historypath">/history</parameter>
> <parameter name="workspacepath">/workspace</parameter>
> <parameter name="workingresourcepath">/workingresource</parameter>
> <parameter name="auto-version">checkout-checkin</parameter>
> <parameter name="auto-version-control">true</parameter>
> <parameter name="versioncontrol-exclude"/>
> <parameter name="checkout-fork">forbidden</parameter>
> <parameter name="checkin-fork">forbidden</parameter>
>
>
> <!-- Extractor configuration -->
> <extractors>
> <extractor classname="org.apache.slide.extractor.SimpleXmlExtractor" uri="/files/articles/test.xml">
> <configuration>
> <instruction property="title" xpath="/article/title/text()" />
> <instruction property="summary" xpath="/article/summary/text()" />
> </configuration>
> </extractor>
> <extractor classname="org.apache.slide.extractor.OfficeExtractor" uri="/files/docs/">
> <configuration>
> <instruction property="author" id="SummaryInformation-0-4" />
> <instruction property="application" id="SummaryInformation-0-18" />
> </configuration>
> </extractor>
> </extractors>
>
> <!-- Event configuration -->
> <events>
> <event classname="org.apache.slide.webdav.event.WebdavEvent" enable="true" />
> <event classname="org.apache.slide.event.ContentEvent" enable="true" />
> <event classname="org.apache.slide.event.ContentEvent" method="retrieve" enable="false" />
> <event classname="org.apache.slide.event.EventCollection" enable="true" />
> <event classname="org.apache.slide.event.TransactionEvent" enable="true" />
>
> <event classname="org.apache.slide.event.MacroEvent" enable="true"/>
>
> <!--listener classname="org.apache.slide.util.event.EventLogger" /-->
> <listener classname="org.apache.slide.event.VetoableEventCollector" />
> <listener classname="org.apache.slide.event.TransientEventCollector" />
> <listener classname="org.apache.slide.webdav.event.NotificationTrigger">
> <configuration>
> <notification include-events="false" />
> <persist-subscriptions filename="subscriptions.xml" />
> </configuration>
> </listener>
> <listener classname="org.apache.slide.extractor.PropertyExtractorTrigger" />
> <listener classname="org.apache.slide.search.IndexTrigger">
> <configuration>
> <indexer classname="org.apache.slide.search.LoggingIndexer" synchronous="false" uri="/files/articles" />
> </configuration>
> </listener>
>
> <!-- Uncomment for cluster support. Be sure to local-host and repository-host -->
> <!--
> <listener classname="org.apache.slide.cluster.ClusterCacheRefresher">
> <configuration>
> <node local-host="local.host.domain"
> local-port="4444"
> repository-host="remote.host.domain"
> repository-port="8080"
> repository-protocol="http"
> username="root"
> password="root"
> base-uri="/files/"
> />
> </configuration>
> </listener>
> -->
>
> <listener classname="org.apache.slide.macro.MacroPropertyUpdater">
> <!-- Listener that updates some properties if resources are
> copied or moved. This requires MacroEvents enabled (at
> least methods copy and move) -->
> <configuration>
> <update-displayname>true</update-displayname>
> <update-owner-on-move>false</update-owner-on-move>
> <update-owner-on-copy>true</update-owner-on-copy>
> </configuration>
> </listener>
> </events>
> </slide>
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
RE: ldap configuration
Posted by Miguel Figueiredo <mf...@maisis.pt>.
Sorry for the spam, my mail client was unsynchronized.
-----Original Message-----
From: Miguel Figueiredo [mailto:mfigueiredo@maisis.pt]
Sent: quarta-feira, 15 de Setembro de 2004 17:32
To: 'Slide Users Mailing List'
Subject: RE: ldap configuration
Hello Stefan,
Using the JBDC store did not solve the problem. Instead of a null pointer
exception, I get the following errors:
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter - ERROR - Failed to
insert permission (/roles,self,all)
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter - ERROR - Failed to
insert permission (/roles,/roles/projector,all)
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter - ERROR - Failed to
insert permission (/roles,unauthenticated,all)
I've re-examined the null pointer exception stack of the txfile store, and
found out that the error also occurs when setting some kind of permissions.
Removing the <data> tag from the domain.xml prevents the error. I've
concluded that the error occurs only on the security and lock stores
configured inside the JNDIPrincipalStore, for roles and users alike (I get a
similar error but for the /users path), and when slide is trying to execute
the following directives of the domain.xml file, inside the <data> element:
<objectnode classname="org.apache.slide.structure.SubjectNode" uri="/roles">
<permission action="all" subject="self" inheritable="true"/>
<permission action="all" subject="/roles/projector"
inheritable="true"/>
<permission action="all" subject="unauthenticated"
inheritable="true" negative="true"/>
...
</objectnode>
Anyway, the good news is that, when examining the ACL permissions with a
IExplorer (with directory-browsing-hide-acl = false), those same paths are
correctly configured with the presented domain.xml directives... weird...
Everything else seems to be working well.
Best regards,
Miguel
_____
Thank you Stefan!
I'll configure a JDBC store has the security & lock store (anyway, I wanted
to play with JDBC in my next experience set ;))
Best regards,
Miguel
______
Hello Miguel,
I'm also working with the JNDIPrincipalStore. I think the problem is the way
the file based stores are implemented. You have set the security and lock
store to be a file based store. Earlier I've tried to separate data of an
ExtendedStore by spreading it over 6 file based stores each using different
directories. It didn't work.
The error could lie in AbstractXMLResourceDescriptor.encodeObject() (if you
don't use an old version of Slide):
Element aElementObjectNode = new Element("objectnode");
if (object != null) {
aElementObjectNode.setAttribute("classname",
object.getClass().getName());
aElementObjectNode.setAttribute("uri", object.getUri());
if (object instanceof LinkNode) {
aElementObjectNode.setAttribute("linkTo", ((LinkNode)
object).getLinkedUri());
}
} else {
// for null locks
aElementObjectNode.setAttribute("classname", "null");
aElementObjectNode.setAttribute("uri", uri.toString());
}
aElementObjectNode.addContent(createBindings("children", "child",
object.enumerateBindings()));
aElementObjectNode.addContent(createBindings("parents", "parent",
object.enumerateParentBindings()));
aElementObjectNode.addContent(createElements("links", "link",
object.enumerateLinks()));
return aElementObjectNode;
First there is distinguished between an object being null or not. After that
there is always tried to access the child bindings of object - even if it's
null.
Try replacing your security and lock store by a JDBCStore. For me it works
that way.
Stefan
Am Tue, 14 Sep 2004 11:42:17 +0100 schrieb Miguel Figueiredo
<mf...@maisis.pt>:
>
> Hello folks,
>
> I've been trying to configure slide to use an ldap server for
authentication
> purposes.
> I've been successful at that, but with a cost of an annoying null pointer
> exception when tomcat is starting up:
>
> org.apache.slide.common.ServiceAccessException: Service
> TxXMLFileDescriptorsStore at users/store/metadata working on us
> ers/work/metadata access error : java.lang.NullPointerException
> at
> org.apache.slide.store.txfile.AbstractXMLResourceDescriptor.encodeObje
> ct(AbstractXMLResourceDescriptor.java:662)
>
> My current setup is the tomcat 5.0.19 / slide 2.1b1 bundle with the
attached
> domain.xml file.
>
> I suspect that it works well because JNDIPrincipalStore is read-only, so,
> maybe it wouldn't need it's corresponding working directory, to witch this
> exception relates to. Or perhaps I still didn't found any problem witch
> shall occur more soon than later...
>
> Does slide use the 'users working directory' in any of its use-cases? Am I
> doing something wrong in the Domain.xml file?
>
>
> Thanks in advance,
> Miguel Figueiredo
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
RE: ldap configuration
Posted by Miguel Figueiredo <mf...@maisis.pt>.
Hello Stefan,
Using the JBDC store did not solve the problem. Instead of a null pointer
exception, I get the following errors:
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter - ERROR - Failed to
insert permission (/roles,self,all)
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter - ERROR - Failed to
insert permission (/roles,/roles/projector,all)
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter - ERROR - Failed to
insert permission (/roles,unauthenticated,all)
I've re-examined the null pointer exception stack of the txfile store, and
found out that the error also occurs when setting some kind of permissions.
Removing the <data> tag from the domain.xml prevents the error. I've
concluded that the error occurs only on the security and lock stores
configured inside the JNDIPrincipalStore, for roles and users alike (I get a
similar error but for the /users path), and when slide is trying to execute
the following directives of the domain.xml file, inside the <data> element:
<objectnode classname="org.apache.slide.structure.SubjectNode" uri="/roles">
<permission action="all" subject="self" inheritable="true"/>
<permission action="all" subject="/roles/projector"
inheritable="true"/>
<permission action="all" subject="unauthenticated"
inheritable="true" negative="true"/>
...
</objectnode>
Anyway, the good news is that, when examining the ACL permissions with a
IExplorer (with directory-browsing-hide-acl = false), those same paths are
correctly configured with the presented domain.xml directives... weird...
Everything else seems to be working well.
Best regards,
Miguel
_____
Thank you Stefan!
I'll configure a JDBC store has the security & lock store (anyway, I wanted
to play with JDBC in my next experience set ;))
Best regards,
Miguel
______
Hello Miguel,
I'm also working with the JNDIPrincipalStore. I think the problem is the way
the file based stores are implemented. You have set the security and lock
store to be a file based store. Earlier I've tried to separate data of an
ExtendedStore by spreading it over 6 file based stores each using different
directories. It didn't work.
The error could lie in AbstractXMLResourceDescriptor.encodeObject() (if you
don't use an old version of Slide):
Element aElementObjectNode = new Element("objectnode");
if (object != null) {
aElementObjectNode.setAttribute("classname",
object.getClass().getName());
aElementObjectNode.setAttribute("uri", object.getUri());
if (object instanceof LinkNode) {
aElementObjectNode.setAttribute("linkTo", ((LinkNode)
object).getLinkedUri());
}
} else {
// for null locks
aElementObjectNode.setAttribute("classname", "null");
aElementObjectNode.setAttribute("uri", uri.toString());
}
aElementObjectNode.addContent(createBindings("children", "child",
object.enumerateBindings()));
aElementObjectNode.addContent(createBindings("parents", "parent",
object.enumerateParentBindings()));
aElementObjectNode.addContent(createElements("links", "link",
object.enumerateLinks()));
return aElementObjectNode;
First there is distinguished between an object being null or not. After that
there is always tried to access the child bindings of object - even if it's
null.
Try replacing your security and lock store by a JDBCStore. For me it works
that way.
Stefan
Am Tue, 14 Sep 2004 11:42:17 +0100 schrieb Miguel Figueiredo
<mf...@maisis.pt>:
>
> Hello folks,
>
> I've been trying to configure slide to use an ldap server for
authentication
> purposes.
> I've been successful at that, but with a cost of an annoying null pointer
> exception when tomcat is starting up:
>
> org.apache.slide.common.ServiceAccessException: Service
> TxXMLFileDescriptorsStore at users/store/metadata working on us
> ers/work/metadata access error : java.lang.NullPointerException
> at
> org.apache.slide.store.txfile.AbstractXMLResourceDescriptor.encodeObje
> ct(AbstractXMLResourceDescriptor.java:662)
>
> My current setup is the tomcat 5.0.19 / slide 2.1b1 bundle with the
attached
> domain.xml file.
>
> I suspect that it works well because JNDIPrincipalStore is read-only, so,
> maybe it wouldn't need it's corresponding working directory, to witch this
> exception relates to. Or perhaps I still didn't found any problem witch
> shall occur more soon than later...
>
> Does slide use the 'users working directory' in any of its use-cases? Am I
> doing something wrong in the Domain.xml file?
>
>
> Thanks in advance,
> Miguel Figueiredo
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: Webdav spec question - lock-null and collection
Posted by Stefan Eissing <st...@greenbytes.de>.
I think it should also be compatible when the lock on the collection is
exclusive, but has depth 0.
//Stefan
Am 16.09.2004 um 14:20 schrieb Stefan Lützkendorf:
>
> Julian Reschke wrote:
>
>> Stefan Lützkendorf wrote:
>>>
>>>> What does the spec say in relation to the following scenario:
>>>>
>>>> - You have a collection A that is locked. You create a lock-null
>>>> resouce
>>>> under A called foo.bar. Now, this has to be created using a LOCK
>>>> method
>>>> execution and you are likely to get a different token or the same
>>>> token as
>>>> the parent collection.
>>>
>>>
>>> I think you should not be able to create a lock-null resource under
>>> a locked
>>> collection.
>>> To work on a locked resource (e.g. to add a new member using MKCOL)
>>> you have to
>>> provide the locktoken in the If header. But with the LOCK method the
>>> If
>> Correct.
>>> header
>>> is used for refreshing locks (s. 7.8), so I would say you cant lock
>>> under a
>> That's only partly correct. You need the If header for LOCK refresh,
>> but that doesn't mean that any LOCK request with an If header is
>> indeed a refresh request.
>> And yes, that's how you would add a lock-null resource to a locked
>> collection. Note that this won't work unless the requested lock on
>> the child is compatible with the one on the parent collection (that
>> is, it's a shared lock).
> Ok, with shared lock it makes sense to use LOCK and If header. I'v
> never
> used shared locks and so I always think locks as exclusive.
> Have you ever found a real scenario where shared locks are usefull?
>
> Best regards,
> Stefan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: Webdav spec question - lock-null and collection
Posted by Julian Reschke <ju...@gmx.de>.
Stefan Lützkendorf wrote:
> Ok, with shared lock it makes sense to use LOCK and If header. I'v never
> used shared locks and so I always think locks as exclusive.
> Have you ever found a real scenario where shared locks are usefull?
Not really. I know that some Adobe clients use them, though.
Julian
--
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: Webdav spec question - lock-null and collection
Posted by Stefan Lützkendorf <lu...@apache.org>.
Julian Reschke wrote:
> Stefan Lützkendorf wrote:
>
>>
>>> What does the spec say in relation to the following scenario:
>>>
>>> - You have a collection A that is locked. You create a lock-null resouce
>>> under A called foo.bar. Now, this has to be created using a LOCK method
>>> execution and you are likely to get a different token or the same
>>> token as
>>> the parent collection.
>>
>>
>> I think you should not be able to create a lock-null resource under a
>> locked
>> collection.
>> To work on a locked resource (e.g. to add a new member using MKCOL)
>> you have to
>> provide the locktoken in the If header. But with the LOCK method the If
>
>
> Correct.
>
>> header
>> is used for refreshing locks (s. 7.8), so I would say you cant lock
>> under a
>
>
> That's only partly correct. You need the If header for LOCK refresh, but
> that doesn't mean that any LOCK request with an If header is indeed a
> refresh request.
>
> And yes, that's how you would add a lock-null resource to a locked
> collection. Note that this won't work unless the requested lock on the
> child is compatible with the one on the parent collection (that is, it's
> a shared lock).
>
Ok, with shared lock it makes sense to use LOCK and If header. I'v never
used shared locks and so I always think locks as exclusive.
Have you ever found a real scenario where shared locks are usefull?
Best regards,
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: Webdav spec question - lock-null and collection
Posted by Julian Reschke <ju...@gmx.de>.
Stefan Lützkendorf wrote:
>
>> What does the spec say in relation to the following scenario:
>>
>> - You have a collection A that is locked. You create a lock-null resouce
>> under A called foo.bar. Now, this has to be created using a LOCK method
>> execution and you are likely to get a different token or the same
>> token as
>> the parent collection.
>
> I think you should not be able to create a lock-null resource under a
> locked
> collection.
> To work on a locked resource (e.g. to add a new member using MKCOL) you
> have to
> provide the locktoken in the If header. But with the LOCK method the If
Correct.
> header
> is used for refreshing locks (s. 7.8), so I would say you cant lock under a
That's only partly correct. You need the If header for LOCK refresh, but
that doesn't mean that any LOCK request with an If header is indeed a
refresh request.
And yes, that's how you would add a lock-null resource to a locked
collection. Note that this won't work unless the requested lock on the
child is compatible with the one on the parent collection (that is, it's
a shared lock).
> ...
Best regards,
Julian
--
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: Webdav spec question - lock-null and collection
Posted by Stefan Lützkendorf <lu...@apache.org>.
kranga wrote:
> Hi,
> What does the spec say in relation to the following scenario:
>
> - You have a collection A that is locked. You create a lock-null resouce
> under A called foo.bar. Now, this has to be created using a LOCK method
> execution and you are likely to get a different token or the same token as
> the parent collection.
I think you should not be able to create a lock-null resource under a locked
collection.
To work on a locked resource (e.g. to add a new member using MKCOL) you have to
provide the locktoken in the If header. But with the LOCK method the If header
is used for refreshing locks (s. 7.8), so I would say you cant lock under a
locked resource. Thats clear for existing resource and I think it is valid
for Lock-Null resources to.
I'm not sure we have a test case that veriyfies that. I will have a look, ASAP.
>
> The webdav specs say that any child of a collection that is locked (by
> default with depth infinity) should also be automatically added to that
> lock. However, if you create it with the same locktoken as the parent, then
> an unlock on the parent collection will make the lock-null resource vanish,
> which may not be desirable. However, if you create it with a different
> lock-token, then it is against the spec that children of a locked collection
> should be part of that lock. So do you create multiple locks? One for the
> lock-token and one for the collection? In that case how do you honor a PUT
> or MKCOL on it? I think you can only specify one lock in the lock-token
> header??? What if you only support exclusive locks?
>
> Thanks
> K
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Webdav spec question - lock-null and collection
Posted by kranga <kr...@k2d2.org>.
Hi,
What does the spec say in relation to the following scenario:
- You have a collection A that is locked. You create a lock-null resouce
under A called foo.bar. Now, this has to be created using a LOCK method
execution and you are likely to get a different token or the same token as
the parent collection.
The webdav specs say that any child of a collection that is locked (by
default with depth infinity) should also be automatically added to that
lock. However, if you create it with the same locktoken as the parent, then
an unlock on the parent collection will make the lock-null resource vanish,
which may not be desirable. However, if you create it with a different
lock-token, then it is against the spec that children of a locked collection
should be part of that lock. So do you create multiple locks? One for the
lock-token and one for the collection? In that case how do you honor a PUT
or MKCOL on it? I think you can only specify one lock in the lock-token
header??? What if you only support exclusive locks?
Thanks
K
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
RE: ldap configuration
Posted by Miguel Figueiredo <mf...@maisis.pt>.
Hello Stefan,
Using the JBDC store did not solve the problem. Instead of a null pointer
exception, I get the following errors:
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter - ERROR - Failed to
insert permission (/roles,self,all)
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter - ERROR - Failed to
insert permission (/roles,/roles/projector,all)
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter - ERROR - Failed to
insert permission (/roles,unauthenticated,all)
I've re-examined the null pointer exception stack of the txfile store, and
found out that the error also occurs when setting some kind of permissions.
Removing the <data> tag from the domain.xml prevents the error. I've
concluded that the error occurs only on the security and lock stores
configured inside the JNDIPrincipalStore, for roles and users alike (I get a
similar error but for the /users path), and when slide is trying to execute
the following directives of the domain.xml file:
<objectnode classname="org.apache.slide.structure.SubjectNode" uri="/roles">
<permission action="all" subject="self" inheritable="true"/>
<permission action="all" subject="/roles/projector"
inheritable="true"/>
<permission action="all" subject="unauthenticated"
inheritable="true" negative="true"/>
...
</objectnode>
Anyway, the good news is that, when examining the ACL permissions with a
IExplorer (with directory-browsing-hide-acl = false), those same paths are
correctly configured with the presented domain.xml directives... weird...
Everything else seems to be working well.
Best regards,
Miguel
_____
Thank you Stefan!
I'll configure a JDBC store has the security & lock store (anyway, I wanted
to play with JDBC in my next experience set ;))
Best regards,
Miguel
______
Hello Miguel,
I'm also working with the JNDIPrincipalStore. I think the problem is the way
the file based stores are implemented. You have set the security and lock
store to be a file based store. Earlier I've tried to separate data of an
ExtendedStore by spreading it over 6 file based stores each using different
directories. It didn't work.
The error could lie in AbstractXMLResourceDescriptor.encodeObject() (if you
don't use an old version of Slide):
Element aElementObjectNode = new Element("objectnode");
if (object != null) {
aElementObjectNode.setAttribute("classname",
object.getClass().getName());
aElementObjectNode.setAttribute("uri", object.getUri());
if (object instanceof LinkNode) {
aElementObjectNode.setAttribute("linkTo", ((LinkNode)
object).getLinkedUri());
}
} else {
// for null locks
aElementObjectNode.setAttribute("classname", "null");
aElementObjectNode.setAttribute("uri", uri.toString());
}
aElementObjectNode.addContent(createBindings("children", "child",
object.enumerateBindings()));
aElementObjectNode.addContent(createBindings("parents", "parent",
object.enumerateParentBindings()));
aElementObjectNode.addContent(createElements("links", "link",
object.enumerateLinks()));
return aElementObjectNode;
First there is distinguished between an object being null or not. After that
there is always tried to access the child bindings of object - even if it's
null.
Try replacing your security and lock store by a JDBCStore. For me it works
that way.
Stefan
Am Tue, 14 Sep 2004 11:42:17 +0100 schrieb Miguel Figueiredo
<mf...@maisis.pt>:
>
> Hello folks,
>
> I've been trying to configure slide to use an ldap server for
authentication
> purposes.
> I've been successful at that, but with a cost of an annoying null pointer
> exception when tomcat is starting up:
>
> org.apache.slide.common.ServiceAccessException: Service
> TxXMLFileDescriptorsStore at users/store/metadata working on us
> ers/work/metadata access error : java.lang.NullPointerException
> at
> org.apache.slide.store.txfile.AbstractXMLResourceDescriptor.encodeObje
> ct(AbstractXMLResourceDescriptor.java:662)
>
> My current setup is the tomcat 5.0.19 / slide 2.1b1 bundle with the
attached
> domain.xml file.
>
> I suspect that it works well because JNDIPrincipalStore is read-only, so,
> maybe it wouldn't need it's corresponding working directory, to witch this
> exception relates to. Or perhaps I still didn't found any problem witch
> shall occur more soon than later...
>
> Does slide use the 'users working directory' in any of its use-cases? Am I
> doing something wrong in the Domain.xml file?
>
>
> Thanks in advance,
> Miguel Figueiredo
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
RE: ldap configuration
Posted by Miguel Figueiredo <mf...@maisis.pt>.
Thank you Stefan!
I'll configure a JDBC store has the security & lock store (anyway, I wanted
to play with JDBC in my next experience set ;))
Best regards,
Miguel
______
Hello Miguel,
I'm also working with the JNDIPrincipalStore. I think the problem is the way
the file based stores are implemented. You have set the security and lock
store to be a file based store. Earlier I've tried to separate data of an
ExtendedStore by spreading it over 6 file based stores each using different
directories. It didn't work.
The error could lie in AbstractXMLResourceDescriptor.encodeObject() (if you
don't use an old version of Slide):
Element aElementObjectNode = new Element("objectnode");
if (object != null) {
aElementObjectNode.setAttribute("classname",
object.getClass().getName());
aElementObjectNode.setAttribute("uri", object.getUri());
if (object instanceof LinkNode) {
aElementObjectNode.setAttribute("linkTo", ((LinkNode)
object).getLinkedUri());
}
} else {
// for null locks
aElementObjectNode.setAttribute("classname", "null");
aElementObjectNode.setAttribute("uri", uri.toString());
}
aElementObjectNode.addContent(createBindings("children", "child",
object.enumerateBindings()));
aElementObjectNode.addContent(createBindings("parents", "parent",
object.enumerateParentBindings()));
aElementObjectNode.addContent(createElements("links", "link",
object.enumerateLinks()));
return aElementObjectNode;
First there is distinguished between an object being null or not. After that
there is always tried to access the child bindings of object - even if it's
null.
Try replacing your security and lock store by a JDBCStore. For me it works
that way.
Stefan
Am Tue, 14 Sep 2004 11:42:17 +0100 schrieb Miguel Figueiredo
<mf...@maisis.pt>:
>
> Hello folks,
>
> I've been trying to configure slide to use an ldap server for
authentication
> purposes.
> I've been successful at that, but with a cost of an annoying null pointer
> exception when tomcat is starting up:
>
> org.apache.slide.common.ServiceAccessException: Service
> TxXMLFileDescriptorsStore at users/store/metadata working on us
> ers/work/metadata access error : java.lang.NullPointerException
> at
> org.apache.slide.store.txfile.AbstractXMLResourceDescriptor.encodeObje
> ct(AbstractXMLResourceDescriptor.java:662)
>
> My current setup is the tomcat 5.0.19 / slide 2.1b1 bundle with the
attached
> domain.xml file.
>
> I suspect that it works well because JNDIPrincipalStore is read-only, so,
> maybe it wouldn't need it's corresponding working directory, to witch this
> exception relates to. Or perhaps I still didn't found any problem witch
> shall occur more soon than later...
>
> Does slide use the 'users working directory' in any of its use-cases? Am I
> doing something wrong in the Domain.xml file?
>
>
> Thanks in advance,
> Miguel Figueiredo
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: ldap configuration
Posted by Stefan Fromm <sf...@inf.tu-dresden.de>.
Hello Miguel,
I'm also working with the JNDIPrincipalStore. I think the problem is the way the file based stores are implemented. You have set the security and lock store to be a file based store. Earlier I've tried to separate data of an ExtendedStore by spreading it over 6 file based stores each using different directories. It didn't work.
The error could lie in AbstractXMLResourceDescriptor.encodeObject() (if you don't use an old version of Slide):
Element aElementObjectNode = new Element("objectnode");
if (object != null) {
aElementObjectNode.setAttribute("classname", object.getClass().getName());
aElementObjectNode.setAttribute("uri", object.getUri());
if (object instanceof LinkNode) {
aElementObjectNode.setAttribute("linkTo", ((LinkNode) object).getLinkedUri());
}
} else {
// for null locks
aElementObjectNode.setAttribute("classname", "null");
aElementObjectNode.setAttribute("uri", uri.toString());
}
aElementObjectNode.addContent(createBindings("children", "child", object.enumerateBindings()));
aElementObjectNode.addContent(createBindings("parents", "parent", object.enumerateParentBindings()));
aElementObjectNode.addContent(createElements("links", "link", object.enumerateLinks()));
return aElementObjectNode;
First there is distinguished between an object being null or not. After that there is always tried to access the child bindings of object - even if it's null.
Try replacing your security and lock store by a JDBCStore. For me it works that way.
Stefan
Am Tue, 14 Sep 2004 11:42:17 +0100 schrieb Miguel Figueiredo <mf...@maisis.pt>:
>
> Hello folks,
>
> I've been trying to configure slide to use an ldap server for authentication
> purposes.
> I've been successful at that, but with a cost of an annoying null pointer
> exception when tomcat is starting up:
>
> org.apache.slide.common.ServiceAccessException: Service
> TxXMLFileDescriptorsStore at users/store/metadata working on us
> ers/work/metadata access error : java.lang.NullPointerException
> at
> org.apache.slide.store.txfile.AbstractXMLResourceDescriptor.encodeObje
> ct(AbstractXMLResourceDescriptor.java:662)
>
> My current setup is the tomcat 5.0.19 / slide 2.1b1 bundle with the attached
> domain.xml file.
>
> I suspect that it works well because JNDIPrincipalStore is read-only, so,
> maybe it wouldn't need it's corresponding working directory, to witch this
> exception relates to. Or perhaps I still didn't found any problem witch
> shall occur more soon than later...
>
> Does slide use the 'users working directory' in any of its use-cases? Am I
> doing something wrong in the Domain.xml file?
>
>
> Thanks in advance,
> Miguel Figueiredo
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org