Hi, everyone.
I am learning jakarta-slide now.
I used the binary of jakarta-slide, and installed it on Windows2000.
I am trying the sample program of slide\examples\xml\Test.java.
I confirmed operation by Domain.xml of default.
After that, Domain.xml was changed as follows.
-------------------------------------------------------------------------
<?xml version="1.0"?>
<slide default="slide">
<namespace name="xml">
<definition>
<store name="jdbc">
<nodestore classname="slidestore.reference.JDBCDescriptorsStore">
<parameter name="driver">org.hsqldb.jdbcDriver</parameter>
<parameter name="url">jdbc:hsqldb:slidestructure</parameter>
<parameter name="user">sa</parameter>
<parameter name="password"></parameter>
</nodestore>
<securitystore>
<reference store="nodestore" />
</securitystore>
<lockstore>
<reference store="nodestore" />
</lockstore>
<revisiondescriptorsstore>
<reference store="nodestore" />
</revisiondescriptorsstore>
<revisiondescriptorstore>
<reference store="nodestore" />
</revisiondescriptorstore>
<contentstore classname="slidestore.reference.FileContentStore">
<parameter name="rootpath">contentstore</parameter>
<parameter name="version">true</parameter>
<parameter name="resetBeforeStarting">false</parameter>
</contentstore>
</store>
<scope match="/" store="jdbc" />
<logger classname="org.apache.slide.util.logger.SimpleLogger"
logger-level="6" />
</definition>
<configuration>
<!-- Actions mapping -->
<default-action>/actions</default-action>
<read-object>/actions/read</read-object>
<create-object>/actions/write</create-object>
<remove-object>/actions/write</remove-object>
<grant-permission>/actions/manage</grant-permission>
<revoke-permission>/actions/manage</revoke-permission>
<read-permissions>/actions/manage</read-permissions>
<lock-object>/actions/write</lock-object>
<kill-lock>/actions/manage</kill-lock>
<read-locks>/actions/read</read-locks>
<read-revision-metadata>/actions/read</read-revision-metadata>
<create-revision-metadata>/actions/write</create-revision-metadata>
<modify-revision-metadata>/actions/write</modify-revision-metadata>
<remove-revision-metadata>/actions/write</remove-revision-metadata>
<read-revision-content>/actions/read</read-revision-content>
<create-revision-content>/actions/write</create-revision-content>
<modify-revision-content>/actions/write</modify-revision-content>
<remove-revision-content>/actions/write</remove-revision-content>
<!-- Paths configuration -->
<userspath>/users</userspath>
<guestpath>guest</guestpath>
<filespath>/files</filespath>
<parameter name="dav">true</parameter>
<parameter name="standalone">true</parameter>
<!-- Roles definition -->
<role name="root">slideroles.basic.RootRole</role>
<role name="user">slideroles.basic.UserRole</role>
<role name="guest">slideroles.basic.GuestRole</role>
<!-- Users management -->
<auto-create-users>false</auto-create-users>
<!-- Default properties mapping -->
<default-property name="foo" namespace="nsfoo/" value="bar"
role="user"/>
<default-property name="password" namespace="slide/" value=""
role="user"/>
</configuration>
<data>
<objectnode classname="org.apache.slide.structure.SubjectNode" uri="/">
<permission action="/actions" subject="root"/>
<permission action="/actions/read" subject="user"
inheritable="false"/>
<permission action="/actions/read" subject="nobody"
inheritable="false"/>
<!-- /users represents the unauthenticated user -->
<objectnode classname="org.apache.slide.structure.SubjectNode"
uri="/users">
<permission action="/actions" subject="~"/>
<permission action="/actions" subject="guest"
inheritable="true" negative="true"/>
<permission action="/actions/read" subject="user"
inheritable="false"/>
<!-- Permission group example -->
<objectnode classname="org.apache.slide.structure.GroupNode"
uri="/users/groupA">
<objectnode classname="org.apache.slide.structure.LinkNode"
uri="/users/groupA/john" linkedUri="/users/john" />
<objectnode classname="org.apache.slide.structure.LinkNode"
uri="/users/groupA/root" linkedUri="/users/root" />
<objectnode classname="org.apache.slide.structure.SubjectNode"
uri="/users/groupA/singleGroupMember" />
</objectnode>
<!-- /users/root represents the administrator -->
<objectnode classname="slideroles.basic.RootRoleImpl"
uri="/users/root">
<!-- Uncomment and change the password to allow login as root to
edit the namespace -->
<revision>
<property name="password"
namespace="http://jakarta.apache.org/slide/">root</property>
</revision>
</objectnode>
<!-- /users/john represents an authenticated user -->
<objectnode classname="slideroles.basic.UserRoleImpl"
uri="/users/john" />
<!-- /users/guest represents an authenticated or unauthenticated
guest user -->
<objectnode classname="slideroles.basic.GuestRoleImpl"
uri="/users/guest" />
</objectnode>
<objectnode classname="org.apache.slide.structure.ActionNode"
uri="/actions">
<objectnode classname="org.apache.slide.structure.ActionNode"
uri="/actions/read"/>
<objectnode classname="org.apache.slide.structure.ActionNode"
uri="/actions/write"/>
<objectnode classname="org.apache.slide.structure.ActionNode"
uri="/actions/manage"/>
</objectnode>
<objectnode classname="org.apache.slide.structure.SubjectNode"
uri="/files">
<!-- ### Give read/write/manage permission to guest ###
Uncomment the following line to give permission to do
all actions on /files to guest (unauthenticated users) -->
<!-- <permission action="/actions" subject="/users/guest"/> -->
<permission action="/actions/manage" subject="/users/john"/>
<permission action="/actions/write" subject="+/users/groupA"/>
<permission action="/actions/read" subject="nobody"/>
</objectnode>
</objectnode>
</data>
</namespace>
</slide>
-------------------------------------------------------------------------
The following errors are output, and the sample program does not operate.
-------------------------------------------------------------------------
04 Jul 2003 11:56:20 - slidestore.reference.JDBCDescriptorsStore - ERROR - Con
necting to "jdbc:hsqldb:slidestructure" as user "sa" failed
04 Jul 2003 11:56:20 - slidestore.reference.JDBCDescriptorsStore - ERROR - jav
a.sql.SQLException: The database is already in use by another process
04 Jul 2003 11:56:20 - org.apache.slide.common.Domain - WARNING - Service slid
[EMAIL PROTECTED] connection failed : The database
is already in use by another process
04 Jul 2003 11:56:20 - org.apache.slide.common.Domain - WARNING - Service is m
issing on root node
04 Jul 2003 11:56:20 - org.apache.slide.common.Namespace - ERROR - Unable to r
ead Namespace base configuration file :
04 Jul 2003 11:56:20 - org.apache.slide.common.Namespace - ERROR - org.apache.
slide.common.ServiceMissingOnRootNodeException: Service is missing on root nod
e
org.apache.slide.common.ServiceMissingOnRootNodeException: Service is missing
on root node
at org.apache.slide.common.Uri.parseUri(Uri.java:387)
at org.apache.slide.common.Uri.<init>(Uri.java:106)
at org.apache.slide.common.Namespace.getUri(Namespace.java:636)
at org.apache.slide.common.Namespace.getUri(Namespace.java:616)
at org.apache.slide.common.Namespace.getUri(Namespace.java:604)
at org.apache.slide.common.Namespace.loadBaseData(Namespace.java:742)
at org.apache.slide.common.Domain.initNamespace(Domain.java:795)
at org.apache.slide.common.Domain.init(Domain.java:448)
at org.apache.slide.common.Domain.selfInit(Domain.java:728)
at org.apache.slide.common.Domain.accessNamespace(Domain.java:266)
at xml.Test.main(Test.java:71)
-------------------------------------------------------------------------
Please teach me the action method.
Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]