[ 
https://issues.apache.org/jira/browse/TUSCANY-1381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12508460
 ] 

Amita Vadhavkar commented on TUSCANY-1381:
------------------------------------------

There is a bin and src distribution available for the upcoming release at
http://people.apache.org/~lresende/tuscany/das-beta1-distribution/
It will be more stable in 1-2 days

> DAS config file with default namespace will not work
> ----------------------------------------------------
>
>                 Key: TUSCANY-1381
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1381
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java DAS RDB
>    Affects Versions: Java-DAS-M2
>            Reporter: wangful
>         Attachments: workingExampleJune26.jar
>
>
> Hi, 
> If I use the following xml file as the DAS config file, there will be errors:
> DAS das = 
> DAS.FACTORY.createDAS(Thread.currentThread().getContextClassLoader().getResourceAsStream("config.xml"),
>  conn);
> <Config xmlns="http:///org.apache.tuscany.das.rdb/config.xsd";>
>       <Command name="AllCustomers" SQL="select * from MYCUSTOMER" 
> kind="Select">
>       <ResultDescriptor columnName="ID" tableName="MYCUSTOMER" 
> columnType="commonj.sdo.Long"/>
>       <ResultDescriptor columnName="Name" tableName="MYCUSTOMER" 
> columnType="commonj.sdo.String"/>
>       </Command>
>       
>       <Table tableName="MYCUSTOMER">
>               <Column columnName="ID" primaryKey="true" />
>               <Column columnName="NAME" />
>       </Table>
>       
> </Config>
> The error is: 
> Exception in thread "main" java.lang.RuntimeException: 
> org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Feature 'Command' 
> not found. (http:///temp.xml, 25, 76)
>       at 
> org.apache.tuscany.das.rdb.util.ConfigUtil.loadConfig(ConfigUtil.java:54)
>       at org.apache.tuscany.das.rdb.impl.DASImpl.<init>(DASImpl.java:100)
>       at 
> org.apache.tuscany.das.rdb.impl.DASFactoryImpl.createDAS(DASFactoryImpl.java:39)
>       at TestDAS.main(TestDAS.java:52)
> It seems the default namespace can't work.  But if I add prefix for the 
> namespace as below, it will work.
> <c:Config xmlns:c="http:///org.apache.tuscany.das.rdb/config.xsd";>
>       <Command name="AllCustomers" SQL="select * from MYCUSTOMER" 
> kind="Select">
>       <ResultDescriptor columnName="ID" tableName="MYCUSTOMER" 
> columnType="commonj.sdo.Long"/>
>       <ResultDescriptor columnName="Name" tableName="MYCUSTOMER" 
> columnType="commonj.sdo.String"/>
>       </Command>
>       
>       <Table tableName="MYCUSTOMER">
>               <Column columnName="ID" primaryKey="true" />
>               <Column columnName="NAME" />
>       </Table>
>       
> </c:Config>
> From the user manual and samples, I think we need not supply the prefix for 
> the namespace. But it can't work in my eclipse. 
> Can someone help to make the default namespace work? 
> Thanks.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to