Using Slide 1.0.9 and Tomcat 3.2.1 on Linux.  Trying to create a 
relative mapping to the Slide WebDAV Servlet.  Want WebDAV servlet to 
respond to http://host:port/logical_name/webdav/ and treat that as the 
doc root.  WebDAV command line client seems to work, however, MS Win2K 
File Explorer and Slide Servlet not working.

Here's what I did:

tomcat/webapps/slide/Domain.xml
--------------------------
  <namespace name="webdav">
   <configuration>
   [...]
     <!-- Paths configuration -->
     <userspath>/exchange</userspath>
   </configuration>
  
   <data>
     <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/">
     [...]
   <objectnode classname="org.apache.slide.structure.SubjectNode"
    uri="/exchange">
     [...]

tomcat/webapps/slide/WEB-INF/web.xml
--------------------------------
  <servlet>
   <servlet-name>webdav</servlet-name>
   <servlet-class>org.apache.slide.webdav.WebdavServlet</servlet-class>
   <init-param>
     <param-name>debug</param-name>
     <param-value>1</param-value>
   </init-param>
   <load-on-startup>1</load-on-startup>
  </servlet>

  <!-- The mapping for the Slide WebDAV servlet -->
  <servlet-mapping>
   <servlet-name>webdav</servlet-name>
   <url-pattern>/webdav/*</url-pattern>
  </servlet-mapping>

tomcat/conf/server.xml
------------------
       <Context path="/logical_name"
                docBase="webapps/slide"
                crossContext="true"
                debug="99"
                reloadable="true" >
       </Context>

When I bring up the Servlet Engine and enter 
"http://host:port/logical_name/webdav/" the WebDAV servlet index page is 
created but the links to the 'exchange' and 'actions' directories are 
wrong.  They contain:

'<a href="/lehman/exchange">' rather than '<a 
href="/logical_name/*webdav*/exchange">

If I click on the link - 404, but if I enter 
"http://host:port/logical_name/webdav/exchange/" I get the index page 
again - the Servlet responds.

Now, problems with the clients.  When I use the MS Win2K File Explorer 
to "Map Network Drive.. | Web Folder | 
http://host:port/logical_name/webdav/" it returns an error - "The folder 
you entered does not appear to be valid..."

When I look on the server I see the following:

2001-04-16 01:37:10 - Ctx( /logical_name ): Get real path  
/home/local/jakarta-tomcat-3.2.1/webapps/slide/ 
/home/local/jakarta-tomcat-3.2.1/webapps/slide
2001-04-16 01:37:10 - Ctx( /logical_name ): Get real path  
/home/local/jakarta-tomcat-3.2.1/webapps/slide/ 
/home/local/jakarta-tomcat-3.2.1/webapps/slide
2001-04-16 01:37:11 - Ctx(  ): 404 R(  + /_vti_inf.html + null) null
2001-04-16 01:37:11 - Ctx(  ): 404 R(  + /_vti_bin/shtml.exe/_vti_rpc + 
null) null
16 Apr 2001 13:37:11 - INFO - OPTIONS (time: 8 ms) URI = /webdav
2001-04-16 01:37:11 - Ctx( /logical_name ): 404 R( /logical_name + 
/webdav + null) Not Found
16 Apr 2001 13:37:11 - WARNING - Not Found
16 Apr 2001 13:37:11 - INFO - PROPFIND (time: 28 ms) URI = /webdav
16 Apr 2001 13:37:11 - INFO - OPTIONS (time: 2 ms) URI = /webdav
2001-04-16 01:37:11 - Ctx( /logical_name ): 404 R( /logical_name + 
/webdav + null) Not Found
16 Apr 2001 13:37:11 - WARNING - Not Found
16 Apr 2001 13:37:11 - INFO - PROPFIND (time: 53 ms) URI = /webdav
2001-04-16 01:37:11 - Ctx( /logical_name ): Get real path  
/home/local/jakarta-tomcat-3.2.1/webapps/slide/ 
/home/local/jakarta-tomcat-3.2.1/webapps/slide
2001-04-16 01:37:11 - Ctx( /logical_name ): Get real path  
/home/local/jakarta-tomcat-3.2.1/webapps/slide/ 
/home/local/jakarta-tomcat-3.2.1/webapps/slide

Up to this point, I thought there was a problem with the configuration, 
however, then I tried using the command line client:

$ ./run.sh
[ Slide ] $ open http://host:8080/logical_name/webdav/
[HOST] /logical_name/webdav/ $ ls
actions                   exchange                 

Looks fine.  The server log is:

16 Apr 2001 13:42:00 - INFO - PROPFIND (time: 101 ms) URI = /

So what's the deal?  Something seems to be broken - could be my config.  
The main goal here is to be able to use the MS Win2K File Explorer and 
mount the Web Folder.  Any advise appreciated.  Thanks.

   Marty



Reply via email to