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:a...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org