I'm a newbie to Tuscany and am trying to run the store example that is
done on the Tuscany Web Page.  When I start it up I get the following
Error:

Starting ...

Jan 7, 2009 11:26:58 AM
org.apache.tuscany.sca.implementation.widget.WidgetImplementationProcess
or

SEVERE: Could not resolve implementation.widget location:
ufservices/store.html

Exception in thread "main" org.osoa.sca.ServiceRuntimeException:
org.osoa.sca.ServiceRuntimeException: Could not resolve
implementation.widget location: ufservices/store.html

      at
org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADoma
in.java:276)

      at
org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.jav
a:70)

      at launch.Launch.main(Launch.java:8)

Caused by: org.osoa.sca.ServiceRuntimeException: Could not resolve
implementation.widget location: ufservices/store.html

      at
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.analyseProble
ms(DefaultSCADomain.java:309)

      at
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.addContributi
on(DefaultSCADomain.java:334)

      at
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultS
CADomain.java:183)

      at
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(Defaul
tSCADomain.java:120)

      at
org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADoma
in.java:242)

      ... 2 more

<?xml version="1.0" encoding="UTF-8"?>

<composite xmlns="http://www.osoa.org/xmlns/sca/1.0";

      xmlns:t="http://tuscany.apache.org/xmlns/sca/1.0";

      xmlns:s="http://store"; 

      targetNamespace="http://store"; 

      name="store">

      

My Composite file looks like the following:

      <component name="store">

            <t:implementation.widget location="ufservices/store.html" />

            <service name="Widget">

                  <t:binding.http uri="http://localhost:8080/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>

      </component>

 

      <component name="Catalog">

            <implementation.java class="services.CatalogImpl" />

            <property name="currencyCode">USD</property>

            <service name="Catalog">

                  <t:binding.jsonrpc
uri="http://localhost:8080/Catalog"/>

            </service>

            <reference name="currencyConverter"
target="CurrencyConverter" />

      </component>

 

      <component name="ShoppingCart">

            <implementation.java class="services.ShoppingCartImpl" />

            <service name="Cart">

                  <t:binding.atom
uri="http://localhost:8080/ShoppingCart/Cart"; />

            </service>

            <service name="Total">

                  <t:binding.jsonrpc uri="http://localhost:8080/Total"/>

            </service>

      </component>

 

      <component name="CurrencyConverter">

            <implementation.java class="services.CurrencyConverterImpl"
/>

      </component>

</composite>

 

I'm running in eclipse on windows XP.  I'm running Tuscany SCA 1.3.2.
The directory structure is as follows:

 

store

    src

      launch

        launch.java

      services

        various java source files

      ufservices

         store.html

      store.composit

 

Any help would be greatly appreciated.

      

 

 

Mike Sacauskis

 

Reply via email to