4
2007
Setting up a WebDAV Server on Glassfish
I’ve always wanted to have a tinker with WebDAV, but never really had a good excuse to have a look at it. Since I’ve had to get up to speed with Maven, I’ve finally had a reason to get a WebDAV server happening locally for a few developers to share a repository. Turns out that running a WebDAV server on Glassfish (or whatever app server you like) is a snack thanks to the good folk at the WebDAV-Servlet project.
Here’s the steps you need to know:
- Head on over to the downloads page and grab the .war edition
- Unjar the war file and edit /WEB-INF/web.xml. Change the “rootpath” parameter to point to a place on your webserver filesystem where you want to store you WebDAV’d files (eg /data/webdav)
- Rejar the war and deploy
- Point your fave webdav client at your new site
IE works just fine as a WebDAV client if you just want to browse a repository. Select /File/Open… tick the “Open as Web Folder” setting and point it at your freshly installed WebDAV URL.
Once things fire up, you can happily drag and drop to and from the web folder. Works great!
Now I’m doing all this on a small intranet, so my security concerns are pretty low… I would be thinking twice before I installed this sort of stuff on my public facing boxes. But very handy for an internal shared Maven repository…
Props to the WebDAV servlet folks for a very cool little app!
2 Comments + Add Comment
Leave a comment
Glen Smith
Archives
- January 2012
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- April 2011
- March 2011
- January 2011
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
- April 2005
- March 2005
- February 2005
- January 2005
- December 2004
- November 2004
- October 2004
- September 2004
- August 2004
- July 2004
- June 2004
- May 2004
- March 2004
- February 2004
- January 2004
- December 2003
- November 2003
- October 2003
- September 2003

An article by Glen





Hi Glen,
FYI GlassFish as support for WEBDAV by default as well [1]. Tomcat as the same support
. But this SourceForge project works probably better and portable. Thanks for the blog!
– Jeanfrancois
[1] http://weblogs.java.net/blog/jfarcand/archive/2006/03/enabling_webdav_1.html
Hi Glen,
the WebDav servlet does not support LOCK and UNLOCK methods, as specified in RFC 2518, so it’s not quite a webdav implementation.
I would recommend using the tomcat version of webdav servlet, if you want to keep it light
cheers