Hi Alexander

thank you, so I will check again that I can get a working build using my maven.
It is a bit complicated: because here at work we sit behind a firewall, in fact 
a filterwall, and I cannot make a gradle build run like a sniff, like it does 
at home on my lab top. There, with gradle -v, I got the gradle required for 
SVNKit and then in one attempt I got a perfect build for SVNKit. The only thing 
which I miss is SVNKit-dav. So I had to setup again for maven at home (same 
game as at work). And then I got lates greates svnkit-dav.war

So may you explain me please why svnkit-dav.war did not built using gradle? 
Or do I just miss a bit of information to have svnkit-dav.war build using 
gradle?

anyway: I toke the svnkit-dav project, as a maven-module, and built 
svnkit-dav.war with maven

I deployed svnkit-dav-1.7.8.war file to ma Apache Tomcat webapps/, on Windows 
Vista / Tomcat 6.0.26 and JDK 1.6.0_30
BUT
I got informed by Tomcat 

28.01.2013 09:55:56 org.apache.catalina.startup.HostConfig deployWAR INFO: 
Deploying web application archive svnkit-dav-1.7.8.war
28.01.2013 09:55:56 org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Program Files\Apache Software Foundation\Apache Tomcat 
6.0.26\webapps\svnkit-dav-1.7.8\WEB-INF\lib\servlet-api-2.5.jar) - jar not 
loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: 
javax/servlet/Servlet.class

And any attempt to do
$ jsvn list http://localhost/svnkit3/repos/myproject while jsvn list 
file:///e:/svnrepos/* works like a sniff
is a no go!

E:\>jsvn list file:///e:/svnrepo
CHelloWorld/

works like a sharm BUT

