You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by shahab <pi...@yahoo.com> on 2007/09/19 15:28:36 UTC

Why "Net use ..." does not work with WebDAV servlet

Hi,

I am trying to develop a simple distributed file system using WebDAV servlet on Tomact application server. while I can successfully browse the WebDAV enabled directory via IE or FireFox, issuing "net use p: http://lp:port/Dav" results in  "The network name can not be found"  error message so drive P: can not be created. whereas this net use command can be executed successfully in Apache web server.

I do appreciate your comments and tips. 

regards
/shahab

       
---------------------------------
Catch up on fall's hot new shows on Yahoo! TV.  Watch previews, get listings, and more!

Comet

Posted by Saman Ghodsian <Sa...@alea.ca>.
Hi there,

I'm trying to get in touch with anyone that has had success in getting
the comet chat example working on tomcat 6.0.14.

Saman 
 
Notice - The information in this e-mail is confidential and may be legally privileged.  It is intended solely for the recipient(s) named above.  If you have received this message in error, or are not a named recipient, please notify the sender immediately at + 1 (604) 685-7619 and please delete this e-mail message from your computer.  Thank you.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Why "Net use ..." does not work with WebDAV servlet

Posted by shahab <pi...@yahoo.com>.
Thank you for your hints to Slide.Actually slide is to heavy and complex for my purpose and I am still trying to use windows mini redirector with WebDAV servlet but no success.



Peter Crowther <Pe...@melandra.com> wrote: > From: shahab [mailto:pishava@yahoo.com] 
> I am trying to develop a simple distributed file system using 
> WebDAV servlet on Tomact application server. while I can 
> successfully browse the WebDAV enabled directory via IE or 
> FireFox, issuing "net use p: http://lp:port/Dav" results in  
> "The network name can not be found"  error message so drive 
> P: can not be created. whereas this net use command can be 
> executed successfully in Apache web server.

The WebDAV redirector built into Windows uses a different codebase from
the one built into Internet Explorer.  It also doesn't match the WebDAV
spec in a number of unpleasant ways.  I assume the httpd developers
(assuming this is what you mean by "Apache web server") have managed to
find a workaround which is not in Tomcat's WebDAV servlet.

Have you looked at Jakarta Slide?  It contains a more complete WebDAV
implementation than Tomcat's own servlet, and may get round the problem.
It also includes pluggable storage modules; you may find that much of
your distributed file system work has been done for you.

  - Peter

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org



       
---------------------------------
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. 

RE: Why "Net use ..." does not work with WebDAV servlet

Posted by Peter Crowther <Pe...@melandra.com>.
> From: shahab [mailto:pishava@yahoo.com] 
> I am trying to develop a simple distributed file system using 
> WebDAV servlet on Tomact application server. while I can 
> successfully browse the WebDAV enabled directory via IE or 
> FireFox, issuing "net use p: http://lp:port/Dav" results in  
> "The network name can not be found"  error message so drive 
> P: can not be created. whereas this net use command can be 
> executed successfully in Apache web server.

The WebDAV redirector built into Windows uses a different codebase from
the one built into Internet Explorer.  It also doesn't match the WebDAV
spec in a number of unpleasant ways.  I assume the httpd developers
(assuming this is what you mean by "Apache web server") have managed to
find a workaround which is not in Tomcat's WebDAV servlet.

Have you looked at Jakarta Slide?  It contains a more complete WebDAV
implementation than Tomcat's own servlet, and may get round the problem.
It also includes pluggable storage modules; you may find that much of
your distributed file system work has been done for you.

		- Peter

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Why "Net use ..." does not work with WebDAV servlet

Posted by shahab <pi...@yahoo.com>.
Hi Mark,

I also monitored the request/response between WebDAV servlet in Tomcate and MS Mini Redirector and compared it with  Apache (mod_dav) and MS Mini Redirector. I can say no difference. But I don't know what it works with Apache but not for Tomcat one . Do you have any idea? can it be consequence of Authentication or Authorization policy of Tomcat? I have spent all last week working on this problem but no success! any idea or comment will be appreciated.

