Installation of svnwebclient on ubuntu failed

Former SVN Browser
egerm
Posts: 1
Joined: Wed Jan 14, 2009 11:20 am

Installation of svnwebclient on ubuntu failed

Postby egerm » Wed Jan 14, 2009 12:39 pm

Dear all,

I tried to install svnwebclient on our server (tested both on feisty/7.04 and hardy/8.04) but without success.
I followed the Readme.txt in the svnwebclient.war and also other posts (like viewtopic.php?f=6&t=1331).

The following software packages are installed:
tomcat5.5 tomcat5.5-webapps tomcat5.5-admin sun-java5-bin sun-java5-jdk sun-java5-jre

SVN and Tomcat (port 8180) work fine. Unpacking of the svnwebclient.war (in webapps directory) obviously works after Tomcat is restarted. However, the following error message is generated (in /var/log/tomcat5.5/localhost.200X-XY-XY.log):

14.01.2009 11:50:37 org.apache.catalina.core.StandardContext listenerStart
SCHWERWIEGEND: Exception sending context initialized event to listener instance of class org.polarion.svnwebclient.web.InitListener
java.lang.ExceptionInInitializerError
at org.tmatesoft.svn.core.internal.io.dav.DAVRepositoryFactory.createRepositoryImpl(DAVRepositoryFactory.java:45)
[...]

BTW, web.xml was adjusted (see diff below).
I'd be glad about helpful responses.

Regards
Marcus Eger


P.S.:
root@bert:/var/lib/tomcat5.5/webapps/svnwebclient/WEB-INF# diff web.xml web.xml.org
12c12
< <param-value>http://localhost/svntest</param-value>
---
> <param-value>http://svn.polarion.org/repos/community</param-value>
29c22
< <param-value>svntest</param-value>
---
> <param-value>anonymous</param-value>
39c32
< <param-value>svntest</param-value>
---
> <param-value>anonymous</param-value>
42d34
< <param-value>true</param-value>
---
> <param-value>false</param-value>
392c384
< <param-value>marcus.eger@draeger.com</param-value>
---
> <param-value>svnwebclient-bugs@polarion.org</param-value>
402c394
< <param-value>bert.dwhl.de</param-value>
---
> <param-value>mail.polarion.cz</param-value>

rogerfulton
Posts: 1
Joined: Fri Sep 25, 2009 11:23 pm

Re: Installation of svnwebclient on ubuntu failed

Postby rogerfulton » Sat Sep 26, 2009 4:28 am

Tried the same thing myself today and got the same error. It was pretty much all java security stuff. This is for tomcat 5.5. 9.04 is on tomcat 6 and I didnt look at that.

It was a pain to fix it, so I thought I'd share...

To get rid of the first error you need to add
permission java.io.FilePermission "${catalina.base}${file.separator}webapps${file.separator}svnwebclient${file.separator}WEB-INF${file.separator}classes${file.separator}logging.properties", "read";
in /etc/tomcat5.5/policy.d/03catalina.policy. Put it where the commented line using example is.

This allows us to get to the other errors.

Next, I put the log file somewhere sensible and made it writable
change log4j.appender.FA.file=SVNWebClient.log
to log4j.appender.FA.file=/tmp/SVNWebClient.log
in /var/lib/tomcat5.5/webapps/svnwebclient/WEB-INF/classes/log4j.properties
add permission java.io.FilePermission "/tmp/SVNWebClient.log", "read, write"; (i put in just after the first grant)
to /etc/tomcat5.5/policy.d/04webapps.policy

Now just a bunch of permissions...they got slacker as I got tired
permission java.util.PropertyPermission "svnkit.http.keepCredentials", "read";
permission java.util.PropertyPermission "user.home", "read";
permission java.io.FilePermission "/home/tomcat/-", "read, write"; //note changed tomcats home dir to /home/tomcat in /etc/passwd
permission java.io.FilePermission "/etc/subversion/config", "read, write";
permission java.util.PropertyPermission "svnkit.http.encoding", "read";
permission java.net.SocketPermission "myserver.mydomain", "connect,resolve";
permission java.util.PropertyPermission "svnkit.*", "read"; //replaces the svnkit line above, but not tested
permission java.util.PropertyPermission "javasvn.*", "read";
permission java.util.PropertyPermission "java.io.*", "read";
permission java.io.FilePermission "/tmp", "read, write";
permission java.io.FilePermission "/tmp/-", "read, write";
all in /etc/tomcat5.5/policy.d/04webapps.policy just after the previous log entry.

web.xml had cache and tmp both set to /tmp. I changed tomcats home dir to /home/tomcat in the /etc/passwd file and the myserver line needs changed to match your svn server.

I'm sure I did a few other things too, but thats the basics.

Hope this helps.

Babblu
Posts: 1
Joined: Wed Mar 18, 2015 12:48 pm

Re: Installation of svnwebclient on ubuntu failed

Postby Babblu » Wed Mar 18, 2015 12:54 pm

I did as Even's instruction but a new defect appeared. The comment including Chinese characters turned into wrong characters while submitted. It's weired only uploader.java modified but comment is infected. And sometime Chinese file name is still in wrong characters.
FSL:

stefano2015
Posts: 2
Joined: Wed Apr 08, 2015 8:46 am

Re: Installation of svnwebclient on ubuntu failed

Postby stefano2015 » Wed Apr 08, 2015 10:22 am

I had same problem. It is still unsolved.

teddy_b
Posts: 3
Joined: Thu Apr 09, 2015 7:01 pm

Re: Installation of svnwebclient on ubuntu failed

Postby teddy_b » Wed Apr 15, 2015 8:40 am

Have you managed to do something with this issue?


Return to “Polarion SVN Web Client”

Who is online

Users browsing this forum: No registered users and 1 guest