Hi all!

I have a problem with multiple stores in slide 2.0RC1. Here is what I am
trying to do:

1. Make a TX-file store as default.
2 Define a project store at /files/project1 where files are stored in a
MSSQL server.

I have modified the history path to /history/${store}to separate the history
files!

Now the database store works fine, but the TX store has a problem with
versioning - slide return a 500 error when doing a VERSION-CONTROL!

I have attached my domain.xml file! And the exception is past below.

Thanks
Jacob

java.lang.NullPointerException
        at java.lang.StringBuffer.replace(StringBuffer.java:717)
        at
org.apache.slide.webdav.util.HistoryPathHandler.getResolvedHistoryPat
hHandler(HistoryPathHandler.java:73)
        at
org.apache.slide.webdav.util.HistoryPathHandler.getResolvedHistoryPat
hHandler(HistoryPathHandler.java:56)
        at
org.apache.slide.webdav.util.UriHandler.createNextHistoryUri(UriHandl
er.java:104)
        at
org.apache.slide.webdav.util.VersioningHelper.versionControl(Versioni
ngHelper.java:297)
        at
org.apache.slide.webdav.method.VersionControlMethod.executeRequest(Ve
rsionControlMethod.java:166)
        at
org.apache.slide.webdav.method.AbstractWebdavMethod.run(AbstractWebda
vMethod.java:343)
        at
org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:165)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:284)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:204)
        at
org.apache.slide.webdav.filter.LogFilter.doFilter(LogFilter.java:139)

        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:233)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:204)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:257)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:151)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:567)
        at
org.apache.catalina.core.StandardContextValve.invokeInternal(Standard
ContextValve.java:245)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:199)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:151)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:587)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:149)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:567)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:184)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:151)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:164)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:149)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:567)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:156)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:151)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:567)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)

        at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:20
6)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:833)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:732)
        at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:619)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:688)
        at java.lang.Thread.run(Thread.java:534)
http81-Processor24, 29-apr-2004 12:10:16, root, VERSION-CONTROL, 500
"Internal S
erver Error", 31 ms, /files/mcafeedocs/vse75_ig.pdf
<?xml version="1.0"?>
<slide logger="org.apache.slide.util.logger.SimpleLogger" logger-level="6" default="slide">
	<namespace name="slide">
		<definition>
			<store name="tx">
				<nodestore classname="org.apache.slide.store.txfile.TxXMLFileDescriptorsStore">
					<parameter name="rootpath">e:/tomcat4/store/store/metadata</parameter>
					<parameter name="workpath">e:/tomcat4/store/work/metadata</parameter>
					<parameter name="url-encode-path">true</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">e:/tomcat4/store/store/content</parameter>
					<parameter name="workpath">e:/tomcat4/store/work/content</parameter>
					<parameter name="url-encode-path">true</parameter>
				</contentstore>
			</store>
			<store name="project1">
				<nodestore classname="org.apache.slide.store.impl.rdbms.JDBCStore">
					<parameter name="adapter">org.apache.slide.store.impl.rdbms.SQLServerRDBMSAdapter</parameter>
					<parameter name="driver">com.microsoft.jdbc.sqlserver.SQLServerDriver</parameter>
					<parameter name="url">jdbc:datadirect:sqlserver://localhost:1433;DatabaseName=sl;SelectMethod=cursor</parameter>
					<parameter name="user">sl</parameter>
					<parameter name="password">sl</parameter>
					<parameter name="dbcpPooling">true</parameter>
					<parameter name="maxPooledConnections">10</parameter>
					<parameter name="isolation">READ_COMMITTED</parameter>
				</nodestore>
				<securitystore>
					<reference store="nodestore"/>
				</securitystore>
				<lockstore>
					<reference store="nodestore"/>
				</lockstore>
				<revisiondescriptorsstore>
					<reference store="nodestore"/>
				</revisiondescriptorsstore>
				<revisiondescriptorstore>
					<reference store="nodestore"/>
				</revisiondescriptorstore>
				<contentstore>
					<reference store="nodestore"/>
				</contentstore>
			</store>
			<store name="history_project1">
				<nodestore classname="org.apache.slide.store.impl.rdbms.JDBCStore">
					<parameter name="adapter">org.apache.slide.store.impl.rdbms.SQLServerRDBMSAdapter</parameter>
					<parameter name="driver">com.microsoft.jdbc.sqlserver.SQLServerDriver</parameter>
					<parameter name="url">jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=sl;SelectMethod=cursor</parameter>
					<parameter name="user">sl</parameter>
					<parameter name="password">sl</parameter>
					<parameter name="dbcpPooling">true</parameter>
					<parameter name="maxPooledConnections">10</parameter>
					<parameter name="isolation">READ_COMMITTED</parameter>
				</nodestore>
				<securitystore>
					<reference store="nodestore"/>
				</securitystore>
				<lockstore>
					<reference store="nodestore"/>
				</lockstore>
				<revisiondescriptorsstore>
					<reference store="nodestore"/>
				</revisiondescriptorsstore>
				<revisiondescriptorstore>
					<reference store="nodestore"/>
				</revisiondescriptorstore>
				<contentstore>
					<reference store="nodestore"/>
				</contentstore>
			</store>
			<scope match="/" store="tx"/>
			<scope match="/files/project1" store="project1"/>
			<scope match="/history/project1" store="history_project1"/>
		</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>
			<groupspath>/groups</groupspath>
			<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">1</parameter>
		</configuration>
		<data>
			<objectnode classname="org.apache.slide.structure.SubjectNode" uri="/">
				<permission action="all" subject="/groups/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"/>
						</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"/>
						</revision>
					</objectnode>
					<objectnode classname="org.apache.slide.structure.SubjectNode" uri="/users/john2">
						<revision>
							<property namespace="http://jakarta.apache.org/slide/"; name="password"/>
						</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"/>
						</revision>
					</objectnode>
				</objectnode>
				<!-- /roles -->
				<objectnode classname="org.apache.slide.structure.SubjectNode" uri="/groups">
					<permission action="all" subject="self" inheritable="true"/>
					<permission action="all" subject="unauthenticated" inheritable="true" negative="true"/>
					<objectnode classname="org.apache.slide.structure.SubjectNode" uri="/groups/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="/groups/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="/groups/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="/groups/user" inheritable="true"/>
					<permission action="/actions/read-acl" subject="owner" inheritable="true"/>
					<objectnode classname="org.apache.slide.structure.SubjectNode" uri="/files/project1">
						<permission action="all" subject="unauthenticated" inheritable="true"/>
						<permission action="/actions/write" subject="/groups/user" inheritable="true"/>
						<permission action="/actions/read-acl" subject="owner" inheritable="true"/>
					</objectnode>
				</objectnode>
				<!-- DeltaV: default history and workspace paths -->
				<objectnode classname="org.apache.slide.structure.SubjectNode" uri="/history">
					<permission action="all" subject="unauthenticated" inheritable="true"/>
					<objectnode classname="org.apache.slide.structure.SubjectNode" uri="/history/project1">
						<permission action="all" subject="unauthenticated" inheritable="true"/>
					</objectnode>
				</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>
	<parameter name="historypath">/history/${store}</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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to