I've run the demo using Derby, however, I've been unsuccessful in doing
so with MySQL.

 

I'm running the latest mysql and connector/J, downloaded them this week.

Please advise.

 

When I comment out the Derby config and uncomment the MySql config, I
get the following error:

 

 

BUILD SUCCESSFUL

Total time: 0 seconds

D:\data\eeborn\Desktop\TUSCAN~1.0-I\samples\customer>ant

Buildfile: build.xml 

 

run:

     [java] Exception in thread "main" java.lang.RuntimeException:

org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Feature
'user' not foun

d. (http:///temp.xml <http://temp.xml> , 50, 33)

 

     [java]     at

org.apache.tuscany.das.rdb.util.ConfigUtil.loadConfig(ConfigUtil.java:54
)

 

     [java]     at

org.apache.tuscany.samples.das.customer.CustomerClient.main(CustomerClie
nt.java:86)

 

     [java] Caused by:

org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Feature
'user' not found. (http:///temp.xml <http://temp.xml> , 50, 33)

....90 more

 

 

 

 

 

I have this config Customers.xml 

 

            <!--Uncomment below for MySQL test-->

                        <ConnectionInfo>

                                    <ConnectionProperties

                                    driverClass="com.mysql.jdbc.Driver"

 

databaseURL="jdbc:mysql://localhost:3306/test"

                                user="root"

                                password="foobar"

                                loginTimeout="600000">

                            </ConnectionProperties>

                        </ConnectionInfo>

 

 

 

 

 

                        <!-- ConnectionInfo

dataSource="java:comp/env/jdbc/dastest"    THIS SECTION IS COMMENTED OUT


contextAvailable="false">

 

                        <ConnectionProperties  

dataSourceClass="com.mysql.jdbc.jdbc2.optional.MysqlDataSource"

                                    user="root"

                                    password="foobar"

                                    key="193-155-248-97-234-56-100-241"

                                    databaseName="test"

                                    loginTimeout="600000">

                        </ConnectionProperties>

                        </ConnectionInfo -->

 

 

 

 

 

The section of the config that is commented out also fails with: 

 

run:

 

     [java] Exception in thread "main" java.lang.RuntimeException:

org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Feature
'contextAvailab

 

le' not found. (http:///temp.xml <http://temp.xml> , 55, 30)

 

     [java]     at

org.apache.tuscany.das.rdb.util.ConfigUtil.loadConfig(ConfigUtil.java:54

) 

 

Reply via email to