[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [Subclipse-users] JAR+JSP+DLL

From: Dilum Vithana <dilumdcv_at_gmail.com>
Date: Thu, 18 Mar 2010 09:20:57 +0530

Hi Mark,
Thanx for the advice

On 16 March 2010 10:33, dilum vithana <dilumdcv_at_gmail.com> wrote:

> 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 *ISVNClientAdaptersvnClient
> *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=2461406

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
Received on 2010-03-18 04:51:02 CET

This is an archived mail posted to the Subclipse Users mailing list.