rahulpathakgit / codeswarm

Automatically exported from code.google.com/p/codeswarm
GNU General Public License v3.0
0 stars 0 forks source link

svn+ssh crashes runrepositoryfetch.sh #51

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. svn co latest read-only codeswarm
2. chmod +x runrepositoryfetch.sh
3. ./runrepositoryfetch.sh and enter a svn+ssh:// url for the repository

What is the expected output? What do you see instead?
whatever comes next, but instead it crashes with the following error:
Exception in thread "Thread-4" java.lang.NoClassDefFoundError:
com/trilead/ssh2/InteractiveCallback
    at
org.tmatesoft.svn.core.internal.io.svn.SVNSSHConnector.open(SVNSSHConnector.java
:70)
    at
org.tmatesoft.svn.core.internal.io.svn.SVNConnection.open(SVNConnection.java:60)
    at
org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.openConnection(SVNRepos
itoryImpl.java:974)
    at
org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.getLatestRevision(SVNRe
positoryImpl.java:140)
    at
org.codeswarm.repository.svn.AbstractSVNHistoryVisitor.run(AbstractSVNHistoryVis
itor.java:118)
    at
org.codeswarm.repository.svn.AbstractSVNHistoryVisitor.run(AbstractSVNHistoryVis
itor.java:55)
    at MainView$3.run(MainView.java:166)
    at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException:
com.trilead.ssh2.InteractiveCallback
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    ... 8 more
bye

Running on Ubuntu 8.10 with standard sun-java-sdk6 and ant installed

Original issue reported on code.google.com by henkjans...@gmail.com on 8 Feb 2009 at 5:23

GoogleCodeExporter commented 8 years ago
To authenticate a svn+ssh url the svnkit internally uses the trilead ssh 
library. You
need to get the trilead ssh library from svnkit.org(it is packaged as part of 
the
svnkit distribution). 
Once you get the library add it to the lib directory and edit the
runrepositoryfetch.sh script to include that jar in the classpath of the java
command, save it and run it

Original comment by rkar...@gmail.com on 16 Jul 2009 at 9:35