Problem after saving composite [message #2895] |
Tue, 30 September 2008 09:46  |
Eclipse User |
|
|
|
Hi all,
I opened the tuscany store example composite in the editor and saved it.
After saving the Store component looks like this:
<component name="Store">
<service name="Widget">
<t:binding.http uri="/store"/>
</service>
<reference name="catalog" target="Catalog">
<t:binding.jsonrpc/>
</reference>
<reference name="shoppingCart" target="ShoppingCart/Cart">
<t:binding.atom/>
</reference>
<reference name="shoppingTotal" target="ShoppingCart/Total">
<t:binding.jsonrpc/>
</reference>
<t:implementation.widget location="uiservices/store.html"/>
</component>
The problem is <t:implementation.widget
location="uiservices/store.html"/>. It's now the last element in the
component element. Before saving it was the first. When its the last it
doesnt run in tuscany. I created a binding of the sca shema with jaxb and
had the same problem.
regards,
Tobias
|
|
|
Re: Problem after saving composite [message #2913 is a reply to message #2895] |
Tue, 30 September 2008 11:46  |
Eclipse User |
|
|
|
Hi Tobias,
The SCA editor saves "tuscany:implementation.widget" as an "Any Type"
because the editor doesn't know this type.
Taking a closer look to the SCA schema, we can see that the Component
type is defined by a sequence composed of:
1st) the implementation
2nd) a choice: n services, n references and n properties
3st) any
So, implementation.widget is saved in the last position. That's why you
have a problem.
I haven't a solution right now. Can you open a bug in the bugzilla [0]?
Thanks.
Regards,
Stéphane Drapeau
Obeo
[0]: https://bugs.eclipse.org/bugs/
Tobias Arnold a écrit :
> Hi all,
>
> I opened the tuscany store example composite in the editor and saved it.
> After saving the Store component looks like this:
>
> <component name="Store">
> <service name="Widget">
> <t:binding.http uri="/store"/>
> </service>
> <reference name="catalog" target="Catalog">
> <t:binding.jsonrpc/>
> </reference>
> <reference name="shoppingCart" target="ShoppingCart/Cart">
> <t:binding.atom/>
> </reference>
> <reference name="shoppingTotal" target="ShoppingCart/Total">
> <t:binding.jsonrpc/>
> </reference>
> <t:implementation.widget location="uiservices/store.html"/>
> </component>
>
> The problem is <t:implementation.widget
> location="uiservices/store.html"/>. It's now the last element in the
> component element. Before saving it was the first. When its the last it
> doesnt run in tuscany. I created a binding of the sca shema with jaxb
> and had the same problem.
>
> regards,
> Tobias
>
|
|
|
Re: Problem after saving composite [message #573223 is a reply to message #2895] |
Tue, 30 September 2008 11:46  |
Eclipse User |
|
|
|
Hi Tobias,
The SCA editor saves "tuscany:implementation.widget" as an "Any Type"
because the editor doesn't know this type.
Taking a closer look to the SCA schema, we can see that the Component
type is defined by a sequence composed of:
1st) the implementation
2nd) a choice: n services, n references and n properties
3st) any
So, implementation.widget is saved in the last position. That's why you
have a problem.
I haven't a solution right now. Can you open a bug in the bugzilla [0]?
Thanks.
Regards,
Stéphane Drapeau
Obeo
[0]: https://bugs.eclipse.org/bugs/
Tobias Arnold a écrit :
> Hi all,
>
> I opened the tuscany store example composite in the editor and saved it.
> After saving the Store component looks like this:
>
> <component name="Store">
> <service name="Widget">
> <t:binding.http uri="/store"/>
> </service>
> <reference name="catalog" target="Catalog">
> <t:binding.jsonrpc/>
> </reference>
> <reference name="shoppingCart" target="ShoppingCart/Cart">
> <t:binding.atom/>
> </reference>
> <reference name="shoppingTotal" target="ShoppingCart/Total">
> <t:binding.jsonrpc/>
> </reference>
> <t:implementation.widget location="uiservices/store.html"/>
> </component>
>
> The problem is <t:implementation.widget
> location="uiservices/store.html"/>. It's now the last element in the
> component element. Before saving it was the first. When its the last it
> doesnt run in tuscany. I created a binding of the sca shema with jaxb
> and had the same problem.
>
> regards,
> Tobias
>
|
|
|
Powered by
FUDForum. Page generated in 0.03809 seconds