|
|
|
|
Re: Validating SCA 1.1 namespaces [message #545015 is a reply to message #544757] |
Tue, 06 July 2010 07:28   |
Eclipse User |
|
|
|
Hi Ken,
Indeed, this is a bug.
Validation for SCA 1.1 was supposed to be disabled (composite should
have been skipped). Only edition was added. Validation needs us to
reorganize most of our plug-ins and that could not be done for Helios.
Regards,
Vincent.
Le 05/07/2010 14:46, Ken Mc Neill a écrit :
> Thanks for the tip.
>
> I downloaded Helios and the latest SCA Tools 2.1.0.x from the update
> site. I have created a new 'fresh' SCA project, and I can build a
> composite diagram (using the New...Other...SCA-> OASIS/CSA Composite
> Diagram), and run it on Tuscany 2.0.
>
> However, the validator refuses to validate the assembly; it says:
> "default.composite could not be loaded by the SCA meta-model (it might
> be an invalid XML document)." on the first line, showing the little red
> 'x'.
>
> The associated diagram (default.composite_diagram) model builder also
> flags a problem: "One or several errors were found in the diagram. See
> default.composite for more details."
>
> This does NOT stop me from modifying the diagram or redeploying the
> composite successfully. The builder seems not to like the namespace
> declaration that the plugin, itself created by default:
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?><csa:composite
> xmlns:csa="http://docs.oasis-open.org/ns/opencsa/sca/200912"
> name="default" targetNamespace="http://eclipse.org/SCA3/src/test/default"/>
>
> This seems like some sort of validation bug, which does NOT happen if I
> create a new OSOA SCA (older namespace) Composite and diagram. Should I
> file a bug?
>
> A+,
>
> Ken
|
|
|
|
|
|
Re: Validating SCA 1.1 namespaces [message #545158 is a reply to message #545089] |
Tue, 06 July 2010 15:44  |
Eclipse User |
|
|
|
Ken Mc Neill a écrit :
> Ok, I understand.
>
> On a positive note, it seems to me that there are very few things
> missing from the "OASIS / CSA" builder / validator with respect to the
> existing "OSOA SCA".
>
> The tutorial I'm preparing aims to clarify some of the confusion
> surrounding the two specs. Is there a target timeframe for stabilizing
> the 1.1 plugin?
We aim to fix a maximum of blocking bugs for Helios SR1 (end of
September) and the others for SR2.
Is it easy to get involved?
Yes, it's very easy. The two main ways to help us are:
- to open bugs in the bugzilla,
- to submit patches.
You're welcome ;-)
Stephane Drapeau
Obeo
|
|
|
Re: Validating SCA 1.1 namespaces [message #577466 is a reply to message #544643] |
Mon, 05 July 2010 08:46  |
Eclipse User |
|
|
|
Thanks for the tip.
I downloaded Helios and the latest SCA Tools 2.1.0.x from the update site. I have created a new 'fresh' SCA project, and I can build a composite diagram (using the New...Other...SCA-> OASIS/CSA Composite Diagram), and run it on Tuscany 2.0.
However, the validator refuses to validate the assembly; it says: "default.composite could not be loaded by the SCA meta-model (it might be an invalid XML document)." on the first line, showing the little red 'x'.
The associated diagram (default.composite_diagram) model builder also flags a problem: "One or several errors were found in the diagram. See default.composite for more details."
This does NOT stop me from modifying the diagram or redeploying the composite successfully. The builder seems not to like the namespace declaration that the plugin, itself created by default:
<?xml version="1.0" encoding="UTF-8" standalone="no"?><csa:composite xmlns:csa="http://docs.oasis-open.org/ns/opencsa/sca/200912" name="default" targetNamespace="http://eclipse.org/SCA3/src/test/default"/>
This seems like some sort of validation bug, which does NOT happen if I create a new OSOA SCA (older namespace) Composite and diagram. Should I file a bug?
A+,
Ken
|
|
|
Re: Validating SCA 1.1 namespaces [message #577486 is a reply to message #577466] |
Mon, 05 July 2010 11:56  |
Eclipse User |
|
|
|
There are other apparent kinks in the the SCA Tools 2.1 release when using SCA version 1.1. It looks like the new Schema isn't being properly manipulated. When creating a wire on the diagram between a reference and a service, the model outputs into the composite file:
<csa:wire source="SomeComponent/SomeReference" source2="#SomeComponent/SomeReference" target="AnotherComponent/AnotherService" target2="#AnotherComponent/AnotherService"/>
Elements 'source2' and 'target2' are not valid wire attributes--I believe they are probably EMF objects.
It seems to me that the SCA 1.1 model still needs some work before it output valid composites for Tuscany 2.0...
-K
|
|
|
Re: Validating SCA 1.1 namespaces [message #577508 is a reply to message #577466] |
Tue, 06 July 2010 07:28  |
Eclipse User |
|
|
|
Hi Ken,
Indeed, this is a bug.
Validation for SCA 1.1 was supposed to be disabled (composite should
have been skipped). Only edition was added. Validation needs us to
reorganize most of our plug-ins and that could not be done for Helios.
Regards,
Vincent.
Le 05/07/2010 14:46, Ken Mc Neill a écrit :
> Thanks for the tip.
>
> I downloaded Helios and the latest SCA Tools 2.1.0.x from the update
> site. I have created a new 'fresh' SCA project, and I can build a
> composite diagram (using the New...Other...SCA-> OASIS/CSA Composite
> Diagram), and run it on Tuscany 2.0.
>
> However, the validator refuses to validate the assembly; it says:
> "default.composite could not be loaded by the SCA meta-model (it might
> be an invalid XML document)." on the first line, showing the little red
> 'x'.
>
> The associated diagram (default.composite_diagram) model builder also
> flags a problem: "One or several errors were found in the diagram. See
> default.composite for more details."
>
> This does NOT stop me from modifying the diagram or redeploying the
> composite successfully. The builder seems not to like the namespace
> declaration that the plugin, itself created by default:
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?><csa:composite
> xmlns:csa="http://docs.oasis-open.org/ns/opencsa/sca/200912"
> name="default" targetNamespace="http://eclipse.org/SCA3/src/test/default"/>
>
> This seems like some sort of validation bug, which does NOT happen if I
> create a new OSOA SCA (older namespace) Composite and diagram. Should I
> file a bug?
>
> A+,
>
> Ken
|
|
|
Re: Validating SCA 1.1 namespaces [message #577522 is a reply to message #577466] |
Tue, 06 July 2010 08:17  |
Eclipse User |
|
|
|
I have found a strange workaround to the problem of the SCA 1.1 composite and diagram files being flagged as invalid (see previous post).
If those files (in my case 'default.composite' and 'default.composite_diagram') are placed in the top-level project directory, the validation problem dissappears.
If I move them to 'src', or to a package under 'src', they are flagged as invalid (only happens for SCA 1.1 OASIS/CSA).
The problem of "source2" and "target2" attributes in the wire node of the composite file remains...
-K
|
|
|
Re: Validating SCA 1.1 namespaces [message #577538 is a reply to message #577522] |
Tue, 06 July 2010 10:12  |
Eclipse User |
|
|
|
It is not a "real workaround".
Your composite being at the root of the project, it is not built anymore.
Neither by the SCA builder (which validates it), nor by the Java builder.
It means the composite being in your bin directory (and used by Tuscany,
I guess) is not the same that the one at the root of the project.
Vincent.
Le 06/07/2010 14:17, Ken Mc Neill a écrit :
> I have found a strange workaround to the problem of the SCA 1.1
> composite and diagram files being flagged as invalid (see previous post).
>
> If those files (in my case 'default.composite' and
> 'default.composite_diagram') are placed in the top-level project
> directory, the validation problem dissappears.
>
> If I move them to 'src', or to a package under 'src', they are flagged
> as invalid (only happens for SCA 1.1 OASIS/CSA).
>
> The problem of "source2" and "target2" attributes in the wire node of
> the composite file remains...
>
> -K
|
|
|
Re: Validating SCA 1.1 namespaces [message #577559 is a reply to message #545064] |
Tue, 06 July 2010 11:18  |
Eclipse User |
|
|
|
Ok, I understand.
On a positive note, it seems to me that there are very few things missing from the "OASIS / CSA" builder / validator with respect to the existing "OSOA SCA".
The tutorial I'm preparing aims to clarify some of the confusion surrounding the two specs. Is there a target timeframe for stabilizing the 1.1 plugin? Is it easy to get involved?
Ken
|
|
|
Re: Validating SCA 1.1 namespaces [message #577579 is a reply to message #545089] |
Tue, 06 July 2010 15:44  |
Eclipse User |
|
|
|
Ken Mc Neill a écrit :
> Ok, I understand.
>
> On a positive note, it seems to me that there are very few things
> missing from the "OASIS / CSA" builder / validator with respect to the
> existing "OSOA SCA".
>
> The tutorial I'm preparing aims to clarify some of the confusion
> surrounding the two specs. Is there a target timeframe for stabilizing
> the 1.1 plugin?
We aim to fix a maximum of blocking bugs for Helios SR1 (end of
September) and the others for SR2.
Is it easy to get involved?
Yes, it's very easy. The two main ways to help us are:
- to open bugs in the bugzilla,
- to submit patches.
You're welcome ;-)
Stephane Drapeau
Obeo
|
|
|
Powered by
FUDForum. Page generated in 0.65253 seconds