<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Thanks Gerald. It worked. I could use jar files directly now without needing to unpack them. <br><br><div>> Subject: Re: [Zoo-discuss] Service provider packaged as jar<br>> From: gerald.fenoy@geolabs.fr<br>> Date: Tue, 31 May 2016 12:33:29 +0200<br>> CC: zoo-discuss@lists.osgeo.org<br>> To: rakeshuk@outlook.com<br>> <br>> Dear Rakesh,<br>> sorry for late reply.<br>> <br>> You can probably define the jar files your service is depending on, in the CLASSPATH environment variable. This can be done by adding a CLASSPATH key in the [env] section in your main.cfg file. So something like the following should solve your issue:<br>> <br>> [env]<br>> CLASSPATH=/the/path/of/you/file.jar:/any/other/depenpendencies.jar<br>> <br>> <br>> I hope to hear back from you.<br>> <br>> Best regards,<br>> <br>> > Le 30 mai 2016 à 16:28, rakesh prithiviraj <rakeshuk@outlook.com> a écrit :<br>> > <br>> > Hi,<br>> > <br>> > I have a java wps processor (zoo service) that is package as jar file. I used "maven-assembly-plugin" to build a jar file with all its dependencies and I placed the jar file under "/usr/lib/cgi-bin". <br>> > <br>> > In the myService.zcfg config file, the service provider (Java Class) is given as follows<br>> >  serviceProvider = com/eoss/core/wpswrapper/WPSWrapperProcessor<br>> > <br>> > When I execute my service, I get "Class Not Found" exception though the jar file is available under "/usr/lib/cgi-bin" where Zoo kernel is also present. <br>> > <br>> > Note in "main.cfg", LD_LIBRARY_PATH points to "/usr/lib/cgi-bin"<br>> > LD_LIBRARY_PATH=/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/:/usr/lib/cgi-bin<br>> > <br>> > But if I unpack the jar file (which results in several folders being created under /usr/lib/cgi-bin for all the dependencies) then my service is executing as expected.<br>> > <br>> > Is it possible to use "jar" file instead of unpacking it to execute the service?<br>> > <br>> > Thanks for your help.<br>> > <br>> > regards<br>> > <br>> > <br>> > _______________________________________________<br>> > Zoo-discuss mailing list<br>> > Zoo-discuss@lists.osgeo.org<br>> > http://lists.osgeo.org/mailman/listinfo/zoo-discuss<br>> <br>> <br>> <br>> Gérald Fenoy<br>> http://wiki.osgeo.org/wiki/User:Djay<br>> <br></div>                                     </div></body>
</html>