E:\>jsvn list http://localhost:8080/svnkit/repos/CHelloWorld/
svn: '/svnkit/repos/CHelloWorld' path not found: 404 Not Found 
(http://localhost:8080)

E:\>

And my web.xml

<?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>
    <login-config>
        <auth-method>BASIC</auth-method>
        <realm-name>SVNKit Repository Realm</realm-name>
    </login-config>
    <security-role>
        <role-name>tomcat</role-name>
    </security-role>
</web-app>

Then I decided to drop servlet-api-2.5.jar from the war file, 
and changed to <scope>provided<scope> for the javax.servlet/servlet-api/2.5 
dependency
The file was excluded from the svnkit-dav-1.7.8.war and the deploy works 
without error.

28.01.2013 10:17:58 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive svnkit-dav-1.7.8.war

But
E:\>jsvn list http://localhost:8080/svnkit/repos/CHelloWorld/
svn: '/svnkit/repos/CHelloWorld' path not found: 404 Not Found 
(http://localhost:8080)

SVNTortoise returns OPTIONS of 'http://c036357:8080/svnkit/repos' 200 OK 
(http://c036257:8080)


any clue what I can do?

is it a Java version, a windows version, a tomcat version, a servlet-api 
version problem?

at home about the same! about - because there I use Windows 7, JDK1.7, Tomcat 7,

And removing the servlet-api from tomcat/lib and replacing it with one of the 
servklet-api-2.5 
OR latest greatest versions found in maven-central repo is a no go either and 
just results in errors during tomcat startup. 
Guess they don’t fit my tomcats version. Then I get errors when tomcat starts, 
just when it comes to deploy.

Any hints welcome - and yes - an older version of SVNKit works to some degree 
on OpenVMS, BUT I cannot checkout, hence I need a version where I can debug 
downward from the servlet.requrest()

Josef

-----Ursprüngliche Nachricht-----
Von: svnkit-users-boun...@svnkit.com [mailto:svnkit-users-boun...@svnkit.com] 
Im Auftrag von Alexander Kitaev
Gesendet: Donnerstag, 24. Januar 2013 15:07
An: SVNKit Library Users List
Betreff: Re: svnkit - build and testing

Hello Josef,

Recently we've changed trilead library that we also maintain and also updated 
dependency on it in the build.gradle file. Recent SVNKit artifact in our maven 
repository
(http://maven.tmatesoft.com/content/repositories/snapshots/org/tmatesoft/svnkit/svnkit/1.7.8-SNAPSHOT/svnkit-1.7.8-20130123.215933-6.pom)
refers to trilead_build216-SNAPSHOT version which has proper constructor.

> Tests run: 233, Failures: 0, Errors: 159, Skipped: 42
>
> <<svnkit-kit-test-failures-1.txt>>
>
> please allow me one question:
>
> is it expected and do ALL this test run on Windows Vista?

We run tests on Linux and only occasionally run them on Windows 7.
Most of the tests (but not all) are expected to pass, but they also need 
environment pre-configured, for instance Apache server installed and available 
for test. Please send me failures report, probably I will be able to provide 
more information on that.

Alexander Kitaev,
TMate Software,
http://subgit.com/ - Svn to Git Migration!
http://svnkit.com/ - Java [Sub]Versioning Library!
http://hg4j.com/ - Java Mercurial Library!
http://sqljet.com/ - Java SQLite Library!


On 23 January 2013 16:25, Stadelmann Josef <josef.stadelm...@axa-winterthur.ch> 
wrote:
> http://svn.svnkit.com/repos/svnkit/trunk/
>
> have moved this code into a maven project with maven pom's.xml  taken 
> from central repo (build 7 Jan 2013)
>
> SVNKit Library (svnkit) modul at
>
> class org.tmatesoft.svn.core.internal.io.svn.ssh.SshHost.java
>
> has a method in error (it does not compile on my windows Vista with 
> JDK6, NetBeans 7.2 and external maven-3.1
>
>     private SshConnection openConnection() throws IOException {
>
>         Connection connection = new Connection(myHost, myPort);
>
>         connection.connect(new ServerHostKeyVerifier() {
>
>             public boolean verifyServerHostKey(String hostname, int 
> port, String serverHostKeyAlgorithm, byte[] serverHostKey) throws 
> Exception {
>
>                 if (myHostVerifier != null) {
>
>                     myHostVerifier.verifyServerHostKey(hostname, port, 
> serverHostKeyAlgorithm, serverHostKey);
>
>                 }
>
>                 return true;
>
>             }
>
>         }, myConnectTimeout, myReadTimeout, myConnectTimeout);  IS
>
>          , myConnectTimeout, myReadTimeout);                       SHOULD BE
>
> should pass only 2 params, because Connection.connect() accepts only 2 
> timeout args, at most.
>
> Also I guess, it does not make muche sense to pass twice the same 
> myConnectTimeout value.
>
>
>
> BTW: the latest greates source packages build error free after that 
> little change,
>
> BTW: but the surefire testing for svnkit is a nigthmar!
>
>> mvn install –DskipTest=true
>
> works perfect on my Vista System
>
>> mvn install
>
> fails on surefire testing with
>
> Tests run: 233, Failures: 0, Errors: 159, Skipped: 42
>
> <<svnkit-kit-test-failures-1.txt>>
>
> please allow me one question:
>
> is it expected and do ALL this test run on Windows Vista?
>
> or is there something Unix/Platform specific I have to consider; i.e.
> ProcessBuilder.java (forking and the like)
>
> (I ask this because this is the case with JGit and there with file 
> access (deleting a repositoory while certain files a restill open))
>
> BTW: from where can I take down the lates greates svnkit.war to be 
> dropped into an application servers webapp directory?
>
> with my currecnt (too old I guess) JSVN, I have populated very 
> successfully on OpenVMS a source repository. The bad thing:
>
> I can not checkout and get an internal server error reported. I can 
> however browse via http to this repository using a
>
> TouirtoiseSVN Client, as well as having cmld lines from a PC both JSVN 
> and native SVN, as well as from other terminals on
>
> OpenVMS.
>
> too bad – I make no preogress because I can't check out from OpenVMS.
>
> Regards
>
> Josef

Reply via email to