You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Sampers, Ruud" <ru...@oce.com> on 2014/01/23 13:07:10 UTC

Tomcat WebDav directory configuration

LS,

 

Tomcat 7.0.47. 

Windows 7

 

I want to enable WebDav functionality in a different directory that the
root:

Assume my data directory : c:\DATA.

 

  <servlet>

        <servlet-name>webdav</servlet-name>

 
<servlet-class>org.apache.catalina.servlets.WebdavServlet</servlet-class
>

        <init-param>

            <param-name>debug</param-name>

            <param-value>0</param-value>

        </init-param>

        <init-param>

            <param-name>listings</param-name>

            <param-value>true</param-value>           

        </init-param>

        <load-on-startup>6</load-on-startup>

    </servlet>

 

    <servlet-mapping>

        <servlet-name>webdav</servlet-name>

        <url-pattern>/dav</url-pattern>

    </servlet-mapping>

 

When I hit the url .../dav I see the content of the root files and dirs.


Now I want to publish the data that is available in C:\DATA. 

I'm unable to do this...

 

Thanks would be greatly appreciated.

 

Best Regards,

 

Ruud Sampers

 



This message and attachment(s) are intended solely for use by the addressee and may contain information that is privileged, confidential or otherwise exempt from disclosure under applicable law.

If you are not the intended recipient or agent thereof responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.

If you have received this communication in error, please notify the sender immediately by telephone and with a 'reply' message.

Thank you for your co-operation.


Tomcat WebDav directory configuration

Posted by "Sampers, Ruud" <ru...@oce.com>.
Thx for all your reactions,

I've been unable to configure the webdav functionality, using the
docBase/virtualpath in the server.xml. Enabling webdav via the servlet
is ok, redirecting a webapps docbase to c:\temp works ok, but the
combination of those 2 fails.

It seems like either, you enable the webdav servlet or use the docbase
but you cannot use them both at the same time or at least I'm unable to
configure this in such manner.

Does anyone have experience with this and if so, please would share the
configuration files 


Thx in advance
Ruud.



-----Original Message-----
From: Sampers, Ruud 
Sent: donderdag 23 januari 2014 13:07
To: users@tomcat.apache.org
Subject: Tomcat WebDav directory configuration

LS,

 

Tomcat 7.0.47. 

Windows 7

 

I want to enable WebDav functionality in a different directory that the
root:

Assume my data directory : c:\DATA.

 

  <servlet>

        <servlet-name>webdav</servlet-name>

 
<servlet-class>org.apache.catalina.servlets.WebdavServlet</servlet-class
>

        <init-param>

            <param-name>debug</param-name>

            <param-value>0</param-value>

        </init-param>

        <init-param>

            <param-name>listings</param-name>

            <param-value>true</param-value>           

        </init-param>

        <load-on-startup>6</load-on-startup>

    </servlet>

 

    <servlet-mapping>

        <servlet-name>webdav</servlet-name>

        <url-pattern>/dav</url-pattern>

    </servlet-mapping>

 

When I hit the url .../dav I see the content of the root files and dirs.


Now I want to publish the data that is available in C:\DATA. 

I'm unable to do this...

 

Thanks would be greatly appreciated.

 

Best Regards,

 

Ruud Sampers

 



This message and attachment(s) are intended solely for use by the
addressee and may contain information that is privileged, confidential
or otherwise exempt from disclosure under applicable law.

If you are not the intended recipient or agent thereof responsible for
delivering this message to the intended recipient, you are hereby
notified that any dissemination, distribution or copying of this
communication is strictly prohibited.

If you have received this communication in error, please notify the
sender immediately by telephone and with a 'reply' message.

Thank you for your co-operation.


This message and attachment(s) are intended solely for use by the addressee and may contain information that is privileged, confidential or otherwise exempt from disclosure under applicable law.

If you are not the intended recipient or agent thereof responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.

If you have received this communication in error, please notify the sender immediately by telephone and with a 'reply' message.

Thank you for your co-operation.



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


Re: Tomcat WebDav directory configuration

Posted by André Warnier <aw...@ice-sa.com>.
I think it is better if you this thread on the Tomcat list.
This way, everyone can see it and contribute.  It also helps other future users who may 
have the same problem.
Also, the list rules recommend to not top-post. ;-)

