[MOBY-dev] moby services deployment

Elise Larsonneur Elise.Larsonneur at avignon.inra.fr
Fri Jun 4 08:45:32 UTC 2010


Re !

In fact, the problem is that the task *-find-services* (in 
deployBuil.xml file) find a service called "jar". Where do this task 
retrieve the service names ?

dashboard console with further messages :

Selected services:
    Solstis_getAuthor/avilin05.avignon.inra.fr

-find-services:
[Services names] *Solstis_getAuthor,jar *    
<---------------------------------problem : service called "jar"

jar-datatypes:
      [jar] Building jar: 
/home/av07/gafl/elarsonneur/workspace/jMoby/build/lib/biomoby-datatypes.jar

deploy-remote:
    [mkdir] Created dir: 
/tmp/mobyremotedeploy-elarsonneur/null117677270/moby-services-to-deploy-2010-06-04

create-wsdd:
[Value property src.webapps] 
/home/av07/gafl/elarsonneur/workspace/jMoby/src/webapps/standard.wsdd.template}
[Value property impl.class] impl.class
[Value property service.service_name] *service.Solstis_getAuthor*
[Create Solstis_getAuthor.wsdd] Copying 1 file to 
/tmp/mobyremotedeploy-elarsonneur/null117677270/moby-services-to-deploy-2010-06-04/deploy-wsdd

create-wsdd:
[Value property src.webapps] 
/home/av07/gafl/elarsonneur/workspace/jMoby/src/webapps/standard.wsdd.template}
[Value property impl.class] impl.class
[Value property service.service_name] *service.jar*

BUILD FAILED
/home/av07/gafl/elarsonneur/workspace/jMoby/xmls/deployBuild.xml:311: 
The following error occurred while executing this line:
/home/av07/gafl/elarsonneur/workspace/jMoby/xmls/deployBuild.xml:376: 
The following error occurred while executing this line:
/home/av07/gafl/elarsonneur/workspace/jMoby/xmls/deployBuild.xml:229: 
Property 'service.jar' is not defined.



*TARGET   -find-services :*
<!-- ================================================================== -->
<!-- This target creates a comma-delimited list of names of services,   -->
<!-- taken from properties: service.*,  and fills it in property        -->
<!-- 'services.list'                                                    -->
<!-- ================================================================== -->
<target name="-find-services">
  <propertyselector
    property="services.list"
    delimiter=","
    match="service\..*?([^.]+)$"
    select="\1"
    casesensitive="false" />
  <fail unless="services.list">-
 
     No list of service names found.
     ===============================
     Each service that you want to deploy should be defined
     by a property of the following form (parts in upper-cases should be
     replaced by the real values):
        service.SERVICE-NAME = IMPLEMENTATION-CLASS-NAME

     Each service that you want to undeploy can be defined in the same
     way (implementation class is not needed), or simpler by creating
     a property 'services.list' containing a comma-delimited list of
     names of services to be undeployed.
  </fail>
  <echo message="${services.list}" taskname="Services names"/>
</target>




Thanks.

Elise Larsonneur.

Bioinformatics trainee.
UR GAFL
INRA Avignon
France





Edward Kawas wrote:
> The ant file is meant to help you copy your class files from a specific
> location (more about that in the links that I sent you) and creates the
> services.jar file for you. If you have to edit the build file then you are
> doing something wrong (in the sense that you aren't generating your services
> in the manner that MoSeS wishes that you would).
>
> Eddie
>
>   



More information about the MOBY-dev mailing list