|
From: Adriano G. <A.G...@le...> - 2012-10-29 16:49:25
|
Hi, I upgraded wsag4j to 2.0.0 everything is working fine with the provided template sample-template.xml but if I want to used my template carmen-template.xml (see below) I get: <ErrorCode dialect="http://schemas.scai.fraunhofer.de/wsag4j">2101</ErrorCode> <Description xml:lang="en">org.ogf.graap.wsag.api.exceptions.NegotiationException: Validation of the negotiation offer against template failed.</Description> <Description xml:lang="en"> at org.ogf.graap.wsag.server.engine.GenericNegotiation.negotiate(GenericNegotiation.java:336)</Description> ....... Any idea why? I am going mad!!! My template is here <?xml version="1.0" encoding="UTF-8"?> <wsag:Template wsag:TemplateId="1" xmlns:wsag="http://schemas.ggf.org/graap/2007/03/ws-agreement"> <wsag:Name>CARMEN-TEMPLATE-1</wsag:Name> <wsag:Context> <wsag:ServiceProvider>AgreementResponder</wsag:ServiceProvider> <wsag:TemplateId>1</wsag:TemplateId> <wsag:TemplateName>CARMEN-TEMPLATE-1</wsag:TemplateName> </wsag:Context> <wsag:Terms> <wsag:All> <!-- This piece of template has 1 Service Description Term called "RESOURCE_STD" which defines the name/version of the application that can be executed on some target compute resource--> <wsag:ServiceDescriptionTerm wsag:Name="RESOURCE_SDT" wsag:ServiceName="SAMPLE-SERVICE"> <jsdl:JobDefinition xmlns:jsdl="http://schemas.ggf.org/jsdl/2005/11/jsdl"> <jsdl:JobDescription> <jsdl:Resources> <jsdl:CandidateHosts> <jsdl:HostName>some_host</jsdl:HostName> </jsdl:CandidateHosts> <jsdl:ExclusiveExecution>true</jsdl:ExclusiveExecution> <jsdl:OperatingSystem> <jsdl:OperatingSystemType> <jsdl:OperatingSystemName>$OS_NAME</jsdl:OperatingSystemName> </jsdl:OperatingSystemType> <jsdl:OperatingSystemVersion>$OS_VERSION</jsdl:OperatingSystemVersion> </jsdl:OperatingSystem> <jsdl:CPUArchitecture> <jsdl:CPUArchitectureName>$OS_PROCESSOR_ARCHITECTURE</jsdl:CPUArchitectureName> </jsdl:CPUArchitecture> <jsdl:IndividualNetworkBandwidth> <jsdl:Exact>$TOTAL_BANDWIDTH</jsdl:Exact> </jsdl:IndividualNetworkBandwidth> <jsdl:TotalCPUCount> <jsdl:Exact>$TOTAL_CPU</jsdl:Exact> </jsdl:TotalCPUCount> <jsdl:TotalPhysicalMemory> <jsdl:Exact>$TOTAL_PHY_MEMORY</jsdl:Exact> </jsdl:TotalPhysicalMemory> <jsdl:TotalVirtualMemory> <jsdl:Exact>$TOTAL_VRT_MEMORY</jsdl:Exact> </jsdl:TotalVirtualMemory> <jsdl:TotalDiskSpace> <jsdl:Exact>$TOTAL_HD</jsdl:Exact> </jsdl:TotalDiskSpace> <jsdl:TotalResourceCount> <jsdl:Exact>$TOTALRESOURCES</jsdl:Exact> </jsdl:TotalResourceCount> </jsdl:Resources> </jsdl:JobDescription> </jsdl:JobDefinition> </wsag:ServiceDescriptionTerm> <wsag:ServiceDescriptionTerm wsag:Name="TIME_CONSTRAINT_SDT" wsag:ServiceName="SAMPLE-SERVICE"> <wsag4jt:TimeConstraint xmlns:wsag4jt="http://schemas.wsag4j.org/2009/07/wsag4j-scheduling-extensions"> <wsag4jt:StartTime>$STARTTIME</wsag4jt:StartTime> <wsag4jt:EndTime>$ENDTIME</wsag4jt:EndTime> <wsag4jt:Duration>$DURATION</wsag4jt:Duration> </wsag4jt:TimeConstraint> </wsag:ServiceDescriptionTerm> </wsag:All> </wsag:Terms> <wsag:CreationConstraints/> </wsag:Template> Thank you very much, Adriano |