Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Service Component Architecture (SCA) Tools » Problem after saving composite
Problem after saving composite [message #2895] Tue, 30 September 2008 13:46 Go to next message
Tobias Arnold is currently offline Tobias ArnoldFriend
Messages: 4
Registered: July 2009
Junior Member
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 15:46 Go to previous message
Stephane Drapeau is currently offline Stephane DrapeauFriend
Messages: 199
Registered: July 2009
Senior Member
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 15:46 Go to previous message
Stephane Drapeau is currently offline Stephane DrapeauFriend
Messages: 199
Registered: July 2009
Senior Member
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
>
Previous Topic:Problem after saving composite
Next Topic:Re: Reusing SCA Service Implementations
Goto Forum:
  


Current Time: Wed Apr 24 22:28:07 GMT 2024

Powered by FUDForum. Page generated in 0.03614 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top