Skip to content
Skip to breadcrumbs
Skip to header menu
Skip to action menu
Skip to quick search
Quick Search
Browse
Pages
Blog
Labels
Attachments
Mail
Advanced
What’s New
Space Directory
Feed Builder
Keyboard Shortcuts
Confluence Gadgets
Log In
Dashboard
Maven User
Copy Page
You are not logged in. Any changes you make will be marked as
anonymous
. You may want to
Log In
if you already have an account. You can also
Sign Up
for a new account.
This page is being edited by
.
Paragraph
Paragraph
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Preformatted
Quote
Bold
Italic
Underline
More colours
Strikethrough
Subscript
Superscript
Monospace
Clear Formatting
Bullet list
Numbered list
Outdent
Indent
Align left
Align center
Align right
Link
Table
Insert
Insert Content
Image
Link
Attachment
Symbol
Emoticon
Wiki Markup
Horizontal rule
tinymce.confluence.insert_menu.macro_desc
Info
JIRA Issue
Status
Gallery
Tasklist
Table of Contents
Other Macros
Page Layout
No Layout
Two column (simple)
Two column (simple, left sidebar)
Two column (simple, right sidebar)
Three column (simple)
Two column
Two column (left sidebar)
Two column (right sidebar)
Three column
Three column (left and right sidebars)
Undo
Redo
Find/Replace
Keyboard Shortcuts Help
<h1>Introduction</h1> <p>In order to install the repostories and sites with DaV support, you should follow thes steps:</p> <p><a class="confluence-link" href="#The Common WebDaV application" data-anchor="The Common WebDaV application" data-linked-resource-default-alias="The Common WebDaV application" data-base-url="http://docs.codehaus.org">#The Common WebDaV application</a><br /> <a class="confluence-link" href="#The sites" data-anchor="The sites" data-linked-resource-default-alias="The sites" data-base-url="http://docs.codehaus.org">#The sites</a><br /> <a class="confluence-link" href="#The central repository" data-anchor="The central repository" data-linked-resource-default-alias="The central repository" data-base-url="http://docs.codehaus.org">#The central repository</a><br /> <a class="confluence-link" href="#The 3rd-party repository" data-anchor="The 3rd-party repository" data-linked-resource-default-alias="The 3rd-party repository" data-base-url="http://docs.codehaus.org">#The 3rd-party repository</a><br /> <a class="confluence-link" href="#The projects repository" data-anchor="The projects repository" data-linked-resource-default-alias="The projects repository" data-base-url="http://docs.codehaus.org">#The projects repository</a><br /> <a class="confluence-link" href="#The projects-snapshot repository" data-anchor="The projects-snapshot repository" data-linked-resource-default-alias="The projects-snapshot repository" data-base-url="http://docs.codehaus.org">#The projects-snapshot repository</a><br /> <a class="confluence-link" href="#Verifying the installation" data-anchor="Verifying the installation" data-linked-resource-default-alias="Verifying the installation" data-base-url="http://docs.codehaus.org">#Verifying the installation</a></p> <h1>The Common WebDaV application<img class="editor-inline-macro" src="/plugins/servlet/confluence/placeholder/macro?definition=e2FuY2hvcjpUaGUgQ29tbW9uIFdlYkRhViBhcHBsaWNhdGlvbn0&locale=en_GB&version=2" data-macro-name="anchor" data-macro-default-parameter="The Common WebDaV application"></h1> <p>All the DaV webapps for sites and repositories follow the same model of application.</p> <p>This model of application is implemented as a directory called $(webapp.directory) with the following content:</p> <table class="wysiwyg-macro" data-macro-name="code" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2NvZGV9&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre> $(webapp.directory)/ $(webapp.directory)/WEB-INF $(webapp.directory)/WEB-INF/web.xml </pre></td></tr></table> <p>The web.xml file has the following content:</p> <table class="wysiwyg-macro" data-macro-name="code" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2NvZGV9&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre> <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <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>/</url-pattern> </servlet-mapping> <security-constraint> <web-resource-collection> <web-resource-name>The Entire Web Application</web-resource-name> <url-pattern>/*</url-pattern> <http-method>PROPFIND</http-method> <http-method>PROPPATCH</http-method> <http-method>COPY</http-method> <http-method>MOVE</http-method> <http-method>LOCK</http-method> <http-method>UNLOCK</http-method> </web-resource-collection> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security-constraint> </web-app> </pre></td></tr></table> <h1>The sites<img class="editor-inline-macro" src="/plugins/servlet/confluence/placeholder/macro?definition=e2FuY2hvcjpUaGUgc2l0ZXN9&locale=en_GB&version=2" data-macro-name="anchor" data-macro-default-parameter="The sites"></h1> <p>Copy your common DaV application in the $(server.data.home)/sites directory.</p> <p>Creates a sites.xml file in the $(server.tomcat.base)/conf/Catalina/localhost directory with the following content (dont forget to expand the $(xxx) variables with your defined values):</p> <table class="wysiwyg-macro" data-macro-name="code" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2NvZGV9&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre> <?xml version="1.0" encoding="UTF-8"?> <Context path="/sites" docBase="$(server.data.home)/sites/"/> </pre></td></tr></table> <h1>The central repository<img class="editor-inline-macro" src="/plugins/servlet/confluence/placeholder/macro?definition=e2FuY2hvcjpUaGUgY2VudHJhbCByZXBvc2l0b3J5fQ&locale=en_GB&version=2" data-macro-name="anchor" data-macro-default-parameter="The central repository"></h1> <p>Copy your common DaV application in the $(server.data.home)/repositories/central directory.</p> <p>Creates a central.xml file in the $(server.tomcat.base)/conf/Catalina/localhost directory with the following content (dont forget to expand the $(xxx) variables with your defined values):</p> <table class="wysiwyg-macro" data-macro-name="code" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2NvZGV9&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre> <?xml version="1.0" encoding="UTF-8"?> <Context path="/central" docBase="$(server.data.home)/repositories/central/"/> </pre></td></tr></table> <h1>The 3rd-party repository<img class="editor-inline-macro" src="/plugins/servlet/confluence/placeholder/macro?definition=e2FuY2hvcjpUaGUgM3JkLXBhcnR5IHJlcG9zaXRvcnl9&locale=en_GB&version=2" data-macro-name="anchor" data-macro-default-parameter="The 3rd-party repository"></h1> <p>Copy your common DaV application in the $(server.data.home)/repositories/3rd-party directory.</p> <p>Creates a 3rd-party.xml file in the $(server.tomcat.base)/conf/Catalina/localhost directory with the following content (dont forget to expand the $(xxx) variables with your defined values):</p> <table class="wysiwyg-macro" data-macro-name="code" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2NvZGV9&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre> <?xml version="1.0" encoding="UTF-8"?> <Context path="/3rd-party" docBase="$(server.data.home)/repositories/3rd-party/"/> </pre></td></tr></table> <h1>The projects repository<img class="editor-inline-macro" src="/plugins/servlet/confluence/placeholder/macro?definition=e2FuY2hvcjpUaGUgcHJvamVjdHMgcmVwb3NpdG9yeX0&locale=en_GB&version=2" data-macro-name="anchor" data-macro-default-parameter="The projects repository"></h1> <p>Copy your common DaV application in the $(server.data.home)/repositories/projects directory.</p> <p>Creates a projects.xml file in the $(server.tomcat.base)/conf/Catalina/localhost directory with the following content (dont forget to expand the $(xxx) variables with your defined values):</p> <table class="wysiwyg-macro" data-macro-name="code" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2NvZGV9&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre> <?xml version="1.0" encoding="UTF-8"?> <Context path="/projects" docBase="$(server.data.home)/repositories/projects/"/> </pre></td></tr></table> <h1>The projects-snapshot repository<img class="editor-inline-macro" src="/plugins/servlet/confluence/placeholder/macro?definition=e2FuY2hvcjpUaGUgcHJvamVjdHMtc25hcHNob3QgcmVwb3NpdG9yeX0&locale=en_GB&version=2" data-macro-name="anchor" data-macro-default-parameter="The projects-snapshot repository"></h1> <p>Copy your common DaV application in the $(server.data.home)/repositories/projects-snapshot directory.</p> <p>Creates a projects-snapshot.xml file in the $(server.tomcat.base)/conf/Catalina/localhost directory with the following content (dont forget to expand the $(xxx) variables with your defined values):</p> <table class="wysiwyg-macro" data-macro-name="code" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2NvZGV9&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre> <?xml version="1.0" encoding="UTF-8"?> <Context path="/projects-snapshot" docBase="$(server.data.home)/repositories/projects-snapshot/"/> </pre></td></tr></table> <h1>Verifying the installation<img class="editor-inline-macro" src="/plugins/servlet/confluence/placeholder/macro?definition=e2FuY2hvcjpWZXJpZnlpbmcgdGhlIGluc3RhbGxhdGlvbn0&locale=en_GB&version=2" data-macro-name="anchor" data-macro-default-parameter="Verifying the installation"></h1> <p>To ensure the installation worked (at least for reading), point your web browser to <code><a href="http://localhost:8080/manager/html/list">http://localhost:8080/manager/html/list</a></code> with a valid user.</p> <p>Create a file in each of the application directories (with each file a different name).</p> <p>Then click on each of the applications links, which should be :</p> <ul> <li><code><a href="http://localhost:8080/sites">http://localhost:8080/sites</a></code></li> <li><code><a href="http://localhost:8080/central">http://localhost:8080/central</a></code></li> <li><code><a href="http://localhost:8080/3rd-party">http://localhost:8080/3rd-party</a></code></li> <li><code><a href="http://localhost:8080/projects">http://localhost:8080/projects</a></code></li> <li><code><a href="http://localhost:8080/projects-snapshot">http://localhost:8080/projects-snapshot</a></code></li> </ul>
Please type the word appearing in the picture.
Attachments
Labels
Location
Watch this page
< Edit
Preview >
Loading…
Save
Cancel
Next hint
search
attachments
weblink
advanced