Changeset 5


Ignore:
Timestamp:
Apr 20, 2010, 5:34:33 PM (15 years ago)
Author:
djay
Message:

Add some required configuration parameters (tmpPath and tmpUrl, the full path to store ExecuteResponse? and its relative path respectively) to make the storeExecuteResponse option working. Add a file to store error output coming from services. Unload shared library.

Location:
trunk/zoo-kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-kernel/main.cfg

    r1 r5  
    22encoding = utf-8
    33version = 1.0.0
    4 serverAddress = http://dev.geolabs.fr/services/wps/
     4serverAddress = http://www.zoo-project.org/zoo/
    55lang = fr-FR,en-CA
     6tmpPath=/YourFullTmpPathHere/
     7tmpUrl = ../TmpPathRelativeToServerAdress/
    68
    79[identification]
    810title = The Zoo WPS Development Server
    9 abstract = Development version of ZooWPS. See http://devpark.geolabs.fr/prj
     11abstract = Development version of ZooWPS. See http://www.zoo-project.org
    1012fees = None
    1113accessConstraints = none
     
    1315
    1416[provider]
    15 providerName=GeoLabs SARL
    16 providerSite=http://dev.geolabs.fr
     17providerName=ZOO Project
     18providerSite=http://www.zoo-project.org
    1719individualName=Gerald FENOY
    18 positionName=Developper
    19 role=Gérant
     20positionName=Developer
     21role=Dev
    2022adressDeliveryPoint=1280, avenue des Platanes
    2123addressCity=Lattes
  • trunk/zoo-kernel/zoo_service_loader.c

    r2 r5  
    482482        tmp_output=tmp_output->next;
    483483      }
    484       //dumpMaps(request_output_real_format);
    485484    }
    486485
     
    601600  else {
    602601    xmlInitParser();
    603     //dumpMap(postRequest);
    604602#ifdef DEBUG
    605603    fflush(stderr);
     
    608606#endif
    609607    xmlDocPtr doc =
    610       xmlParseMemory(postRequest->value,cgiContentLength);//strlen(postRequest->value));
     608      xmlParseMemory(postRequest->value,cgiContentLength);
    611609#ifdef DEBUG
    612610    fprintf(stderr,"AFTER\n");
     
    14341432          fflush(stderr);
    14351433#endif
    1436           //return 1;
    14371434        }
    14381435
    1439         //dlclose(so);
     1436        dlclose(so);
    14401437      } else {
    14411438        /**
     
    14721469            if(strcmp(mtoupper(r_inputs->value),"JS")==0){
    14731470              eres=zoo_js_support(&m,request_inputs,s1,&request_input_real_format,&request_output_real_format);
    1474               //dumpMaps(request_output_real_format);
    1475               //exit(-1);
    14761471            }
    14771472            else
     
    15241519      freopen(tmp1 , "w+", stdout);
    15251520      fclose(stdin);
    1526       fclose(stderr);
     1521      r_inputs=getMapFromMaps(m,"main","tmpPath");
     1522      sprintf(tmp1,"%s",r_inputs->value);
     1523      r_inputs=getMap(s1->content,"ServiceProvider");
     1524      sprintf(tmp1,"%s/%s",strdup(tmp1),r_inputs->value);
     1525      sprintf(tmp1,"%s_%d_error.log",strdup(tmp1),cpid);
     1526      freopen(tmp1,"w+",stderr);
    15271527      /**
    15281528       * set status to SERVICE_STARTED and flush stdout to ensure full
     
    16381638             */
    16391639            eres=execute(&m,&request_input_real_format,&request_output_real_format);
    1640             //dlclose(so);
     1640            dlclose(so);
    16411641          }
    16421642        } else {
    1643           //#ifdef DEBUG
    16441643          /**
    1645            * Should fallback to others languages.
    1646            * Maybe beter to keep this informations anywhere
    1647            * (in the service metadata ?)
     1644           * Unable to load the requested C Library
    16481645           */
    16491646          char tmps2[1024];
     
    17111708#endif
    17121709
    1713   //dlclose(so);
    17141710  return 0;
    17151711}
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png