Login | Register
My pages Projects Community openCollabNet

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

subclipse
Discussion topic

Back to topic list

[Subclipse-users] JAR+JSP+DLL

Author dilumdcv
Full name Dilum Vithana
Date 2010-03-15 22:03:38 PDT
Message 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 *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.
Attachments

« Previous message in topic | 1 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: