Hi
I'm using SVNClientAdapter to develope a web application. I created
SVNClientAdapter.jar and put all the DLL files into the jar. My goal is to
invoke a method in the *SVNClientAdapter.jar* thru jsp file. The jar is
located in the "lib" folder of a web application (svnjavahl.jar is also
located in the lib folder). The* *SVNClientAdapter java project is runing ok
being called thru the Eclipse.
In my project, I used following method.
String bestClientType = SVNClientAdapterFactory.getPreferredSVNClientType();
ISVNClientAdapter svnClient =
SVNClientAdapterFactory.createSVNClient(bestClientType);
svnClient.setUsername(username);
svnClient.setPassword(password);
NotifyListener listener = new Sample.NotifyListener();
svnClient.addNotifyListener(listener);
try {
svnClient.checkout(new SVNUrl(svnLocation),new
File(destinationFolder),SVNRevision.HEAD,true);
} catch (IOException e) {
System.out.println("An exception occured while getting remote
file :"+e.getMessage());
} catch (SVNClientException e) {
System.out.println("An exception occured while getting remote
file :"+e.getMessage());
}
The problem occures when the jsp call a method in the jar file,
If i called jar file thru jsp, the value of the *ISVNClientAdapter svnClient
*is null.
I put all DLL files to *C:\WINDOWS\system32 *and try to solve it. But it is
doesn't work
Thanks for any advice.
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=2460313
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
Received on 2010-03-16 13:31:07 CET