You can subscribe to this list here.
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
(7) |
Oct
(6) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: SunDevil L. <sun...@gm...> - 2015-02-19 22:53:32
|
I am new for the WSAG4J rest 2.0. I just follow the steps to execute the software and the source is attached. I got a error and I need help to deal with it. The statement SampleAgreementTemplate negotiationTemplate = new SampleAgreementTemplate(template); causes errors Exception in thread "main" java.lang.NoClassDefFoundError: org/ogf/graap/wsag/api/pattern/ComputeResourcePattern at org.ogf.graap.wsag.samples.actions.SampleAgreementTemplate.<init>(SampleAgreementTemplate.java:318) at Main.main(Main.java:222) Caused by: java.lang.ClassNotFoundException: org.ogf.graap.wsag.api.pattern.ComputeResourcePattern at java.net.URLClassLoader$1.run(URLClassLoader.java:372) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:360) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 2 more Chris |
From: Oliver W. <ow...@us...> - 2013-09-26 19:57:50
|
Hi Giacomo, >> org.apache.xmlbeans.impl.values.XmlAnyTypeImpl cannot be cast to org.ogf.graap.wsag4j.types.configuration.WSAG4JEngineConfigurationDocument this error can basically have two reasons: 1) the wsag4j engine types are not included in the classpath and therefore the engine configuration is not correctly instantiated by xmlbeans. 2) the wsag4j engine configuration file is corrupt, i.e. the xml root element has a wrong namespace or name. You should first check if you have included the wsag4j-common-types jar file in the classpath of your project. In case you have, check if the engine configuration file is correct (i.e. compare to default configuration file). Best regards Oliver On Wed, Sep 25, 2013 at 1:22 PM, Giacomo Tanganelli <g.t...@ie...> wrote: > Hi Oliver, > thank you for the answer, I have located the engine module inside the > wsag4j-server however I don't know how to use it. > I try to explain better what I'm trying to do. I have integrated the > wsag4j-server jar as well as the wsag4j-common-types, > wsag4j-negotiation-types, wsag4j-addressing-types and the > wsag4j-agreement-types. Now in the Activator class inside my bundle, I have > "copied" the code from > wsag4j-server/src/test/java/org/ogf/graap/wsag/server/engine/GenericNegotiationTest.java, > in detail I copied the following function: > > private WSAG4JEngineConfigurationType loadEngineConfiguration() > > the function has this statement: > > WSAG4JEngineConfigurationDocument engineConfigurationDocumentn = > (WSAG4JEngineConfigurationDocument) XmlObject.Factory.parse( in ); > > and at run time I obtain the following error: > > org.apache.xmlbeans.impl.values.XmlAnyTypeImpl cannot be cast to > org.ogf.graap.wsag4j.types.configuration.WSAG4JEngineConfigurationDocument > 2013-09-25 12:59:30,138 | ERROR | [......] | Could not load WSAG4J engine > configuration file: wsag4j-engine.config > > I supposed that the problem was related to xmlbeans so I have also tried to > replace the standard xmlbeans.jar with the corresponding OSGi bundle > version, called Apache ServiceMix :: Bundles :: xmlbeans but without > success. > > Any suggestions? > > Giacomo Tanganelli > > > 2013/9/24 Oliver Waeldrich <ow...@us...> >> >> Hi Giacomo, >> >> the wsag4j modules are available as maven modules via the Maven >> Central repository. >> If you want to implement an OSGI application you can use the >> wsag4j-engine module >> (jar files) for that. >> >> Best regards, >> Oliver >> >> On Fri, Aug 30, 2013 at 3:36 PM, Giacomo Tanganelli >> <g.t...@ie...> wrote: >> > Hi, >> > I am new to this software and i need some clarification regarding how to >> > use >> > it and also how to customize it. First of all I tried the software as it >> > is, >> > I deployed the war server in a tomcat7 container and everything seems to >> > work correctly (with the WSRF distribution). However I read on the site >> > " It >> > is also possible to use the WSAG4J engine without a remote stack at all, >> > e.g. in a desktop application", this is exactly what I need. In detail, >> > I >> > want to integrate WSAG4J in an OSGi container, so all remote calls must >> > become local calls between OSGi bundles. I tried to inspect the code but >> > there are many jars and I can't understand which ones are needed for my >> > purpose. Can someone give me some suggestions or explain where I can >> > find a >> > tutorial explaining which jars or classes are needed to build a WSAG4J >> > server without remote stack? >> > >> > Thanks in advance >> > Giacomo >> > >> > -- >> > Giacomo Tanganelli >> > Dept. Information Engineering >> > Via Diotisalvi 2, I-56122 Pisa, ITALY >> > Phone (direct/switch/fax): +39 050 2217 472 >> > E-mail: g.t...@ie... >> > >> > >> > ------------------------------------------------------------------------------ >> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! >> > Discover the easy way to master current and previous Microsoft >> > technologies >> > and advance your career. Get an incredible 1,500+ hours of step-by-step >> > tutorial videos with LearnDevNow. Subscribe today and save! >> > >> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk >> > _______________________________________________ >> > Wsag4j-users mailing list >> > Wsa...@li... >> > https://lists.sourceforge.net/lists/listinfo/wsag4j-users >> > > > > > > -- > Giacomo Tanganelli > Dept. Information Engineering > Via Diotisalvi 2, I-56122 Pisa, ITALY > Phone (direct/switch/fax): +39 050 2217 472 > E-mail: g.t...@ie... |
From: Oliver W. <ow...@us...> - 2013-09-24 17:30:56
|
Hi Giacomo, the wsag4j modules are available as maven modules via the Maven Central repository. If you want to implement an OSGI application you can use the wsag4j-engine module (jar files) for that. Best regards, Oliver On Fri, Aug 30, 2013 at 3:36 PM, Giacomo Tanganelli <g.t...@ie...> wrote: > Hi, > I am new to this software and i need some clarification regarding how to use > it and also how to customize it. First of all I tried the software as it is, > I deployed the war server in a tomcat7 container and everything seems to > work correctly (with the WSRF distribution). However I read on the site " It > is also possible to use the WSAG4J engine without a remote stack at all, > e.g. in a desktop application", this is exactly what I need. In detail, I > want to integrate WSAG4J in an OSGi container, so all remote calls must > become local calls between OSGi bundles. I tried to inspect the code but > there are many jars and I can't understand which ones are needed for my > purpose. Can someone give me some suggestions or explain where I can find a > tutorial explaining which jars or classes are needed to build a WSAG4J > server without remote stack? > > Thanks in advance > Giacomo > > -- > Giacomo Tanganelli > Dept. Information Engineering > Via Diotisalvi 2, I-56122 Pisa, ITALY > Phone (direct/switch/fax): +39 050 2217 472 > E-mail: g.t...@ie... > > ------------------------------------------------------------------------------ > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft technologies > and advance your career. Get an incredible 1,500+ hours of step-by-step > tutorial videos with LearnDevNow. Subscribe today and save! > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk > _______________________________________________ > Wsag4j-users mailing list > Wsa...@li... > https://lists.sourceforge.net/lists/listinfo/wsag4j-users > |
From: Giacomo T. <g.t...@ie...> - 2013-08-30 13:36:38
|
Hi, I am new to this software and i need some clarification regarding how to use it and also how to customize it. First of all I tried the software as it is, I deployed the war server in a tomcat7 container and everything seems to work correctly (with the WSRF distribution). However I read on the site " It is also possible to use the WSAG4J engine without a remote stack at all, e.g. in a desktop application", this is exactly what I need. In detail, I want to integrate WSAG4J in an OSGi container, so all remote calls must become local calls between OSGi bundles. I tried to inspect the code but there are many jars and I can't understand which ones are needed for my purpose. Can someone give me some suggestions or explain where I can find a tutorial explaining which jars or classes are needed to build a WSAG4J server without remote stack? Thanks in advance Giacomo -- Giacomo Tanganelli Dept. Information Engineering Via Diotisalvi 2, I-56122 Pisa, ITALY Phone (direct/switch/fax): +39 050 2217 472 E-mail: g.t...@ie... |
From: Oliver W. <ow...@us...> - 2012-10-30 07:20:30
|
Hi Adriano, what I see from the client log is that the negotiation constraint "TimeConstraintSDT_TimeConstraint_START_TIME" is defined wrong. You set a min/max inclusive value which is applicable for a date time element, but you refer in the constraint location element to the complex type ".../wsag4jt:TimeConstraint" (not to the start or end time). Therefore the validation must fail. You should use a valid XPath expression in your negotiation constrains location, such as: declare namespace wsag-tc='http://schemas.wsag4j.org/2009/07/wsag4j-scheduling-extensions';declare namespace wsag='http://schemas.ggf.org/graap/2007/03/ws-agreement';$this/wsag:Terms/wsag:All/wsag:ServiceDescriptionTerm[@wsag:Name = 'TIME_CONSTRAINT_SDT']/wsag-tc:TimeConstraint/wsag-tc:StartTime Moreover, make sure that you use the namespace prefixes that you defined in the beginning of your XPath expression throughout the expression (i.e. don't use wsag4jt in the expression if you defined the prefix wsag4-tc in the XPath declaration section). You should find more detailed information on the validation process in the server error log (i.e. catalina.log when you use tomcat). This should make debugging for such issues more easy. If there are more problems with constraint validation please also attach the server log. Best regards, Oliver On Mon, Oct 29, 2012 at 11:22 PM, Adriano Galati <A.G...@le...> wrote: > Hi Oliver, > > I attach the log I have got. > I have got > <muse-op:State> > <muse-op:Rejected/> > </muse-op:State> > > but I have no idea why!!! > > Thanks a lot, > Adriano > ________________________________________ > From: oli...@go... [oli...@go...] On Behalf Of Oliver Waeldrich [ow...@us...] > Sent: 29 October 2012 17:49 > To: Adriano Galati > Cc: wsa...@li... > Subject: Re: [Wsag4j-users] Validation of the negotiation offer against template failed. > > Hi Adriano, > > could you please provide the complete error or the server log? Usually > you should find a more specific error message here, for example which > part of the negotiation constraint checking failed. > > Basically, all negotiation offers are checked against the creation > constraints of the template and additionally against the negotiation > constraints of the previously exchanged > offers. The detailed XML validation error can be found in the error > details or the log file. > > This error may also occur in case the negotiation offer is not valid > according to the schema, for example a required element/attribute is > missing; or, in case you use extension points, the corresponding > schema is missing on the server. > > Best regards, > Oliver > > > On Mon, Oct 29, 2012 at 5:49 PM, Adriano Galati <A.G...@le...> wrote: >> 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 >> ------------------------------------------------------------------------------ >> The Windows 8 Center - In partnership with Sourceforge >> Your idea - your app - 30 days. >> Get started! >> http://windows8center.sourceforge.net/ >> what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/ >> _______________________________________________ >> Wsag4j-users mailing list >> Wsa...@li... >> https://lists.sourceforge.net/lists/listinfo/wsag4j-users |
From: Adriano G. <A.G...@le...> - 2012-10-29 22:23:10
|
Hi Oliver, I attach the log I have got. I have got <muse-op:State> <muse-op:Rejected/> </muse-op:State> but I have no idea why!!! Thanks a lot, Adriano ________________________________________ From: oli...@go... [oli...@go...] On Behalf Of Oliver Waeldrich [ow...@us...] Sent: 29 October 2012 17:49 To: Adriano Galati Cc: wsa...@li... Subject: Re: [Wsag4j-users] Validation of the negotiation offer against template failed. Hi Adriano, could you please provide the complete error or the server log? Usually you should find a more specific error message here, for example which part of the negotiation constraint checking failed. Basically, all negotiation offers are checked against the creation constraints of the template and additionally against the negotiation constraints of the previously exchanged offers. The detailed XML validation error can be found in the error details or the log file. This error may also occur in case the negotiation offer is not valid according to the schema, for example a required element/attribute is missing; or, in case you use extension points, the corresponding schema is missing on the server. Best regards, Oliver On Mon, Oct 29, 2012 at 5:49 PM, Adriano Galati <A.G...@le...> wrote: > 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 > ------------------------------------------------------------------------------ > The Windows 8 Center - In partnership with Sourceforge > Your idea - your app - 30 days. > Get started! > http://windows8center.sourceforge.net/ > what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/ > _______________________________________________ > Wsag4j-users mailing list > Wsa...@li... > https://lists.sourceforge.net/lists/listinfo/wsag4j-users |
From: Oliver W. <ow...@us...> - 2012-10-29 17:49:40
|
Hi Adriano, could you please provide the complete error or the server log? Usually you should find a more specific error message here, for example which part of the negotiation constraint checking failed. Basically, all negotiation offers are checked against the creation constraints of the template and additionally against the negotiation constraints of the previously exchanged offers. The detailed XML validation error can be found in the error details or the log file. This error may also occur in case the negotiation offer is not valid according to the schema, for example a required element/attribute is missing; or, in case you use extension points, the corresponding schema is missing on the server. Best regards, Oliver On Mon, Oct 29, 2012 at 5:49 PM, Adriano Galati <A.G...@le...> wrote: > 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 > ------------------------------------------------------------------------------ > The Windows 8 Center - In partnership with Sourceforge > Your idea - your app - 30 days. > Get started! > http://windows8center.sourceforge.net/ > what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/ > _______________________________________________ > Wsag4j-users mailing list > Wsa...@li... > https://lists.sourceforge.net/lists/listinfo/wsag4j-users |
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 |
From: Oliver W. <ow...@us...> - 2012-10-29 08:23:31
|
Hi Adriano, with the 2.0.0 version we fixed some typos in the example templates and the corresponding code in the pattern module. You should change the name of your resource service description term from "RESOURCE_STD" to "RESOURCE_SDT". Simmilar name changes are required for "COMPUTE_SDT". Best regards, Oliver On Fri, Oct 26, 2012 at 3:27 AM, Adriano Galati <A.G...@le...> wrote: > Hi everybody, > > I get this error message and I have no idea how to fix it: > java.lang.IllegalStateException: Invalid number of advance reservation time constraints in template. > at org.ogf.graap.wsag.api.pattern.AdvanceReservationPattern.initialize(AdvanceReservationPattern.java:114) > at org.ogf.graap.wsag.api.pattern.AdvanceReservationPattern.<init>(AdvanceReservationPattern.java:102) > at org.ogf.graap.wsag.samples.actions.SampleAgreementTemplate.<init>(SampleAgreementTemplate.java:319) > at uk.leeds.csp.client.Main.main(Main.java:226) > > I created my Template > > <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_STD" wsag:ServiceName="SAMPLE-SERVICE"> > <jsdl:JobDefinition xmlns:jsdl="http://schemas.ggf.org/jsdl/2005/11/jsdl"> > <jsdl:JobDescription> > <jsdl:Resources> > ...... > </jsdl:Resources> > </jsdl:JobDescription> > </jsdl:JobDefinition> > </wsag:ServiceDescriptionTerm> > <wsag:ServiceDescriptionTerm wsag:Name="TIME_CONSTRAINT_SDT" wsag:ServiceName="SAMPLE-SERVICE"> > <wsag4jt:TimeConstraint xmlns:wsag4jt="http://www.comp.leeds.ac.uk/2012/10/CMAC-scheduling-extensions"> > <wsag4jt:StartTime>$STARTTIME</wsag4jt:StartTime> > <wsag4jt:EndTime>$ENDTIME</wsag4jt:EndTime> > <wsag4jt:Duration>$DURATION</wsag4jt:Duration> > <!-- wsag4jt:Frequency>$FREQUENCY</wsag4jt:Frequency --> > </wsag4jt:TimeConstraint> > </wsag:ServiceDescriptionTerm> > </wsag:All> > </wsag:Terms> > <wsag:CreationConstraints> > <!-- Resources_SDT --> > > </wsag:CreationConstraints> > </wsag:Template> > > I added the line below in wsag4j-engine.config > > <wsag4j-config:Validator> > <wsag4j-config:SchemaImports> > ...... > <wsag4j-config:SchemaFilename>/validator/CMAC-scheduling-types.xsd</wsag4j-config:SchemaFilename> > </wsag4j-config:SchemaImports> > </wsag4j-config:Validator> > > then I created my CMAC-scheduling-types.xsd which is similar to wsag4j-scheduling-types.xsd with the Frequency element: > > <?xml version="1.0" encoding="UTF-8"?> > <xs:schema > targetNamespace="http://www.comp.leeds.ac.uk/2012/10/CMAC-scheduling-extensions" > xmlns:res-sla="http://www.comp.leeds.ac.uk/2012/10/CMAC-scheduling-extensions" > xmlns:xs="http://www.w3.org/2001/XMLSchema" > elementFormDefault="qualified" > attributeFormDefault="qualified"> > > <xs:complexType name="TimeConstraintType"> > <xs:sequence> > <xs:element name="StartTime" type="xs:dateTime" minOccurs="0" maxOccurs="1" /> > <xs:element name="EndTime" type="xs:dateTime" minOccurs="0" maxOccurs="1" /> > <xs:element name="Duration" type="xs:int" minOccurs="0" maxOccurs="1" /> > <xs:element name="Frequency" type="xs:int" minOccurs="0" maxOccurs="1" /> > </xs:sequence> > </xs:complexType> > > <xs:element name="TimeConstraint" type="res-sla:TimeConstraintType"/> > </xs:schema> > > 3) Compiled and created CMAC-Schema.jar and saved it in WebContent/WEB-INF/lib/ > scomp -out CMAC-Schema.jar CMAC-scheduling-types.xsd -compiler "/usr/bin/javac" > > 4) in catalog.xml added > <public publicId="http://www.comp.leeds.ac.uk/2012/10/CMAC-scheduling-extensions" > uri="./validator/CMAC-scheduling-types.xsd"/> > > The error is pointing to this line > arPattern = new AdvanceReservationPattern( template.getTerms().getAll() ); > in SampleAgreementTemplate.java where which is provided by wsag4j distribution. > > Please, does anybody knows what is the problem and how to fix it? > Thank you very much, > > Adriano > > -- > Dr. Adriano Galati > > Room: 7.14 EC Stoner Building > Collaborative Systems and Performance Research Group > School of Computing > Faculty of Engineering > University of Leeds > > Woodhouse Lane > Leeds, LS2 9JT > United Kingdom > > Email: a.g...@le... > Url: http://www.comp.leeds.ac.uk/CollabSysAndPerf/html/about_adriano.php > Tel: +44 (0)113 3431116 > Fax: +44 (0)113 3435468 > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > Wsag4j-users mailing list > Wsa...@li... > https://lists.sourceforge.net/lists/listinfo/wsag4j-users |
From: Adriano G. <A.G...@le...> - 2012-10-26 01:27:43
|
Hi everybody, I get this error message and I have no idea how to fix it: java.lang.IllegalStateException: Invalid number of advance reservation time constraints in template. at org.ogf.graap.wsag.api.pattern.AdvanceReservationPattern.initialize(AdvanceReservationPattern.java:114) at org.ogf.graap.wsag.api.pattern.AdvanceReservationPattern.<init>(AdvanceReservationPattern.java:102) at org.ogf.graap.wsag.samples.actions.SampleAgreementTemplate.<init>(SampleAgreementTemplate.java:319) at uk.leeds.csp.client.Main.main(Main.java:226) I created my Template <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_STD" wsag:ServiceName="SAMPLE-SERVICE"> <jsdl:JobDefinition xmlns:jsdl="http://schemas.ggf.org/jsdl/2005/11/jsdl"> <jsdl:JobDescription> <jsdl:Resources> ...... </jsdl:Resources> </jsdl:JobDescription> </jsdl:JobDefinition> </wsag:ServiceDescriptionTerm> <wsag:ServiceDescriptionTerm wsag:Name="TIME_CONSTRAINT_SDT" wsag:ServiceName="SAMPLE-SERVICE"> <wsag4jt:TimeConstraint xmlns:wsag4jt="http://www.comp.leeds.ac.uk/2012/10/CMAC-scheduling-extensions"> <wsag4jt:StartTime>$STARTTIME</wsag4jt:StartTime> <wsag4jt:EndTime>$ENDTIME</wsag4jt:EndTime> <wsag4jt:Duration>$DURATION</wsag4jt:Duration> <!-- wsag4jt:Frequency>$FREQUENCY</wsag4jt:Frequency --> </wsag4jt:TimeConstraint> </wsag:ServiceDescriptionTerm> </wsag:All> </wsag:Terms> <wsag:CreationConstraints> <!-- Resources_SDT --> </wsag:CreationConstraints> </wsag:Template> I added the line below in wsag4j-engine.config <wsag4j-config:Validator> <wsag4j-config:SchemaImports> ...... <wsag4j-config:SchemaFilename>/validator/CMAC-scheduling-types.xsd</wsag4j-config:SchemaFilename> </wsag4j-config:SchemaImports> </wsag4j-config:Validator> then I created my CMAC-scheduling-types.xsd which is similar to wsag4j-scheduling-types.xsd with the Frequency element: <?xml version="1.0" encoding="UTF-8"?> <xs:schema targetNamespace="http://www.comp.leeds.ac.uk/2012/10/CMAC-scheduling-extensions" xmlns:res-sla="http://www.comp.leeds.ac.uk/2012/10/CMAC-scheduling-extensions" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="qualified"> <xs:complexType name="TimeConstraintType"> <xs:sequence> <xs:element name="StartTime" type="xs:dateTime" minOccurs="0" maxOccurs="1" /> <xs:element name="EndTime" type="xs:dateTime" minOccurs="0" maxOccurs="1" /> <xs:element name="Duration" type="xs:int" minOccurs="0" maxOccurs="1" /> <xs:element name="Frequency" type="xs:int" minOccurs="0" maxOccurs="1" /> </xs:sequence> </xs:complexType> <xs:element name="TimeConstraint" type="res-sla:TimeConstraintType"/> </xs:schema> 3) Compiled and created CMAC-Schema.jar and saved it in WebContent/WEB-INF/lib/ scomp -out CMAC-Schema.jar CMAC-scheduling-types.xsd -compiler "/usr/bin/javac" 4) in catalog.xml added <public publicId="http://www.comp.leeds.ac.uk/2012/10/CMAC-scheduling-extensions" uri="./validator/CMAC-scheduling-types.xsd"/> The error is pointing to this line arPattern = new AdvanceReservationPattern( template.getTerms().getAll() ); in SampleAgreementTemplate.java where which is provided by wsag4j distribution. Please, does anybody knows what is the problem and how to fix it? Thank you very much, Adriano -- Dr. Adriano Galati Room: 7.14 EC Stoner Building Collaborative Systems and Performance Research Group School of Computing Faculty of Engineering University of Leeds Woodhouse Lane Leeds, LS2 9JT United Kingdom Email: a.g...@le... Url: http://www.comp.leeds.ac.uk/CollabSysAndPerf/html/about_adriano.php Tel: +44 (0)113 3431116 Fax: +44 (0)113 3435468 |
From: Oliver W. <ow...@us...> - 2012-09-27 13:40:35
|
This is an error in the docu. The correct URL is http://packcs-e0.scai.fraunhofer.de/archiva/repository/maven2. I will fix this later totday. Best regards, Oliver On Thu, Sep 27, 2012 at 3:13 PM, Adriano Galati <A.G...@le...> wrote: > Hi everybody, > > I am trying to set up wsag4j-client using eclipse and as a maven project. > Once inserted the following lines in pom.xml > > <dependencies> > <dependency> > <groupId>net.sf.wsag4j.wsrf</groupId> > <artifactId>wsag4j-wsrf-client</artifactId> > <version>2.0.0</version> > </dependency> > </dependencies> > > <repositories> > <repository> > <id>packcs</id> > <name>packcs release-repository</name> > <url>http://packcs-e0.scai.fraunhofer.de/archiva/repository/maven</url> > </repository> > </repositories> > > I get "Missing artefact net.sf.wsag4j.wsrf ..." > But if I change <url>http://packcs-e0.scai.fraunhofer.de/archiva/repository/maven</url> > With <url>http://packcs-e0.scai.fraunhofer.de/archiva/repository/internal</url> > Which is the old repository, this is fine. > > Anybody knows way? > Shall I keep /maven or /internal ? > > Cheers, > Adriano > > -- > Dr. Adriano Galati > > Collaborative Systems and Performance Research Group School of Computing Faculty of Engineering University of Leeds > > Email: a.g...@le... > Url: http://www.comp.leeds.ac.uk/scsag > Tel: +44 (0)113 3431116 > Fax: +44 (0)113 3435468 > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://ad.doubleclick.net/clk;258768047;13503038;j? > http://info.appdynamics.com/FreeJavaPerformanceDownload.html > _______________________________________________ > Wsag4j-users mailing list > Wsa...@li... > https://lists.sourceforge.net/lists/listinfo/wsag4j-users |
From: Adriano G. <A.G...@le...> - 2012-09-27 13:14:25
|
Hi everybody, I am trying to set up wsag4j-client using eclipse and as a maven project. Once inserted the following lines in pom.xml <dependencies> <dependency> <groupId>net.sf.wsag4j.wsrf</groupId> <artifactId>wsag4j-wsrf-client</artifactId> <version>2.0.0</version> </dependency> </dependencies> <repositories> <repository> <id>packcs</id> <name>packcs release-repository</name> <url>http://packcs-e0.scai.fraunhofer.de/archiva/repository/maven</url> </repository> </repositories> I get "Missing artefact net.sf.wsag4j.wsrf ..." But if I change <url>http://packcs-e0.scai.fraunhofer.de/archiva/repository/maven</url> With <url>http://packcs-e0.scai.fraunhofer.de/archiva/repository/internal</url> Which is the old repository, this is fine. Anybody knows way? Shall I keep /maven or /internal ? Cheers, Adriano -- Dr. Adriano Galati Collaborative Systems and Performance Research Group School of Computing Faculty of Engineering University of Leeds Email: a.g...@le... Url: http://www.comp.leeds.ac.uk/scsag Tel: +44 (0)113 3431116 Fax: +44 (0)113 3435468 |
From: Oliver W. <ow...@us...> - 2012-09-26 18:14:45
|
Hi Adriano, the process is slightly different. The idea is when a new negotiation instance is created, the first thing that has to be done is to identify the responsibilities of the negotiating parties. Therefore we pass in the negotiation context. That context provides the metadata for the new negotiation instance and clarifies the roles and responsibilities. Let's take a look on the following code in order to illustrate the idea: NegotiationContextDocument negContextDoc = NegotiationContextDocument.Factory.newInstance(); NegotiationContextType negContext = negContextDoc.addNewNegotiationContext(); negContext.setAgreementFactoryEPR(factory.getEndpoint()); negContext.setAgreementResponder(NegotiationRoleType.NEGOTIATION_RESPONDER); This code creates a new negotiation context and sets an agreement factory endpoint. This endpoint identifies the agreement factory for which an agreement offer is negotiated. If a suitable offer was negotiated this factory is the place to create the agreement with, because this factory should be aware of the preceding negotiation process. The property agreement responder specifies that the responder of an agreement creation request (that is the agreement factory) is the same party as the negotiation responder. In other words, the party that initiates the negotiation process must also send the create agreement request. That's all what is specified in the context, no EPR yet. Basically, this is a very specific signaling scenario. There might be other scenarios where the roles are changed. Imagine a situation where a system automatically starts service advertisements or negotiation processes with customers, but the customers are finally in charge to create the agreements if they find some offers beneficial. WSAG4J does not support such scenarios out of the box, it only provides a framework that allows you to implement such scenarios. Let's come back to your question. The first thing is that when you want to pass an EPR of the client to a server you first need a client resource that is represented by that EPR. The EPR could for example represent a WSRF resource, it could be also some other kind of remotely accessible resource. Let's assume you have deployed a servlet that represents the initiator at http://foo.org/bar. This servlet should be invoked when the server creates the agreement. This can be achieved through the following code: ... // create an offer based on template1 and set the URL to you servlet AgreementOfferType offer = new AgreementOfferType(template1); offer.setInitiatorEPR(EndpointReferenceType.Factory.newInstance()); offer.getInitiatorEPR().addNewAddress().setStringValue("http://foo.org/bar"); AgreementClient agreement = factory.createAgreement( offer ); ... In your create agreement action that is invoked for that offer (the action that registered for offers based on template1) you need to extract the initiator EPR as follows: public Agreement createAgreement( AgreementOffer offer ) { EndpointReferenceType epr = offer.getInitiatorEPR(); // now get the address of the EPR, create a java.net.URL and call the initiator // servlet through a HTTP GET request ... } As mentioned before, I have tested this with the 2.0.0 version. I'm not sure if this also works for 1.0.2. I hope this helps. Best regards, Oliver On Wed, Sep 26, 2012 at 3:24 PM, Adriano Galati <A.G...@le...> wrote: > Hi Oliver, > > I am a beginner with wsag4j and I am a bit lost. > I started with the example provided in wsag4j-1.0.2 > I believe that the initiator is set on the client in that example > negOfferContext.setCreator( NegotiationRoleType.NEGOTIATION_INITIATOR ); > > Can you please send me an example where the server can retrieve the EPR of the client so that the server can contact the client in the future? > > Do you think that I have to rewrite the SampleCreateAgreementAction class and import org.ogf.graap.wsag.wsrf.impl; ? > > Please, any help would be much appreciated, > Thank you very much, > > kins regards, > Adriano > > ________________________________________ > From: oli...@go... [oli...@go...] On Behalf Of Oliver Waeldrich [ow...@us...] > Sent: 24 September 2012 11:35 > To: Adriano Galati > Cc: wsa...@li... > Subject: Re: [Wsag4j-users] Client's Endpoint Reference from wsag4j server > > Dear Adriano, > > The EPR you try to use is basically the initiator agreement EPR. It > should be used when you have a scenario were each party needs a copy > from the created agreement after agreement creation, i.e. for > bi-lateral monitoring (see WS-Agreement spec, section Port Types and > Operations - signaling scenarios). However, this should basically > work. I took a look on the WSRF implementation and the initiator EPR > is set in the WSRF stack. By the way, negotiation is supported by the > framework out of the box. > > In order to help you could you please tell me which implementation you > use, WSRF or REST? Is the Initiator EPR set on the client side (this > is not done automatically). Could you please provide a simple test > project? > > Best regards, > Oliver |
From: Oliver W. <ow...@us...> - 2012-09-24 20:14:12
|
Dear Adriano, I checked your test program against the wsag4j 2.0.0 version from sourceforge and for me it seems to work. I changed the template and factory id back to the sample ids and the test worked fine. I guess your problem is that the initiator agreement id is not automatically set by the API when creating an agreement offer from a negotiated offer. As I explained before, the initiator id is primarily foreseen by the specification for symmetric signaling scenarios. If you want to use the initiator EPR in a custom scenario in a slightly different way, this is still possible. In that case you need to set the EPR in your code. The following snippet illustrates this: AgreementOfferType offer = new AgreementOfferType( selectedCounterOffer ); offer.setInitiatorEPR( EndpointReferenceType.Factory.newInstance() ); offer.getInitiatorEPR().addNewAddress().setStringValue( "http://foo.org" ); System.out.println( " EPR in client \n" + offer.getInitiatorEPR() ); AgreementClient agreement = getFactoryClient().createAgreement( offer ); On the server side you can than query the agreement initiator with the normal API, i.e.: offer.getInitiatorEPR(); Best regards, Oliver On Mon, Sep 24, 2012 at 7:02 PM, Adriano Galati <A.G...@le...> wrote: > Dear Oliver, > > I am using WSRF. > I attach a simple client which contacts the wsag4j server. > I am using wsag4j-engine.config from the wsag4j-server-1.0.2 > Thank you very much. > > Kind regards, > Adriano > > ________________________________________ > From: oli...@go... [oli...@go...] On Behalf Of Oliver Waeldrich [ow...@us...] > Sent: 24 September 2012 11:35 > To: Adriano Galati > Cc: wsa...@li... > Subject: Re: [Wsag4j-users] Client's Endpoint Reference from wsag4j server > > Dear Adriano, > > The EPR you try to use is basically the initiator agreement EPR. It > should be used when you have a scenario were each party needs a copy > from the created agreement after agreement creation, i.e. for > bi-lateral monitoring (see WS-Agreement spec, section Port Types and > Operations - signaling scenarios). However, this should basically > work. I took a look on the WSRF implementation and the initiator EPR > is set in the WSRF stack. By the way, negotiation is supported by the > framework out of the box. > > In order to help you could you please tell me which implementation you > use, WSRF or REST? Is the Initiator EPR set on the client side (this > is not done automatically). Could you please provide a simple test > project? > > Best regards, > Oliver |
From: Adriano G. <A.G...@le...> - 2012-09-24 17:03:03
|
Dear Oliver, I am using WSRF. I attach a simple client which contacts the wsag4j server. I am using wsag4j-engine.config from the wsag4j-server-1.0.2 Thank you very much. Kind regards, Adriano ________________________________________ From: oli...@go... [oli...@go...] On Behalf Of Oliver Waeldrich [ow...@us...] Sent: 24 September 2012 11:35 To: Adriano Galati Cc: wsa...@li... Subject: Re: [Wsag4j-users] Client's Endpoint Reference from wsag4j server Dear Adriano, The EPR you try to use is basically the initiator agreement EPR. It should be used when you have a scenario were each party needs a copy from the created agreement after agreement creation, i.e. for bi-lateral monitoring (see WS-Agreement spec, section Port Types and Operations - signaling scenarios). However, this should basically work. I took a look on the WSRF implementation and the initiator EPR is set in the WSRF stack. By the way, negotiation is supported by the framework out of the box. In order to help you could you please tell me which implementation you use, WSRF or REST? Is the Initiator EPR set on the client side (this is not done automatically). Could you please provide a simple test project? Best regards, Oliver |
From: Oliver W. <ow...@us...> - 2012-09-24 10:35:50
|
Dear Adriano, The EPR you try to use is basically the initiator agreement EPR. It should be used when you have a scenario were each party needs a copy from the created agreement after agreement creation, i.e. for bi-lateral monitoring (see WS-Agreement spec, section Port Types and Operations - signaling scenarios). However, this should basically work. I took a look on the WSRF implementation and the initiator EPR is set in the WSRF stack. By the way, negotiation is supported by the framework out of the box. In order to help you could you please tell me which implementation you use, WSRF or REST? Is the Initiator EPR set on the client side (this is not done automatically). Could you please provide a simple test project? Best regards, Oliver |
From: Adriano G. <A.G...@le...> - 2012-09-23 22:22:15
|
Hi, I am using wsag4j 1.0.2 and working on a renegotiation protocol. I am struggling to retrieve the client Endpoint Reference fron the server side (I need this information because the server might recontact the client in the future to renegotiate the agreement). I tried with offer.getInitiatorEPR() in SampleCreateAgreementAction but I get a null pointer. Does anybody know how to retrieve the client Endpoint Reference/url. Thank you very much in advance, Kind regards, Adriano -- Dr. Adriano Galati Collaborative Systems and Performance Research Group School of Computing Faculty of Engineering University of Leeds Email: a.g...@le... Url: http://www.comp.leeds.ac.uk/CollabSysAndPerf/html/about_adriano.php Tel: +44 (0)113 3431116 Fax: +44 (0)113 3435468 |
From: Oliver W. <ow...@us...> - 2012-07-03 15:12:34
|
The web page http://wsag4j.sourceforge.net/site/source-repository.html lists the relevant ways to access the project sources in the SVN repository. If you use a SVN client to checkout the sources you have to use the repository URL listed in section Anonymous Access. The repository URL in section Web Access is intended only to be used from your web browser. Accessing this URL from a SVN client will result in the redirect cycle error. To make it short, use the following URL in your SVN client in order to check out a released version: https://wsag4j.svn.sourceforge.net/svnroot/wsag4j/framework/tags or use the following URL to check out the trunk version: https://wsag4j.svn.sourceforge.net/svnroot/wsag4j/framework/trunk -------- Original-Nachricht -------- > Datum: Tue, 3 Jul 2012 15:34:59 +0530 > Von: Sumeet Bobhate <sbo...@gm...> > An: wsa...@li... > Betreff: [Wsag4j-users] problems in checkout from SVN > I am trying to checkout the source using > http://wsag4j.sourceforge.net/site/source-repository.html. But I get the > error saying Redirect cycle detected for URL. > Can you please help? > > Thanks, > Sumeet |
From: Sumeet B. <sbo...@gm...> - 2012-07-03 10:05:06
|
I am trying to checkout the source using http://wsag4j.sourceforge.net/site/source-repository.html. But I get the error saying Redirect cycle detected for URL. Can you please help? Thanks, Sumeet |