Hi Alexander I have the DAVServlet defined in web.xml as per your recommendations <?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"> <display-name>DAV Subversion Servlet</display-name> <servlet> <servlet-name>svnkit</servlet-name> <servlet-class>org.tmatesoft.svn.core.internal.server.dav.DAVServlet</servlet-class> <init-param> <param-name>SVNParentPath</param-name> <param-value>/E:/svnrepo</param-value> </init-param> <!--<init-param>--> <!--<param-name>AuthzSVNAccessFile</param-name>--> <!--<param-value>/var/svn/access_conf</param-value>--> <!--</init-param>--> </servlet> <servlet-mapping> <servlet-name>svnkit</servlet-name> <url-pattern>/repos/*</url-pattern> </servlet-mapping> </web-app>
in my mind (and maybe wrong understanding, but worked before as you said) whit this web.xml the servlet svnkit maps to a context svnkit/repos, and using svn info http://C036357:8080/svnkit/repos/trunk gave me always a nice output. TODAY - after I have updated and rebuilt all from svnkit using maven - it only works when I do E:\>svn info http://c036357:8080/svnkit-dav-1.7.8/repos/trunk Path: trunk URL: http://c036357:8080/svnkit-dav-1.7.8/repos/trunk Repository Root: http://c036357:8080/svnkit-dav-1.7.8/repos/trunk Repository UUID: 319cec14-50ec-b64d-9d26-3eac1789ee5c Revision: 1 Node Kind: directory Last Changed Author: C770817 Last Changed Rev: 1 Last Changed Date: 2013-03-07 17:55:12 +0100 (Thu, 07 Mar 2013) E:\> I think I have to rename svnkit-dav-1.7.8.war to get a different context; as I am used to do in Axis2 renaming axis2-1.6.2.war to axis2.war before tomcat deploys it makes the context different; but what is then servlet mapping then used for ? My failure, my bad understanding I know. But I was confident that the mapping is twofold. the servlet-name overrides and makes the context, and the path is made by adding the url-pattern. but when I do E:\>svn info http://c036357:8080/svnkit/repos/trunk svn: E175002: Unable to connect to a repository at URL 'http://c036357:8080/svnkit/repos/trunk' svn: E175002: The OPTIONS request returned invalid XML in the response: XML parse error at line 1: no element found (http://c036357:8080/svnkit/repos/trunk) E:\> Anyway - great - it works and I can debug it using tomcat in debugger mode and setting a break in DAVServler.service() And since for some magic - guess it is the version to be used - I have no more offending class problems when I deploy svnkit-dav-1.7.8.war to tomcat. It's just great. Thank you all, Josef -----Ursprüngliche Nachricht----- Von: Alexander Kitaev [mailto:alexander.kit...@svnkit.com] Gesendet: Mittwoch, 16. Februar 2011 20:21 An: svnkit-users@svnkit.com Betreff: Re: AW: subversion sercver for OpenVMS Hello Josef, > BUT While I can certainly can deploy SVNkit.war, how do I use it i.e. > how do I prepare my repository? What do I use to make my repository > > available for SVNkit DAV servlet Subversion server? Currently you only could specify repository location in web.xml file, i.e. before you build war file, or after you have built it (then you'll have to edit web.xml inside the war file). In the source tree, web.xml file is located in svnkit-dav/WEB-INF directory. Edit this file to make it contain the following: <servlet> <servlet-name>svn</servlet-name> <servlet-class>org.tmatesoft.svn.core.internal.server.dav.DAVServlet</servlet-class> <init-param> <param-name>SVNParentPath</param-name> <param-value>/home/user/svnRepositories</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>svnkit</servlet-name> <url-pattern>/repos/*</url-pattern> </servlet-mapping> Remove all the other <servlet> and <servlet-mapping> sections. With that settings in web.xml SVNKit servlet will look for repositories in /home/user/svnRepositories directory where you may create them using jsvnadmin tool. Repository URL will be http://localhost:port/svnkit/repos/repository Soon we will improve servlet so that it will be possible to configure it through the web page > And I final question; can this tyope server be used to mirror an > apache > svn repository on a dayly basis? You may set up synchronization process, use cron to run jsvnsync command: 1. Enable revision properties modifications in the target repository, for that add executable script REPOS_HOME/hooks/pre-revprop-change that will do nothing and will return 0 error code. 2. run jsvnsync init DST_REPO_URL SOURCE_REPO_URL This have to be run once. 3. run jsvnsync sycn DST_REPO_URL. This will ensure dst repository is synced with the source one. Please let me know if you have problems with that. Thanks, Alexander Kitaev, TMate Software, http://svnkit.com/ - Java [Sub]Versioning Library! http://sqljet.com/ - Java SQLite Library! On 08-Feb-11 18:42, Stadelmann Josef wrote: > Dear Alexander > > I have built SVNkit as you said from trunk. The svnkit.war is there. > > I do this on a PC first runing tomcat integrated on NetBeans IDE on > port 8084. I can make it listening on Port 8080, no problem. I can > start an external Tomcat listening on 8080 > > BUT While I can certainly can deploy SVNkit.war, how do I use it i.e. > how do I prepare my repository? What do I use to make my repository > available for SVNkit DAV servlet Subversion server? > > > Can you point me to a document to read about that? > > > Given I like to have my Subversion Repository starting at > > "/dkb3/asf/repositories" > > In VMS terms > > "dkb3:[asf.repositories]" > > What do I configure in web.xml ? > > > Using a browser which URL do I have to ask? > > Using dos subversion client, how do I ask SVNkit DAV servlet then for > the repository just created ? > > > Can I just use a explorer browser to call in at a particular > http://address:8084 and SVNkit DAV takes over? > > I am a bit confused how to use it once it is correctly configured. > > > And I final question; can this tyope server be used to mirror an > apache svn repository on a dayly basis? > > Thanks 10000 times > > Josef > > > > > > > > -----Ursprüngliche Nachricht----- Von: Alexander Kitaev > [mailto:alexander.kit...@svnkit.com] Gesendet: Donnerstag, 3. Februar > 2011 15:46 An: svnkit-users@svnkit.com Betreff: Re: subversion sercver > for OpenVMS > > Dear Josef, > > In case you can run Tomcat or other servlet container on OpenVMS, then > you could use SVNKit DAV servlet as Subversion server. > > So you'll need: > > 1) Check out and build SVNKit from trunk by running "ant deploy". If > you cannot build it on your computer, then I could send you the file. > > 2) You'll get svnkit.war in the build/lib directory - this is SVNKit > DAV servlet. > > 3) You'll need to deploy war into servlet container and then alter its > WEB-INF/web.xml file to make it point to the repository location or to > the directory that contains Subversion repositories. > > Current version of DAV Subversion servlet does not support > authentication which should be configured in servlet container (e.g. > Tomcat) and does not support path based authentication. Otherwise > servlet should work well and we're currently improving it as we're > using it in another project we're working on. > > Alexander Kitaev, TMate Software, http://svnkit.com/ - Java > [Sub]Versioning Library! http://sqljet.com/ - Java SQLite Library! > > On 03-Feb-11 11:01, Stadelmann Josef wrote: >> Dear jsvn community >> >> I have jsvn running on HP OpenVMS >> >> Now I seek a subversion server running on HP OpenVMS As this may be a >> problem I ask - is there a subversion server avail as Open Source >> project to be built using ant or maven for OpenVMS? >> >> Josef.Stadelmann @axa-winterthur.ch >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: svnkit-users-unsubscr...@svnkit.com >> For additional commands, e-mail: svnkit-users-h...@svnkit.com >> >> > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: svnkit-users-unsubscr...@svnkit.com > For additional commands, e-mail: svnkit-users-h...@svnkit.com > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: svnkit-users-unsubscr...@svnkit.com > For additional commands, e-mail: svnkit-users-h...@svnkit.com > > --------------------------------------------------------------------- To unsubscribe, e-mail: svnkit-users-unsubscr...@svnkit.com For additional commands, e-mail: svnkit-users-h...@svnkit.com