<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Matthias, <div>many thanks for you feedbacks.</div><div><br></div><div>The serviceProvider should mention the name of the class note the filename.</div><div>So in your case I guess the class defined in the file is named ZooWrapper so</div><div>you should set : </div><div><br></div><div>   serviceProvider = ZooWrapper</div><div><br></div><div>Indeed, CLASSPATH can be set in the [env] section if needed. For instance, </div><div>if you need to load/use specific jar files as you asked. So, you can specify the </div><div>class name then use a specific CLASSPATH in the [env] section of your main</div><div>configuration file (main.cfg). Until the class name is found in the CLASSPATH</div><div>it should work. </div><div><br></div><div>Note that the CLASSPATH should automatically be updated to add the directory </div><div>where the ZOO-Kernel is located.</div><div><br></div><div>You are right, there is no specific section for Java Services implementation, we </div><div>probably have to create a ticket for this task to be done. Nevertheless maybe you</div><div>can take a look at this : </div><div><a href="http://zoo-project.org/trac/wiki/ZooWebSite/ZooServices/Examples#Java">http://zoo-project.org/trac/wiki/ZooWebSite/ZooServices/Examples#Java</a></div><div><br></div><div>Even if it is similar to read the HelloJava.java source and and the HelloWorldJava.zcfg.</div><div><br></div><div>Hope to hear from you.</div><div>Best regards,</div><div><br><div><div>Le 5 mai 2011 à 15:52, Matthias Lendholt a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Dear all,<br><br>I tried to setup a very simple Java Process and followed the demo in the <br>wiki.<br><br>ZooWrapper.class is stored in the cgi-bin directory and TestJava.zcfg is <br>pointing to it.<br><br>*ls*<br><br>/usr/lib/cgi-bin$ ls<br>HelloPy.zcfg  mapserv        test_service.py  ZooWrapper.class<br>main.cfg      TestJava.zcfg  zoo_loader.cgi<br><br>*zcfg*<br><br>[Test]<br>  Title = Display a string<br>  Abstract = Display a string which contains an hello message<br>  processVersion = 1<br>  storeSupported = true<br>  statusSupported = true<br>  serviceProvider = ZooWrapper.class<br>  serviceType = Java<br>  <MetaData><br>    title = Demo<br>  </MetaData><br>  <DataInputs><br>   [S]<br>    Title = the string<br>    Abstract = The string to add to the hellow one.<br>    minOccurs = 1<br>    maxOccurs = 1<br>    <LiteralData><br>     DataType = string<br>     <Default><br>     </Default><br>    </LiteralData><br>  </DataInputs><br>  <DataOutputs><br>   [Result]<br>    Title = The hello string<br>    Abstract = The Hello message string.<br>    <LiteralOutput><br>     DataType = string<br>     <Default><br>     </Default><br>    </LiteralOutput><br>  </DataOutputs><br><br><br>*ServerRequest*<br><a href="http://192.168.56.101/cgi-bin/zoo_loader.cgi?Service=WPS&Request=Execute&Version=1.0.0&Identifier=TestJava&DataInputs=S=TesT">http://192.168.56.101/cgi-bin/zoo_loader.cgi?Service=WPS&Request=Execute&Version=1.0.0&Identifier=TestJava&DataInputs=S=TesT</a><br><br><br>*ServerResponse*<br><br><?xml version="1.0" encoding="utf-8"?><br><ows:ExceptionReport xmlns:ows="<a href="http://www.opengis.net/ows/1.1">http://www.opengis.net/ows/1.1</a>" <br>xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>" <br>xmlns:xlink="<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>" <br>xsi:schemaLocation="<a href="http://www.opengis.net/ows/1.1">http://www.opengis.net/ows/1.1</a> <br><a href="http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd">http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd</a>" <br>xml:lang="en-US" version="1.1.0"><br>   <ows:Exception exceptionCode="NoApplicableCode"><br>     <ows:ExceptionText>can't find class ZooWrapper.class<br></ows:ExceptionText><br>   </ows:Exception><br></ows:ExceptionReport><br>Content-Type: text/xml; charset=utf-8<br>Status: 200 OK<br><br><br>Are there any other Java specific settings? Must a classpath env be set?<br>For testing ZooWrapper is in the default package. However, is it <br>possible to store Java classes in jar files under package structure? I <br>couldn't find any specific documentation for Java-based processes.<br><br><br>Many thanks in advance,<br>Matthias<br><br>_______________________________________________<br>Zoo-discuss mailing list<br><a href="mailto:Zoo-discuss@gisws.media.osaka-cu.ac.jp">Zoo-discuss@gisws.media.osaka-cu.ac.jp</a><br><a href="http://gisws.media.osaka-cu.ac.jp/mailman/listinfo/zoo-discuss">http://gisws.media.osaka-cu.ac.jp/mailman/listinfo/zoo-discuss</a><br></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="font-size: 12px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Gérald Fenoy</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-style-span" style="color: rgb(0, 0, 238); -webkit-text-decorations-in-effect: underline; "><a href="mailto:gerald.fenoy@geolabs.fr">gerald.fenoy@geolabs.fr</a></span></div></span></div></div></span></span>
</div>
<br></div></body></html>