It seems that the runtime is not finding the store.html based on the
path/uri specified in the composite, but all looks good, and the only
thing I suspect is something related to configuring the project in the
IDE. Have you done the following step :

- Next you enter "store" as the Project name, and for Project Layout
select Create separate folders for sources and class files.

If you really want to debug what' s going on, you could try setting a
breakpoint in ContributionServiceImpl inside the processReadPhase and
check how the store.html is being discovered (relative URI from the
store contribution)... that should give you hints on what's wrong on
the project.

Another possibility is to import the store sample (samples/store) from
the 1.3.2 distribution and check the any possible differences in the
project structure, as they should be basically the same app.

On Wed, Jan 7, 2009 at 11:41 AM, Sacauskis, Mike
<[email protected]> wrote:
> 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.WidgetImplementationProcessor
>
> 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(SCADomain.java:276)
>
>       at
> org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java: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.analyseProblems(DefaultSCADomain.java:309)
>
>       at
> org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.addContribution(DefaultSCADomain.java:334)
>
>       at
> org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:183)
>
>       at
> org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:120)
>
>       at
> org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.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
>
>



-- 
Luciano Resende
Apache Tuscany, Apache PhotArk
http://people.apache.org/~lresende
http://lresende.blogspot.com/

Reply via email to