regards,
/shahab

Mark Thomas <ma...@apache.org> wrote: Shahab1355 wrote:
> sorry for late answering and I hop it is not too late. I ma using Tomcat  5.5
> and the WebDAV servlet  developed by Apache. but the servlet does not
> respond to the net use command.

I have taken a look at the request/response cycle with tcpmon (from
Axis) and I can't see anything obviously wrong. The request/response
are shown below. If anyone can see what the problem is with the
response, let me know.

Mark

Request
=======

PROPFIND /webdav HTTP/1.1
Depth: 0
translate: f
User-Agent: Microsoft-WebDAV-MiniRedir/5.1.2600
Host: localhost
Content-Length: 0
Connection: Keep-Alive

Response
========
HTTP/1.1 207 Multi-Status
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=UTF-8
Content-Length: 548
Date: Tue, 02 Oct 2007 04:14:42 GMT



---------------------------------
/webdav/


2007-10-02T04:08:34Z





HTTP/1.1 200 OK




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org





       
---------------------------------
Boardwalk for $500? In 2007? Ha! 
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.

Re: Why "Net use ..." does not work with WebDAV servlet

Posted by Mark Thomas <ma...@apache.org>.
Shahab1355 wrote:
> sorry for late answering and I hop it is not too late. I ma using Tomcat  5.5
> and the WebDAV servlet  developed by Apache. but the servlet does not
> respond to the net use command.

I have taken a look at the request/response cycle with tcpmon (from
Axis) and I can't see anything obviously wrong. The request/response
are shown below. If anyone can see what the problem is with the
response, let me know.

Mark

Request
=======

PROPFIND /webdav HTTP/1.1
Depth: 0
translate: f
User-Agent: Microsoft-WebDAV-MiniRedir/5.1.2600
Host: localhost
Content-Length: 0
Connection: Keep-Alive

Response
========
HTTP/1.1 207 Multi-Status
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=UTF-8
Content-Length: 548
Date: Tue, 02 Oct 2007 04:14:42 GMT

<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:"><response><href>/webdav/</href>
<propstat><prop><creationdate>2007-10-02T04:08:34Z</creationdate>
<displayname><![CDATA[]]></displayname>
<resourcetype><collection/></resourcetype>
<source></source>
<supportedlock><lockentry><lockscope><exclusive/></lockscope><locktype><write/></locktype></lockentry><lockentry><lockscope><shared/></lockscope><locktype><write/></locktype></lockentry></supportedlock>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Why "Net use ..." does not work with WebDAV servlet

Posted by Shahab1355 <pi...@yahoo.com>.
sorry for late answering and I hop it is not too late. I ma using Tomcat  5.5
and the WebDAV servlet  developed by Apache. but the servlet does not
respond to the net use command.

regards,
Shahab

Mark Thomas-15 wrote:
> 
> shahab wrote:
>> Hi,
>> 
>> I am trying to develop a simple distributed file system using WebDAV
>> servlet on Tomact application server. while I can successfully browse the
>> WebDAV enabled directory via IE or FireFox, issuing "net use p:
>> http://lp:port/Dav" results in  "The network name can not be found" 
>> error message so drive P: can not be created. whereas this net use
>> command can be executed successfully in Apache web server.
> 
> Which Tomcat version?
> 
> Mark
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Why-%22Net-use-...%22-does-not-work-with-WebDAV-servlet-tf4481003.html#a12983981
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Why "Net use ..." does not work with WebDAV servlet

Posted by Mark Thomas <ma...@apache.org>.
shahab wrote:
> Hi,
> 
> I am trying to develop a simple distributed file system using WebDAV servlet on Tomact application server. while I can successfully browse the WebDAV enabled directory via IE or FireFox, issuing "net use p: http://lp:port/Dav" results in  "The network name can not be found"  error message so drive P: can not be created. whereas this net use command can be executed successfully in Apache web server.

Which Tomcat version?

Mark

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org