Hi Julian,

I don't know, what's wrong. Maybe it's because you defined a 
context in server.xml, which is not necessary, when Slide is in 
webapps. 
I tell you how I did or what I would do:

1. Have a clean Tomcat (just unzip the zip and it'll be fine, 
but don't have %tomcat_home% set globally, startup script will 
determine itself.)

2. Drop the slide.war into webapps. There's no need to define a 
context in server.xml, if it is in webapps

3. Delete old contentstore and database files, so Slide will 
setup them from the beginning.

4. Start Tomcat. Now you should be able to access Slide on port 
8080.

5. It should work now. If yes, edit your Domain.xml and web.xml 
if necessary (security, versioning etc.) For security you need 
to define the users ALSO inside tomcat-users.xml.

6. Restart Tomcat.

7. You can test the WebDAV capabilities with Slide client.

That's how it works, if I setup Slide.

I asked whether you're German, because I could have answered in 
German.

Hope this helps.

Andreas


On 7 Dec 2002 at 13:27, Julian Klein wrote:

> Andreas,
> 
>   I attached my Domain.xml.  I already have the roles
> set in both Domain.xml and slide.def, so I have no
> idea why I receive the role warning on startup.  I am
> starting to believe that there is a conflict on my
> system regarding my config. I am going to remove the
> $TOMCAT_HOME/conf/slide.xml, $TOMCAT_HOME/conf/slide/,
> and $TOMCAT_HOME/slide objects.  ok...done.  I also
> removed the slide listener from my server.xml and
> remove the catalina wrapper host.  I replaced the
> catalina wrapper host with a standard host and set a
> standard context pointing to the slide dir.  So now
> the snippet looks like this:
> <Server port="8005" shutdown="SHUTDOWN" debug="0">
> 
>   <!-- JMX features of Tomcat 4 -->
>   <Listener
> className="org.apache.catalina.mbeans.ServerLifecycleListener"
> 
> descriptors="/wrappers/catalina/slide-descriptors.xml"
> debug="0"/>
>   <Listener
> className="org.apache.catalina.mbeans.GlobalResourcesLifecycleLis
> tener"
>                 debug="0"/>
>   <!-- Slide domain controller -->
>   <!--
>   this listener looks for $TOMCAT_HOME/conf/slide.xml
> ******************
> <Listener
> className="wrappers.catalina.SlideServerListener"
>             logLevel="6" />
> 
> -->
> 
>   <!-- Define the Tomcat Stand-Alone Service -->
>   <Service name="Slide WebDAV">
> 
>     <!-- Define a non-SSL Coyote HTTP/1.1 Connector on
> port 8081 -->
>     <Connector
> className="org.apache.coyote.tomcat4.CoyoteConnector"
>                port="8081" minProcessors="5"
> maxProcessors="75"
>                enableLookups="true"
> redirectPort="8443"
>                acceptCount="10" debug="0"
> connectionTimeout="20000"
>                useURIValidationHack="false" />
> 
>     <!-- Define the top level container in our
> container hierarchy -->
>     <Engine name="WebDAV" defaultHost="localhost8081"
> debug="0">
> 
>       <!-- Global logger unless overridden at lower
> levels -->
>       <Logger
> className="org.apache.catalina.logger.FileLogger"
>               prefix="catalina_webdav_log."
> suffix=".txt"
>               timestamp="true"/>
> 
>  <Realm
> className="org.apache.catalina.realm.MemoryRealm" />
> 
>       <Host name="localhost8081" debug="0"
> appBase="webapps" 
>        unpackWARs="false" autoDeploy="true">
>  <!-- Slide Context -->
>  <Context path="/slide" docBase="slide" debug="0"/>
> 
>         <Valve
> className="org.apache.catalina.valves.AccessLogValve"
>                  directory="logs" 
> prefix="webdav_access_log." suffix=".txt"
>                  pattern="common"/>
> 
>         <Logger
> className="org.apache.catalina.logger.FileLogger"
>                  directory="logs" 
> prefix="webdav_log." suffix=".txt"
>          timestamp="true"/>
> 
>       </Host>
> 
>     </Engine>
> 
>   </Service>
> ***************************
> I still am seeing the ContextConfig[/slide]: WARNING:
> Security role name user used in an <auth-constraint>
> without being defined in a <security-role>.  So TC
> says the app is unavailable, but I can still access it
> through my browser.  I have already thrown away
> slide.war after TC startups and have configured
> Domain.xml.  It seems as if I have made a million
> different configs and have been unable to get  a 100%
> effective setup.  Strange.  It seems as if everything
> looks right.  Oh and per your question, I am of German
> ancestry...my grandmother is from Frankfurt am
> Main...Mainhattan.  My mother also lived many years in
> Aachen.  
> Thanks again, Julian
> 
> <?xml version="1.0"?>
> <slide
> logger="org.apache.slide.util.logger.SimpleLogger"
> logger-level="6" default="slide">
>     <namespace name="slide">
>     <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>
>   <parameter name="version">true</parameter>
>          <parameter
> name="resetBeforeStarting">false</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.JDBCContentStore">
>          <parameter
> name="driver">org.hsqldb.jdbcDriver</parameter>
>          <parameter
> name="url">jdbc:hsqldb:slidecontent</parameter>
>          <parameter name="user">sa</parameter>
>          <parameter name="password"></parameter>
>   <parameter name="version">true</parameter>
>          <parameter
> name="resetBeforeStarting">false</parameter>
>         </contentstore>
>       </store>
>       <scope match="/" store="jdbc" />
>     </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-metadat
> a>
> 
> <modify-revision-metadata>/actions/write</modify-revision-metadat
> a>
> 
> <remove-revision-metadata>/actions/write</remove-revision-metadat
> a>
> 
> <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>true</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="/">
>                 <!-- Subject can be:
>                 self  "~"
>                 all   "nobody"
>                 user  "/users/john"
>                 group "+/users/groupA"
>                 role  "root"
>         -->
>                 <!-- Uncomment the following line to
> give all permissions to
>              principals have the root role -->
>                 <permission action="/actions"
> subject="root"/>
>                 <permission action="/actions"
> subject="/users/root"/>
>                 <permission action="/actions/read"
> subject="/users" inheritable="false"/>
>                 <permission action="/actions/read"
> subject="nobody" inheritable="false"/>
>                 <!-- /users -->
>                 <objectnode
> classname="org.apache.slide.structure.SubjectNode"
> uri="/users">
>                     <permission action="/actions"
> subject="~"/>
>                     <permission action="/actions"
> subject="/users/guest" inheritable="true"
> negative="true"/>
>                     <permission action="/actions/read"
> subject="/users" 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">
>                         <revision>
>                             <property
> name="password">root</property>
>                         </revision>
>                     </objectnode>
>                     <!-- /users/john represents an
> authenticated user -->
>                     <objectnode
> classname="slideroles.basic.UserRoleImpl"
> uri="/users/john">
>                         <revision>
>                             <property
> name="password">john</property>
>                         </revision>
>                     </objectnode>
>                     <!-- /users/guest represents an
> authenticated or unauthenticated
>                guest user -->
>                     <objectnode
> classname="slideroles.basic.GuestRoleImpl"
> uri="/users/guest">
>                         <revision>
>                             <property
> name="password"/>
>                         </revision>
>                     </objectnode>
>                 </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>
>                 <!-- DeltaV: default history and
> workspace paths -->
>                 <objectnode
> classname="org.apache.slide.structure.SubjectNode"
> uri="/history"/>
>                 <objectnode
> classname="org.apache.slide.structure.SubjectNode"
> uri="/workspace"/>
>                 <objectnode
> classname="org.apache.slide.structure.SubjectNode"
> uri="/workingresource"/>
>             </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.
> 
>     * 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.AbstractResour
> ceKind"):
>     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="checkout-fork">forbidden</parameter>
>     <parameter
> name="checkin-fork">forbidden</parameter>
> </slide>
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]> For additional
> commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 



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

Reply via email to