[ 
https://issues.apache.org/jira/browse/TUSCANY-3264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752461#action_12752461
 ] 

Simon Laws commented on TUSCANY-3264:
-------------------------------------

The generated composite for the store-supplier is below. It's complaining that 
the namespace is not bound for...

                        <wstxns1:binding.http name="Widget"
                                uri="http://localhost:8103/ui"; />

Which, looking at the XML, seems right. It only seems to bind the first 
occurrence of wstxns1 for some reason. 


<?xml version="1.0" encoding="UTF-8"?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0";
        xmlns:ns1="http://www.osoa.org/xmlns/sca/1.0"; 
targetNamespace="http://store";
        name="store-supplier">
        <component name="StoreSupplier" uri="StoreSupplier">
                <wstxns1:implementation.widget
                        xmlns:wstxns1="http://tuscany.apache.org/xmlns/sca/1.0"; 
xmlns:widget="http://tuscany.apache.org/xmlns/sca/1.0";
                        location="uiservices/store.html" />
                <service name="Widget">
                        <interface.java 
interface="org.apache.tuscany.sca.implementation.widget.Widget" />
                        <wstxns1:binding.http name="Widget"
                                uri="http://localhost:8103/ui"; />
                        <callback />
                </service>
                <reference name="catalog">
                        <wstxns1:binding.jsonrpc 
name="catalog--StoreSupplierCatalog..Catalog"
                                
uri="http://localhost:8103/StoreSupplierCatalog"; />
                        <callback />
                </reference>
                <reference name="shoppingCart">
                        <wstxns1:binding.atom 
name="shoppingCart--StoreSupplierShoppingCart..Cart"
                                uri="http://localhost:8103/ShoppingCart/Cart"; />
                        <callback />
                </reference>
                <reference name="shoppingTotal">
                        <wstxns1:binding.jsonrpc
                                
name="shoppingTotal--StoreSupplierShoppingCart..Total" 
uri="http://localhost:8103/StoreSupplierShoppingCart/Total"; />
                        <callback />
                </reference>
        </component>
        <component name="StoreSupplierCatalog" uri="StoreSupplierCatalog">
                <implementation.java class="services.merger.MergedCatalogImpl" 
/>
                <service name="Catalog">
                        <interface.java interface="services.Catalog" />
                        <wstxns2:binding.jsonrpc 
xmlns:wstxns2="http://tuscany.apache.org/xmlns/sca/1.0";
                                
xmlns:ns2="http://tuscany.apache.org/xmlns/sca/1.0"; name="Catalog"
                                
uri="http://localhost:8103/StoreSupplierCatalog"; />
                        <binding.ws name="Catalog" 
uri="http://localhost:8333/CatalogWebService"; />
                        <callback />
                </service>
                <reference name="fruitsCatalog">
                        <interface.java interface="services.Catalog" />
                        <binding.sca 
name="fruitsCatalog--StoreSupplierFruitsCatalog..Catalog"
                                uri="/StoreSupplierFruitsCatalog" />
                        <callback />
                </reference>
                <reference name="vegetablesCatalog">
                        <interface.java interface="services.Catalog" />
                        <binding.ws 
name="vegetablesCatalog--VegetablesCatalogWebService..Catalog"
                                
uri="http://localhost:8200/VegetablesCatalogWebService"; />
                        <callback />
                </reference>
                <reference name="currencyConverter">
                        <interface.java interface="services.CurrencyConverter" 
/>
                        <binding.sca
                                
name="currencyConverter--StoreSupplierCurrencyConverter..CurrencyConverter"
                                uri="/StoreSupplierCurrencyConverter" />
                        <callback />
                </reference>
                <property xmlns:ns2="http://www.w3.org/2001/XMLSchema"; 
name="currencyCode"
                        mustSupply="false" many="false" 
type="ns2:string">USD</property>
        </component>
        <component name="StoreSupplierFruitsCatalog" 
uri="StoreSupplierFruitsCatalog">
                <implementation.java class="services.FruitsCatalogImpl" />
                <service name="Catalog">
                        <interface.java interface="services.Catalog" />
                        <binding.sca name="Catalog" 
