[Zoo-discuss] [ZOO-Discuss] Problem with execute commands on local zooWPS setup

Gérald Fenoy gerald.fenoy at geolabs.fr
Wed Aug 8 09:47:45 PDT 2012


Hi Farkas,
thanks a lot for providing this informations.

The first thing to make sure now, is to get a gdal15.dll, libcurl.dll,
libfcgi.dll and python25.dll located in the same directory as your
ZOO-Kernel. If there is no dependencies missing then you should take a
look at the gdal15.dll itself.

Please, can you tell me what happen when you try to run the
zoo_loader.cgi from command line ? 

A test with the following command may help you to understand what is
missing:

 .\zoo_loader.cgi "request=GetCapabilities&service=WPS"

The Window binary version is old and should be updated to include a
newer version linked to newer versions of OSGeo tools available in the
current binary distribution. I hope that becoming an OSGeo Project will
help us to get up-to-date Windows Binary of our software.

Hope to hear back from you,

Le mercredi 08 août 2012 à 18:17 +0200, Farkas H a écrit :
> Hi Gérald,
> 
> thank you for your response.
> I'm becoming a little bit confused.
> 
> There is no file ogr_sp.zo. I have got the files ogr_service.zo and
> ogr2ogr_service.zo.
> You can find the dependencies check for 'ogr_service.zo' here [3].
> You can find the dependencies check for 'ogr2ogr_service.zo' here [4].
> You can find the dependencies check for 'zoo_loader.cgi' here [5].
> 
> As mentioned before I used the installer from
> http://trac.osgeo.org/osgeo4w/. 
> I didn't compile the kernel.
> Maybe that's the reason!?
> 
> I tried to compile the kernel and got the error "Cannot open include
> file: 'fcgio.h' ..."
> 
> Hope to hear from you again.
> 
> Cheers,
> Farkas
> 
> [3]
> Dump of file C:\OSGeo4W\bin\ogr_service.zo
> 
> File Type: DLL
> LINK : warning LNK4078: multiple '.text' sections found with different
> attribute
> s (E0000020)
> 
>   Image has the following dependencies:
> 
>     libxml2.dll
>     gdal15.dll
>     KERNEL32.dll
> 
>   Summary
> 
>         3000 .data
>         4000 .rdata
>         2000 .reloc
>         1000 .text
>         F000 .text
> 
> 
> [4]
> Dump of file C:\OSGeo4W\bin\ogr2ogr_service.zo
> 
> File Type: DLL
> LINK : warning LNK4078: multiple '.text' sections found with different
> attribute
> s (E0000020)
> 
>   Image has the following dependencies:
> 
>     gdal15.dll
>     KERNEL32.dll
> 
>   Summary
> 
>         4000 .data
>        10000 .rdata
>         3000 .reloc
>         1000 .text
>        19000 .text
> 
> 
> [5]
> Dump of file C:\OSGeo4W\bin\zoo_loader.cgi
> 
> File Type: EXECUTABLE IMAGElibfcgi.dll
> LINK : warning LNK4078: multiple '.text' sections found with different
> attribute
> s (E0000020)
> 
>   Image has the following dependencies:
> 
>     libfcgi.dll
>     libcurl.dll
>     python25.dll
>     libxml2.dll
>     KERNEL32.dll
> 
>   Summary
> 
>        24000 .data
>         9000 .rdata
>         1000 .text
>        23000 .text
> 
> 
> 
> On 8 August 2012 09:54, Gérald Fenoy <gerald.fenoy at geolabs.fr> wrote:
>         Hello Farkas,
>         nice to hear back from you. Sorry for my mistake in providing
>         the
>         command to check dependencies which was wrong.
>         
>         This is is the correct command to use to check dependencies
>         with
>         standard tools providen in Visual Studio Express edition:
>         
>         dumpbin /dependents ogr_sp.zo
>         
>         Note that it may be interesting also to try running the same
>         request
>         from the command prompt to see more clearly what is happening
>         when
>         Apache is trying to run the program. To run ZOO-Kernel from
>         the command
>         line, please use the following syntaxe :
>         
>         .\zoo_loader.cgi "<YOUR_REQUEST>"
>         
>         Where <YOUR_REQUEST> should be replaced by the content
>         following the
>         quotation mark in the url you providen.
>         
>         I hope that this will help us to understand better where the
>         issue
>         occurs.
>         
>         Hope to hear back from you,
>         Best regards,
>         
>         
>         Le lundi 06 août 2012 à 21:30 +0200, Farkas H a écrit :
>         > Hi Gérald,
>         >
>         > thank you for your quick response.
>         >
>         > So far I just followed the tutorial from "Using OSGeo4W" to
>         "Testing -
>         > Now you should be able ... ZOO Kernel" provided here [1].
>         > I didn't compile my own libraries. I want to do this in the
>         next step.
>         >
>         > Since the file depends.exe was not on my machine I got it
>         from here
>         > [2].
>         > The provided command "depends /library our_sp.zo" didn't
>         work however.
>         >
>         > I appreciate further help.
>         >
>         > Cheers,
>         > Farkas
>         >
>         > [1]
>         > http://zoo-project.org/docs/kernel/install-windows.html
>         >
>         > [2]
>         > http://www.dependencywalker.com/
>         >
>         >
>         > On 6 August 2012 10:16, Gérald Fenoy
>         <gerald.fenoy at geolabs.fr> wrote:
>         >         Dear Frakas,
>         >         it is interesting to hear that you're using the
>         ZOO-Project on
>         >         Windows platform.
>         >
>         >         One more time, I would like to invite you to
>         subscribe to the
>         >         new mailing list, hosted by OSGeo, to continue this
>         discussion
>         >         [1].
>         >
>         >         Nevertheless, to try to answer your question I would
>         like to
>         >         ask you if you may run the following command :
>         >
>         >          depends /library our_sp.zo
>         >
>         >         This should show you if all the dependents dlls are
>         located in
>         >         the same  directory.
>         >
>         >         Hope this help and to hear from you on the
>         >         zoo-discuss at list.osgeo.org mailing list,
>         >         Best regards,
>         >
>         >         Gérald Fenoy
>         >         gerald.fenoy at geolabs.fr
>         >
>         >         [1]
>         >
>         http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss
>         >
>         >         Le 5 août 2012 à 19:52, Farkas H a écrit :
>         >
>         >         > Hi list,
>         >         >
>         >         > Testing my zooWPS setup on Windows 7 with execute
>         commands I
>         >         got errors (GetCapabilities and DescribeProcess
>         commands are
>         >         working), eg
>         >         >
>         >
>         http://localhost/cgi-bin/zoo_loader.cgi/?serviceprovider=&metapath=&request=Execute&service=WPS&version=1.0.0&Identifier=Centroid&DataInputs=InputPolygon=Reference@xlink:href=http%3A%2F%2Fdemo.opengeo.org%2Fgeoserver%2Fows%3FSERVICE%3DWFS%26REQUEST%3DGetFeature%26VERSION%3D1.0.0%26typename%3Dtopp%3Astates%26SRS%3DEPSG%3A4326%26FeatureID%3Dstates.31&ResponseDocument=Result@mimeType=text/html
>         >         >
>         >         > Internal Server Error
>         >         > Apache server log:
>         >         > Premature end of script headers: zoo_loader.cgi
>         >         > MAP => [Centroid] \r
>         >         > [mimeType] => [text/js] \r
>         >         > [encoding] => [UTF-8] \r
>         >         > [value] => [NULL] \r
>         >         >
>         >         > The same execute command works on the zoo server:
>         >         >
>         >
>         http://zoo-project.org/zoosoo?request=Execute&service=WPS&version=1.0.0&Identifier=Centroid&DataInputs=InputPolygon=Reference@xlink:href=http%3A%2F%2Fdemo.opengeo.org%2Fgeoserver%2Fows%3FSERVICE%3DWFS%26REQUEST%3DGetFeature%26VERSION%3D1.0.0%26typename%3Dtopp%3Astates%26SRS%3DEPSG%3A4326%26FeatureID%3Dstates.31&ResponseDocument=Result@mimeType=text/html
>         >         >
>         >         > Response result:
>         >         > <?xml version="1.0" encoding="utf-8"?>
>         >         > <wps:ExecuteResponse
>         >         xmlns:ows="http://www.opengis.net/ows/1.1"
>         >         xmlns:wps="http://www.opengis.net/wps/1.0.0"
>         >         xmlns:xlink="http://www.w3.org/1999/xlink"
>         >
>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>         >         xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
>         >
>         http://schemas.opengis.net/wps/1.0.0/wpsExecute_response.xsd"
>         >         service="WPS" version="1.0.0" xml:lang="en"
>         >         serviceInstance="http://www.zoo-project.org/zoo/">
>         >         >   <wps:Process wps:processVersion="2">
>         >         >     <ows:Identifier>Centroid</ows:Identifier>
>         >         >     <ows:Title>Get the centroid of a polygon.
>         </ows:Title>
>         >         >     <ows:Abstract>Create a buffer around a single
>         polygon.
>         >         Accepts the polygon as GML and provides GML output
>         for the
>         >         buffered feature. </ows:Abstract>
>         >         >   </wps:Process>
>         >         >   <wps:Status creationTime="2012-08-05T07:11:33Z">
>         >         >     <wps:ProcessSucceeded/>
>         >         >   </wps:Status>
>         >         >   <wps:ProcessOutputs>
>         >         >     <wps:Output>
>         >         >       <ows:Identifier>Result</ows:Identifier>
>         >         >       <ows:Title>The Centroid</ows:Title>
>         >         >       <wps:Data>
>         >         >         <wps:ComplexData mimeType="text/plain"
>         >
>         encoding="UTF-8"><![CDATA[<gml:Point><gml:coordinates>-114.585898485152327,44.767769456707043</gml:coordinates></gml:Point>]]></wps:ComplexData>
>         >         >       </wps:Data>
>         >         >     </wps:Output>
>         >         >   </wps:ProcessOutputs>
>         >         > </wps:ExecuteResponse>
>         >         >
>         >         >
>         >         > What could be the problem? I appreciate any
>         advice.
>         >         >
>         >         > Cheers, Farkas
>         >
>         >         > _______________________________________________
>         >         > Zoo-discuss mailing list
>         >         > Zoo-discuss at gisws.media.osaka-cu.ac.jp
>         >         >
>         >
>         http://gisws.media.osaka-cu.ac.jp/mailman/listinfo.cgi/zoo-discuss
>         >
>         >
>         
>         > _______________________________________________
>         > Zoo-discuss mailing list
>         > Zoo-discuss at lists.osgeo.org
>         > http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss
>         
>         --
>         Gérald Fenoy <gerald.fenoy at geolabs.fr>
> 
> _______________________________________________
> Zoo-discuss mailing list
> Zoo-discuss at lists.osgeo.org
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss

-- 
Gérald Fenoy <gerald.fenoy at geolabs.fr>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20120808/b380f7d5/attachment.pgp>


More information about the Zoo-discuss mailing list