[ZOO-Discuss] Execute HelloWorldJava
Gérald Fenoy
gerald.fenoy at geolabs.fr
Fri Jun 25 06:08:35 PDT 2010
Hi Daisuke,
you shouldn't have to specify anything in the [env] sectin of your ZOO main configuration file to make the HelloWorldJava working. Indeed ZOO Kernel shoudl set the CLASSPATH for you before loading and running your Java process (so your java class static function). Please, can you ensure that you well get the class located in the same directory that your ZOO Kernel and the ZOO Configuration File ?
Can you also ensure that the ZOO Kernel you used for your tests was well linked against the right Java Shared Library ? (using the ldd command and giving us the result here) Indeed, there can be an issue in the makefile generation.
The last test which can be usefull for us to help you can be to recompile your ZOO Kernel in debug mode (adding -DDEBUG to the Makefile CFLAGS) and giving us the apache log produced during your request.
Hope to hear from you soon,
best regards,
Le 24 juin 2010 à 11:11, Daisuke YOSHIDA a écrit :
> Hello everyone,
>
> I faced 500 Internal Server Error when I execute HelloWorldJava at
> Ubuntu 10.04 32bit.
> http://localhost/cgi-bin/zoo_loader.cgi?metapath=&ServiceProvider=&Service=WPS&Request=Execute&Version=1.0.0&Identifier=HelloWorldJava&DataInputs=S=test
>
> Apache log says,
> malformed header from script. Bad header=Error occurred during
> initiali: zoo_loader.cgi
> I suppose this mean would be "Error occurred during initialization of VM"
> and guess the problem is somewhere in PATH setting.
>
> Apache user can carry out Java commands (java, javac) without error.
>
> I wrote [env] in main.cfg, but did not success
> [env]
> JAVA_HOME=/usr/local/jdk1.6.0_20
> PATH=.:/usr/bin:$JAVA_HOME/jre/bin:$JAVA_HOME/bin
> CLASSPATH=/var/cgi-bin
>
> Of course, I compiled with Java
> ./configure --with-java=/usr/local/jdk1.6.0_20
>
> I appreciate your help.
> Best regards,
>
> Daisuke Yoshida
> _______________________________________________
> Zoo-discuss mailing list
> Zoo-discuss at gisws.media.osaka-cu.ac.jp
> http://gisws.media.osaka-cu.ac.jp/mailman/listinfo/zoo-discuss
Djay
Just a ZOO Member
gerald.fenoy at geolabs.fr
More information about the Zoo-discuss
mailing list