I tried to write a code to access the SVN repository:

-----------

SVNRepositoryFactoryImpl.setup();
ISVNAuthenticationManager authManager =
SVNWCUtil.createDefaultAuthenticationManager(new File("dir1"), "username",
"", new File("keypath"), "", false);
SVNRepository repository = null;
try {
        repository = 
SVNRepositoryFactory.create(SVNURL.parseURIDecoded("SVNurl"),
null);
} catch (SVNException e) {
        e.printStackTrace();
}
repository.setAuthenticationManager(authManager);
try {
        repository.testConnection();
} catch (SVNException e) {
        e.printStackTrace();
}

-----------

I get the following console message:

Exception in thread "main" java.lang.NoClassDefFoundError:
com/trilead/ssh2/ServerHostKeyVerifier
        at
org.tmatesoft.svn.core.internal.io.svn.ISVNConnectorFactory$1.createConnector(ISVNConnectorFactory.java:33)
        at
org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.openConnection(SVNRepositoryImpl.java:1249)
        at
org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.testConnection(SVNRepositoryImpl.java:95)
        at svn.Access.main(Access.java:35)
Caused by: java.lang.ClassNotFoundException:
com.trilead.ssh2.ServerHostKeyVerifier
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 4 more

-----------

What does this indicate?



--
View this message in context: 
http://subversion.1072662.n5.nabble.com/Subclipse-SVNKit-keeps-asking-for-credentials-when-connecting-through-svn-ssh-tp175567p175668.html
Sent from the SVNKit - Users mailing list archive at Nabble.com.

Reply via email to