uri="/StoreSupplierFruitsCatalog" />
                        <callback />
                </service>
                <reference name="currencyConverter">
                        <interface.java interface="services.CurrencyConverter" 
/>
                        <binding.sca
                                
name="currencyConverter--StoreSupplierCurrencyConverter..CurrencyConverter"
                                uri="/StoreSupplierCurrencyConverter" />
                        <callback />
                </reference>
                <property xmlns:ns2="http://www.w3.org/2001/XMLSchema"; 
name="currencyCode"
                        mustSupply="false" many="false" 
type="ns2:string">USD</property>
        </component>
        <component name="StoreSupplierShoppingCart" 
uri="StoreSupplierShoppingCart">
                <implementation.java class="services.db.ShoppingCartTableImpl" 
/>
                <service name="Cart">
                        <interface.java interface="services.Cart" />
                        <wstxns3:binding.atom 
xmlns:wstxns3="http://tuscany.apache.org/xmlns/sca/1.0";
                                
xmlns:ns2="http://tuscany.apache.org/xmlns/sca/1.0"; name="Cart"
                                uri="http://localhost:8103/ShoppingCart/Cart"; />
                        <callback />
                </service>
                <service name="Total">
                        <interface.java interface="services.Total" />
                        <wstxns4:binding.jsonrpc 
xmlns:wstxns4="http://tuscany.apache.org/xmlns/sca/1.0";
                                
xmlns:ns2="http://tuscany.apache.org/xmlns/sca/1.0"; name="Total"
                                
uri="http://localhost:8103/StoreSupplierShoppingCart/Total"; />
                        <binding.ws name="Total"
                                
uri="http://localhost:8333/ShoppinCartTotalWebService"; />
                        <callback />
                </service>
                <property xmlns:ns2="http://www.w3.org/2001/XMLSchema"; 
name="database"
                        mustSupply="false" many="false" type="ns2:string">
                        ../store-supplier/target/cart-db</property>
        </component>
        <component name="StoreSupplierCurrencyConverter" 
uri="StoreSupplierCurrencyConverter">
                <implementation.java class="services.CurrencyConverterImpl" />
                <service name="CurrencyConverter">
                        <interface.java interface="services.CurrencyConverter" 
/>
                        <binding.sca name="CurrencyConverter" 
uri="/StoreSupplierCurrencyConverter" />
                        <callback />
                </service>
        </component>
</composite>


> tutorial/store-test failure
> ---------------------------
>
>                 Key: TUSCANY-3264
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3264
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Tutorial
>    Affects Versions: Java-SCA-1.5.1
>         Environment: WinXP SP2, Sun JDK 1.6-07
>            Reporter: Simon Laws
>             Fix For: Java-SCA-1.5.1
>
>
> store-test fails with...
> INFO: Loading composite: 
> http://localhost:9990/composite-resolved/composite:stor
> e-supplier;http://store;store-supplier
> [Fatal Error] :1:594: The prefix "wstxns1" for element "wstxns1:binding.http" 
> is
>  not bound.
> 08-Sep-2009 12:59:55 
> org.apache.tuscany.sca.assembly.xml.CompositeDocumentProces
> sor
> SEVERE: ContributionReadException occured due to : 
> org.xml.sax.SAXParseException
> : The prefix "wstxns1" for element "wstxns1:binding.http" is not bound.
> 08-Sep-2009 12:59:55 
> org.apache.tuscany.sca.assembly.xml.CompositeDocumentProces
> sor
> SEVERE: ContributionReadException occured due to : 
> com.ctc.wstx.exc.WstxIOExcept
> ion: stream is closed
> 08-Sep-2009 12:59:55 org.apache.tuscany.sca.node.launcher.NodeLauncherUtil 
> node
> SEVERE: SCA Node could not be created
> Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 6.766 sec <<< 
> FA
> ILURE!
> Which would appear to be something to do with the re-written composites that 
> the domain manager produces coming out with incorrect namespace assignments

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to