[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: Wed, 24 Mar 2010 12:35:32 +0530

Hi Mark,

Thanx for your previous information.

I can run svnClientAdapter.jar using following command, (I already installed
CollabNetSubve​rsion client)

java -classpath
/usr/local/tomcat/webapps/firstJSP/WEB-INF/lib/svnClientAdapter.jar
org.tigris.subversion.svnclientadapter.samples.Sample

svnClientAdapter.jar is runing OK being called thru this way.
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.(Tomcat is on Linux machine)

Thanx fo any advice.

On 19 March 2010 12:46, dilum vithana <dilumdcv_at_gmail.com> wrote:

> Hi Mark,
>
> My code is working properly.
> But, now I have another problem. Tomcat server is on Linux machine. Can i
> use same code for this time?
> Can i use same DLL file for this time?
>
> Thanx fo any advice.
>
>
> On 18 March 2010 09:20, dilum vithana <dilumdcv_at_gmail.com> wrote:
>
>> 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=2464161

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
Received on 2010-03-24 08:05:42 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.