Sampers, Ruud wrote:
> HI André,
> 
> Thx for the info. Somehow the dav functionality bytes with context changes. 
> 
> 
> + webapps
> 	\ROOT
> 	\Webdav
> 		\WEB-INF
> 			+web.xml
> 		\META-INF
> 			+context.xml
> 		
> 
> With
> <?xml version="1.0" encoding="UTF-8"?> 
> <Context docBase="c:/webdav">
> </Context>
> 
> Web.xml contains
> 	<servlet>
>         <servlet-name>webdav</servlet-name>
>         <servlet-class>org.apache.catalina.servlets.WebdavServlet</servlet-class>
>         <init-param>
>             <param-name>debug</param-name>
>             <param-value>0</param-value>
>         </init-param>
>         <init-param>
>             <param-name>listings</param-name>
>             <param-value>true</param-value>           
>         </init-param>
>         <init-param>
>             <param-name>readonly</param-name>
>             <param-value>false</param-value>
>         </init-param>
>     </servlet>
> 
>     <servlet-mapping>
>         <servlet-name>webdav</servlet-name>
>         <url-pattern>/dav</url-pattern>
>     </servlet-mapping>
> 
> No success ,
> 
> Am I missing something?
> 
> Thx in advance
> 
> 
> -----Original Message-----
> From: André Warnier [mailto:aw@ice-sa.com] 
> Sent: donderdag 23 januari 2014 14:15
> To: Tomcat Users List
> Subject: Re: Tomcat WebDav directory configuration
> 
> Sampers, Ruud wrote:
>> LS,
>>
>>  
>>
>> Tomcat 7.0.47. 
>>
>> Windows 7
>>
>>  
>>
>> I want to enable WebDav functionality in a different directory that the
>> root:
>>
>> Assume my data directory : c:\DATA.
>>
>>  
>>
>>   <servlet>
>>
>>         <servlet-name>webdav</servlet-name>
>>
>>  
>> <servlet-class>org.apache.catalina.servlets.WebdavServlet</servlet-class
>>
>>         <init-param>
>>
>>             <param-name>debug</param-name>
>>
>>             <param-value>0</param-value>
>>
>>         </init-param>
>>
>>         <init-param>
>>
>>             <param-name>listings</param-name>
>>
>>             <param-value>true</param-value>           
>>
>>         </init-param>
>>
>>         <load-on-startup>6</load-on-startup>
>>
>>     </servlet>
>>
>>  
>>
>>     <servlet-mapping>
>>
>>         <servlet-name>webdav</servlet-name>
>>
>>         <url-pattern>/dav</url-pattern>
>>
>>     </servlet-mapping>
>>
>>  
>>
>> When I hit the url .../dav I see the content of the root files and dirs.
>>
>>
>> Now I want to publish the data that is available in C:\DATA. 
>>
>> I'm unable to do this...
>>
> 
> I think that what you need to look at is this :
> http://tomcat.apache.org/tomcat-7.0-doc/config/context.html (docBase)
> 
> In other words, you need to :
> - create a /META-INF/context.xml file inside your DAV application
> - define a <Context> element inside that file, with the appropriate "docBase" attribute
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 
> This message and attachment(s) are intended solely for use by the addressee and may contain information that is privileged, confidential or otherwise exempt from disclosure under applicable law.
> 
> If you are not the intended recipient or agent thereof responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.
> 
> If you have received this communication in error, please notify the sender immediately by telephone and with a 'reply' message.
> 
> Thank you for your co-operation.
> 
> 
> 


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


Re: Tomcat WebDav directory configuration

Posted by André Warnier <aw...@ice-sa.com>.
Sampers, Ruud wrote:
> LS,
> 
>  
> 
> Tomcat 7.0.47. 
> 
> Windows 7
> 
>  
> 
> I want to enable WebDav functionality in a different directory that the
> root:
> 
> Assume my data directory : c:\DATA.
> 
>  
> 
>   <servlet>
> 
>         <servlet-name>webdav</servlet-name>
> 
>  
> <servlet-class>org.apache.catalina.servlets.WebdavServlet</servlet-class
> 
>         <init-param>
> 
>             <param-name>debug</param-name>
> 
>             <param-value>0</param-value>
> 
>         </init-param>
> 
>         <init-param>
> 
>             <param-name>listings</param-name>
> 
>             <param-value>true</param-value>           
> 
>         </init-param>
> 
>         <load-on-startup>6</load-on-startup>
> 
>     </servlet>
> 
>  
> 
>     <servlet-mapping>
> 
>         <servlet-name>webdav</servlet-name>
> 
>         <url-pattern>/dav</url-pattern>
> 
>     </servlet-mapping>
> 
>  
> 
> When I hit the url .../dav I see the content of the root files and dirs.
> 
> 
> Now I want to publish the data that is available in C:\DATA. 
> 
> I'm unable to do this...
> 

I think that what you need to look at is this :
http://tomcat.apache.org/tomcat-7.0-doc/config/context.html (docBase)

In other words, you need to :
- create a /META-INF/context.xml file inside your DAV application
- define a <Context> element inside that file, with the appropriate "docBase" attribute



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