Login | Register
My pages Projects Community openCollabNet

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

subclipse
Discussion topic

Back to topic list

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

Author dilumdcv
Full name Dilum Vithana
Date 2010-03-24 00:05:34 PDT
Message 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/we​bapps/firstJSP/WEB-I​NF/lib/svnClientAdap​ter.jar
org.tigris.subversio​n.svnclientadapter.s​amples.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 dot 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 dot com> wrote:
>
>> Hi Mark,
>> Thanx for the advice
>>
>>
>> On 16 March 2010 10:33, dilum vithana <dilumdcv at gmail dot 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 =
>>> SVNClientAdapterFact​ory.getPreferredSVNC​lientType();
>>>
>>> ISVNClientAdapter svnClient =
>>> SVNClientAdapterFact​ory.createSVNClient(​bestClientType);
>>>
>>> svnClient.setUsernam​e(username);
>>> svnClient.setPasswor​d(password);
>>> NotifyListener listener = new Sample.NotifyListener();
>>> svnClient.addNotifyL​istener(listener);
>>>
>>> try {
>>> svnClient.checkout(new SVNUrl(svnLocation),new
>>> File(destinationFold​er),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.
>>>
>>
>>
>
Attachments

« Previous message in topic | 6 of 6 | Next message in topic »

Messages

Show all messages in topic

[Subclipse-users] JAR+JSP+DLL dilumdcv Dilum Vithana 2010-03-15 22:03:38 PDT
     Re: [Subclipse-users] JAR+JSP+DLL markphip Mark Phippard 2010-03-16 06:00:10 PDT
     Re: [Subclipse-users] JAR+JSP+DLL dilumdcv Dilum Vithana 2010-03-17 20:50:58 PDT
         Re: [Subclipse-users] JAR+JSP+DLL dilumdcv Dilum Vithana 2010-03-19 00:16:53 PDT
             Re: [Subclipse-users] JAR+JSP+DLL markphip Mark Phippard 2010-03-19 06:26:01 PDT
             Re: [Subclipse-users] JAR+JSP+DLL dilumdcv Dilum Vithana 2010-03-24 00:05:34 PDT
Messages per page: