<html><body bgcolor="#FFFFFF"><div>Dear Matthias,</div><div>Thanks for your feedbacks.</div><div><br></div><div>Setting ZooWrapper for the service provider is correct.</div><div><br></div><div>The class file should be located in the same directory as zoo_loader.cgi as you try at the begining.</div><div>Indeed, the ZOO-Kernel should use this directory as default CLASSPATH.</div><div><br></div><div>Le 6 mai 2011 à 07:19, Matthias Lendholt <<a href="mailto:matthias.lendholt@gfz-potsdam.de">matthias.lendholt@gfz-potsdam.de</a>> a écrit :<br><br></div><div></div><blockquote type="cite"><div><span>Dear Gérald,</span><br><span>thanks for your quick response. Unfortunately it's still not working.</span><br><span></span><br><blockquote type="cite"><span>The serviceProvider should mention the name of the class note the filename.</span><br></blockquote><blockquote type="cite"><span>So in your case I guess the class defined in the file is named ZooWrapper so</span><br></blockquote><blockquote type="cite"><span>you should set :</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>serviceProvider = ZooWrapper</span><br></blockquote><span></span><br><span>Ok. I tested both versions but both are not working.</span><br><span></span><br><span></span><br><blockquote type="cite"><span>Indeed, CLASSPATH can be set in the [env] section if needed. For instance,</span><br></blockquote><blockquote type="cite"><span>if you need to load/use specific jar files as you asked. So, you can</span><br></blockquote><blockquote type="cite"><span>specify the</span><br></blockquote><blockquote type="cite"><span>class name then use a specific CLASSPATH in the [env] section of your main</span><br></blockquote><blockquote type="cite"><span>configuration file (main.cfg). Until the class name is found in the</span><br></blockquote><blockquote type="cite"><span>CLASSPATH</span><br></blockquote><blockquote type="cite"><span>it should work.</span><br></blockquote><span></span><br><span>I added this section to the main.cfg but I'm not sure if this is correct.</span><br><span></span><br><span>[env]</span><br><span>CLASSPATH=/home/dews/zoo/zoo-project/javaservices/</span><br><span>PYTHONPATH=/usr/bin/python</span><br><span></span><br><span>(the class ZooWrapper.class is located in the javaservices directory)</span><br></div></blockquote><div><br></div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">I guess it won't imply any trouble but the PYTHONPATH you set sounds odd.</span><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469);">As for each environment variables, setting the CLASSPATH this way should work I guess. Nevertheless, can you confirm that the apache user get access to this directory and files located into this directory ? It is probably the cause of the issues.</span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469);"><br></span><blockquote type="cite"><div><span></span><br><span></span><br><blockquote type="cite"><span>Note that the CLASSPATH should automatically be updated to add the</span><br></blockquote><blockquote type="cite"><span>directory</span><br></blockquote><blockquote type="cite"><span>where the ZOO-Kernel is located.</span><br></blockquote><span></span><br><span>Could you rephrase this? I'm not sure whether I understood you correctly. Do I have to point the classpath to the zoo-kernel directory?</span><br></div></blockquote><div><br></div>It means that the ZOO-Kernel is using its directory as defaut CLASSPATH. So, you should copy your class file in this directory. The directory where the zoo_loader.cgi cgi script is located. If you do that, you don't have to modify the CLASSPATH using the [env] section.<div><br><blockquote type="cite"><div><span></span><br><span></span><br><span>Thanks for your help!</span><br><span></span><br><span>Matthias</span><br><font class="Apple-style-span" color="#005001"><font class="Apple-style-span" color="#0023A3"><br></font></font></div></blockquote><br></div></div><div>Hope to hear from you,</div><div>Best regards,</div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.300781); -webkit-composition-fill-color: rgba(175, 192, 227, 0.234375); -webkit-composition-frame-color: rgba(77, 128, 180, 0.234375);"><br></span></span><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.300781); -webkit-composition-fill-color: rgba(175, 192, 227, 0.234375); -webkit-composition-frame-color: rgba(77, 128, 180, 0.234375);">Gérald Fenoy</span></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469);"><a href="mailto:gerald.fenoy@geolabs.fr">gerald.fenoy@geolabs.fr</a></span></div></body></html>