Re: New version solves Feature 'ConnectionInfo' not found problem
I'll be absent for three or four days, but i'll try it when i'll be back. Thanks for the effort. Enric 2007/7/9, Luciano Resende [EMAIL PROTECTED]: Hi Enric I was chatting with Amita about this problem, and she found that this might be a problem on our code, I have applied a fix for the issue to trunk under revision #554549. Please let us know if that helps. On 7/6/07, Enric Staromiejski Torregrosa [EMAIL PROTECTED] wrote: BTW, did you solve this problem with Oracle? We optionally are allowed to use Oracle instead of PostgreSQL... Regards 2007/7/5, Luciano Resende [EMAIL PROTECTED]: This might be the same issue we have with the Oracle JDBC drive, could you try specifying the resultset shape definition in the das config as described in this user's guide link [1] and see if this make you go further ? [1] http://cwiki.apache.org/confluence/display/TUSCANY/Explicit+ResultSet+shape+definition On 7/5/07, Enric Staromiejski Torregrosa [EMAIL PROTECTED] wrote: Luciano, when configuring the Customer sample against mysql everything goes fine. The PostgreSQL connection and table creation also works fine, but the SELECT sentence reports back the following exception: Exception in thread main *java.lang.RuntimeException*: * org.postgresql.util.PSQLException*: Returning autogenerated keys is not supported. at org.apache.tuscany.das.rdb.impl.ReadCommandImpl.executeQuery(* ReadCommandImpl.java:65*) at org.apache.tuscany.samples.das.customer.CustomerClient.getCustomers(* CustomerClient.java:168*) at org.apache.tuscany.samples.das.customer.CustomerClient.main(* CustomerClient.java:131*) Caused by: *org.postgresql.util.PSQLException*: Returning autogenerated keys is not supported. at org.postgresql.jdbc3.AbstractJdbc3Connection.prepareStatement(* AbstractJdbc3Connection.java:352*) at org.apache.tuscany.das.rdb.impl.ConnectionImpl.prepareStatement(* ConnectionImpl.java:97*) at org.apache.tuscany.das.rdb.impl.Statement.getPreparedStatement(* Statement.java:198*) at org.apache.tuscany.das.rdb.impl.Statement.executeQuery(* Statement.java:52 *) at org.apache.tuscany.das.rdb.impl.ReadCommandImpl.executeQuery(* ReadCommandImpl.java:61*) Regards, Enric 2007/7/5, Luciano Resende [EMAIL PROTECTED]: Yes, the typical one should work. I particularly haven't tried with PostgreSQL, but I don't anticipate any issues, you might have to manually create the databases, or maybe tweak the database generation classes under o.a.t.samples.das.databaseSetup. Once you make it working, and if you want, you could share your updates so we can make it easier for others that want to use the sample with PostgreSQL. I'll be more then happy to review and submit it to trunk. On 7/5/07, Enric Staromiejski Torregrosa [EMAIL PROTECTED] wrote: by the way, the database engine i'll have to use is PostgreSQL 8.1, but the configuration has to be a typicall one, isn't it, something like: ConnectionInfo ConnectionProperties driverClass=org.postgresql.Driver databaseURL=jdbc:postgresql:databasename user=enric password=mypassword loginTimeout=60 /ConnectionProperties /ConnectionInfo 2007/7/5, Enric Staromiejski Torregrosa [EMAIL PROTECTED] : i imagined...but even if i get driverClass accepted, Feature user is not i'm really impressed and happy with your presence and collaboration...it's greatly encouraging to a newby ;) Enric 2007/7/5, Luciano Resende [EMAIL PROTECTED]: The XSD is available here [1]. I would need to give it a try using MySQL, but giving it a quick look on the DAS config files, looks like connection info other then the derby one hasn't been updated recently, and you would need to make some small modifications to it. ConnectionInfo ConnectionProperties driverClass= com.mysql.jdbc.jdbc2.optional.MysqlDataSource databaseURL=java:comp/env/jdbc/dastest user=root password=yourpassword loginTimeout=60 /ConnectionProperties /ConnectionInfo [1] https://svn.apache.org/repos/asf/incubator/tuscany/java/das/rdb/src/main/resources/config.xsd On 7/5/07, Enric Staromiejski Torregrosa [EMAIL PROTECTED] wrote: Yeah, but the path seems hard, hard. I just discovered
Re: New version solves Feature 'ConnectionInfo' not found problem
BTW, did you solve this problem with Oracle? We optionally are allowed to use Oracle instead of PostgreSQL... Regards 2007/7/5, Luciano Resende [EMAIL PROTECTED]: This might be the same issue we have with the Oracle JDBC drive, could you try specifying the resultset shape definition in the das config as described in this user's guide link [1] and see if this make you go further ? [1] http://cwiki.apache.org/confluence/display/TUSCANY/Explicit+ResultSet+shape+definition On 7/5/07, Enric Staromiejski Torregrosa [EMAIL PROTECTED] wrote: Luciano, when configuring the Customer sample against mysql everything goes fine. The PostgreSQL connection and table creation also works fine, but the SELECT sentence reports back the following exception: Exception in thread main *java.lang.RuntimeException*: * org.postgresql.util.PSQLException*: Returning autogenerated keys is not supported. at org.apache.tuscany.das.rdb.impl.ReadCommandImpl.executeQuery(* ReadCommandImpl.java:65*) at org.apache.tuscany.samples.das.customer.CustomerClient.getCustomers(* CustomerClient.java:168*) at org.apache.tuscany.samples.das.customer.CustomerClient.main(* CustomerClient.java:131*) Caused by: *org.postgresql.util.PSQLException*: Returning autogenerated keys is not supported. at org.postgresql.jdbc3.AbstractJdbc3Connection.prepareStatement(* AbstractJdbc3Connection.java:352*) at org.apache.tuscany.das.rdb.impl.ConnectionImpl.prepareStatement(* ConnectionImpl.java:97*) at org.apache.tuscany.das.rdb.impl.Statement.getPreparedStatement(* Statement.java:198*) at org.apache.tuscany.das.rdb.impl.Statement.executeQuery(* Statement.java:52 *) at org.apache.tuscany.das.rdb.impl.ReadCommandImpl.executeQuery(* ReadCommandImpl.java:61*) Regards, Enric 2007/7/5, Luciano Resende [EMAIL PROTECTED]: Yes, the typical one should work. I particularly haven't tried with PostgreSQL, but I don't anticipate any issues, you might have to manually create the databases, or maybe tweak the database generation classes under o.a.t.samples.das.databaseSetup. Once you make it working, and if you want, you could share your updates so we can make it easier for others that want to use the sample with PostgreSQL. I'll be more then happy to review and submit it to trunk. On 7/5/07, Enric Staromiejski Torregrosa [EMAIL PROTECTED] wrote: by the way, the database engine i'll have to use is PostgreSQL 8.1, but the configuration has to be a typicall one, isn't it, something like: ConnectionInfo ConnectionProperties driverClass=org.postgresql.Driver databaseURL=jdbc:postgresql:databasename user=enric password=mypassword loginTimeout=60 /ConnectionProperties /ConnectionInfo 2007/7/5, Enric Staromiejski Torregrosa [EMAIL PROTECTED] : i imagined...but even if i get driverClass accepted, Feature user is not i'm really impressed and happy with your presence and collaboration...it's greatly encouraging to a newby ;) Enric 2007/7/5, Luciano Resende [EMAIL PROTECTED]: The XSD is available here [1]. I would need to give it a try using MySQL, but giving it a quick look on the DAS config files, looks like connection info other then the derby one hasn't been updated recently, and you would need to make some small modifications to it. ConnectionInfo ConnectionProperties driverClass= com.mysql.jdbc.jdbc2.optional.MysqlDataSource databaseURL=java:comp/env/jdbc/dastest user=root password=yourpassword loginTimeout=60 /ConnectionProperties /ConnectionInfo [1] https://svn.apache.org/repos/asf/incubator/tuscany/java/das/rdb/src/main/resources/config.xsd On 7/5/07, Enric Staromiejski Torregrosa [EMAIL PROTECTED] wrote: Yeah, but the path seems hard, hard. I just discovered the problem is not related with the code, but with the fact that i was trying to use another connection distinct to the derby one. I'm working with the default Customer sample code Tuscany is distributing. When using the derby connection configuration everything goes well, but when uncommenting the Mysql ConnectionInfo configuration and commenting the derby one i'm still getting errors like the one i paste below. I imagine people are using other databases apart from derby, aren't they? and if so, where's the problem? btw, where can i get the xsd for this xml? (the url in the namespace returns a 'not found
Complex UBL-2.0 Datagraph mapping
Hi all of you, i've been assigned the task of studying and trying to map a huge-complex model entirely based on UBL-2.0 into SDO+DAS in order to implement transparent xml deserialization+persistence. First steps related with obtaining the SDOs classes have already been successfully reached. We now start working on the persistence part... Has anyone of you worked on mapping UBL or similar highly architectured schemata? any hint, documentation or idea before starting before jumping into this? Regards, Enric
Re: New version solves Feature 'ConnectionInfo' not found problem
by the way, the database engine i'll have to use is PostgreSQL 8.1, but the configuration has to be a typicall one, isn't it, something like: ConnectionInfo ConnectionProperties driverClass=org.postgresql.Driver databaseURL=jdbc:postgresql:databasename user=enric password=mypassword loginTimeout=60 /ConnectionProperties /ConnectionInfo 2007/7/5, Enric Staromiejski Torregrosa [EMAIL PROTECTED]: i imagined...but even if i get driverClass accepted, Feature user is not i'm really impressed and happy with your presence and collaboration...it's greatly encouraging to a newby ;) Enric 2007/7/5, Luciano Resende [EMAIL PROTECTED]: The XSD is available here [1]. I would need to give it a try using MySQL, but giving it a quick look on the DAS config files, looks like connection info other then the derby one hasn't been updated recently, and you would need to make some small modifications to it. ConnectionInfo ConnectionProperties driverClass= com.mysql.jdbc.jdbc2.optional.MysqlDataSource databaseURL=java:comp/env/jdbc/dastest user=root password=yourpassword loginTimeout=60 /ConnectionProperties /ConnectionInfo [1] https://svn.apache.org/repos/asf/incubator/tuscany/java/das/rdb/src/main/resources/config.xsd On 7/5/07, Enric Staromiejski Torregrosa [EMAIL PROTECTED] wrote: Yeah, but the path seems hard, hard. I just discovered the problem is not related with the code, but with the fact that i was trying to use another connection distinct to the derby one. I'm working with the default Customer sample code Tuscany is distributing. When using the derby connection configuration everything goes well, but when uncommenting the Mysql ConnectionInfo configuration and commenting the derby one i'm still getting errors like the one i paste below. I imagine people are using other databases apart from derby, aren't they? and if so, where's the problem? btw, where can i get the xsd for this xml? (the url in the namespace returns a 'not found page'). Caused by: * org.eclipse.emf.ecore.resource.Resource$IOWrappedException*: Feature 'contextAvailable' not found. ( http:///temp.xml, 46, 30) at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(* XMLLoadImpl.java :80*) at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(*XMLLoadImpl.java:275*) at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(* XMLResourceImpl.java:666*) at org.apache.tuscany.sdo.util.resource.SDOXMLResourceImpl.doLoad(* SDOXMLResourceImpl.java :465*) at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.load(* XMLResourceImpl.java :634*) at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(* XMLDocumentImpl.java :239*) at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(* XMLDocumentImpl.java :217*) at org.apache.tuscany.sdo.helper.XMLHelperImpl.load(* XMLHelperImpl.java:78*) at org.apache.tuscany.sdo.helper.XMLHelperImpl.load (* XMLHelperImpl.java:72*) at org.apache.tuscany.das.rdb.util.ConfigUtil.loadConfig(* ConfigUtil.java:52 *) 2007/7/5, Luciano Resende [EMAIL PROTECTED]: Great news Enric Just FYI, I think this was fixed by TUSCANY-1401 [1] [1] https://issues.apache.org/jira/browse/TUSCANY-1401 On 7/5/07, Enric Staromiejski Torregrosa [EMAIL PROTECTED] wrote: The problem i reported in the mail below does not occur any more with the new tuscany-das-1.0-incubating-beta1 binary version. Thks to all. Enric -- Forwarded message -- From: Enric Staromiejski Torregrosa [EMAIL PROTECTED] Date: 02-jul-2007 20:06 Subject: Trying to get started To: tuscany-user@ws.apache.org Hi, i'm trying to load a sample configuration file (from the samples distributed by tuscany) like this: Config config = ConfigUtil.*loadConfig*(t.getClass ().getClassLoader().getResourceAsStream(configFile)); where t is an instance of the current class, but I'm get the following error: Exception in thread main *java.lang.RuntimeException*: * org.eclipse.emf.ecore.resource.Resource$IOWrappedException *: Feature 'ConnectionInfo' not found. (http:///temp.xml, 22, 20) at org.apache.tuscany.das.rdb.util.ConfigUtil.loadConfig( *ConfigUtil.java:54*) at _test.CATest.main( *CATest.java:48*) Caused by: *org.eclipse.emf.ecore.resource.Resource$IOWrappedException*:Feature 'ConnectionInfo' not found. ( http:///temp.xml, 22, 20) at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors( *XMLLoadImpl.java:80
Re: New version solves Feature 'ConnectionInfo' not found problem
Yeah, but the path seems hard, hard. I just discovered the problem is not related with the code, but with the fact that i was trying to use another connection distinct to the derby one. I'm working with the default Customer sample code Tuscany is distributing. When using the derby connection configuration everything goes well, but when uncommenting the Mysql ConnectionInfo configuration and commenting the derby one i'm still getting errors like the one i paste below. I imagine people are using other databases apart from derby, aren't they? and if so, where's the problem? btw, where can i get the xsd for this xml? (the url in the namespace returns a 'not found page'). Caused by: *org.eclipse.emf.ecore.resource.Resource$IOWrappedException*: Feature 'contextAvailable' not found. (http:///temp.xml, 46, 30) at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(*XMLLoadImpl.java :80*) at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(*XMLLoadImpl.java:275*) at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(* XMLResourceImpl.java:666*) at org.apache.tuscany.sdo.util.resource.SDOXMLResourceImpl.doLoad(* SDOXMLResourceImpl.java:465*) at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.load(*XMLResourceImpl.java :634*) at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(*XMLDocumentImpl.java :239*) at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(*XMLDocumentImpl.java :217*) at org.apache.tuscany.sdo.helper.XMLHelperImpl.load(*XMLHelperImpl.java:78*) at org.apache.tuscany.sdo.helper.XMLHelperImpl.load(*XMLHelperImpl.java:72*) at org.apache.tuscany.das.rdb.util.ConfigUtil.loadConfig(*ConfigUtil.java:52 *) 2007/7/5, Luciano Resende [EMAIL PROTECTED]: Great news Enric Just FYI, I think this was fixed by TUSCANY-1401 [1] [1] https://issues.apache.org/jira/browse/TUSCANY-1401 On 7/5/07, Enric Staromiejski Torregrosa [EMAIL PROTECTED] wrote: The problem i reported in the mail below does not occur any more with the new tuscany-das-1.0-incubating-beta1 binary version. Thks to all. Enric -- Forwarded message -- From: Enric Staromiejski Torregrosa [EMAIL PROTECTED] Date: 02-jul-2007 20:06 Subject: Trying to get started To: tuscany-user@ws.apache.org Hi, i'm trying to load a sample configuration file (from the samples distributed by tuscany) like this: Config config = ConfigUtil.*loadConfig*(t.getClass ().getClassLoader().getResourceAsStream(configFile)); where t is an instance of the current class, but I'm get the following error: Exception in thread main *java.lang.RuntimeException*: * org.eclipse.emf.ecore.resource.Resource$IOWrappedException *: Feature 'ConnectionInfo' not found. (http:///temp.xml, 22, 20) at org.apache.tuscany.das.rdb.util.ConfigUtil.loadConfig( *ConfigUtil.java:54*) at _test.CATest.main( *CATest.java:48*) Caused by: *org.eclipse.emf.ecore.resource.Resource$IOWrappedException*: Feature 'ConnectionInfo' not found. ( http:///temp.xml, 22, 20) at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors( *XMLLoadImpl.java:80*) at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load( *XMLLoadImpl.java:274*) at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad( *XMLResourceImpl.java:666*) at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.load( *XMLResourceImpl.java:634*) at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load( *XMLDocumentImpl.java:238*) at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load( *XMLDocumentImpl.java:216*) at org.apache.tuscany.sdo.helper.XMLHelperImpl.load( *XMLHelperImpl.java:75*) at org.apache.tuscany.sdo.helper.XMLHelperImpl.load( *XMLHelperImpl.java:69*) at org.apache.tuscany.das.rdb.util.ConfigUtil.loadConfig( *ConfigUtil.java:52*) ... 1 more -- Luciano Resende Apache Tuscany Committer http://people.apache.org/~lresende http://lresende.blogspot.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New version solves Feature 'ConnectionInfo' not found problem
i imagined...but even if i get driverClass accepted, Feature user is not i'm really impressed and happy with your presence and collaboration...it's greatly encouraging to a newby ;) Enric 2007/7/5, Luciano Resende [EMAIL PROTECTED]: The XSD is available here [1]. I would need to give it a try using MySQL, but giving it a quick look on the DAS config files, looks like connection info other then the derby one hasn't been updated recently, and you would need to make some small modifications to it. ConnectionInfo ConnectionProperties driverClass= com.mysql.jdbc.jdbc2.optional.MysqlDataSource databaseURL=java:comp/env/jdbc/dastest user=root password=yourpassword loginTimeout=60 /ConnectionProperties /ConnectionInfo [1] https://svn.apache.org/repos/asf/incubator/tuscany/java/das/rdb/src/main/resources/config.xsd On 7/5/07, Enric Staromiejski Torregrosa [EMAIL PROTECTED] wrote: Yeah, but the path seems hard, hard. I just discovered the problem is not related with the code, but with the fact that i was trying to use another connection distinct to the derby one. I'm working with the default Customer sample code Tuscany is distributing. When using the derby connection configuration everything goes well, but when uncommenting the Mysql ConnectionInfo configuration and commenting the derby one i'm still getting errors like the one i paste below. I imagine people are using other databases apart from derby, aren't they? and if so, where's the problem? btw, where can i get the xsd for this xml? (the url in the namespace returns a 'not found page'). Caused by: *org.eclipse.emf.ecore.resource.Resource$IOWrappedException*: Feature 'contextAvailable' not found. (http:///temp.xml, 46, 30) at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(* XMLLoadImpl.java :80*) at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(*XMLLoadImpl.java :275*) at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(* XMLResourceImpl.java:666*) at org.apache.tuscany.sdo.util.resource.SDOXMLResourceImpl.doLoad(* SDOXMLResourceImpl.java:465*) at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.load(* XMLResourceImpl.java :634*) at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(* XMLDocumentImpl.java :239*) at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(* XMLDocumentImpl.java :217*) at org.apache.tuscany.sdo.helper.XMLHelperImpl.load(*XMLHelperImpl.java :78*) at org.apache.tuscany.sdo.helper.XMLHelperImpl.load(*XMLHelperImpl.java :72*) at org.apache.tuscany.das.rdb.util.ConfigUtil.loadConfig(* ConfigUtil.java:52 *) 2007/7/5, Luciano Resende [EMAIL PROTECTED]: Great news Enric Just FYI, I think this was fixed by TUSCANY-1401 [1] [1] https://issues.apache.org/jira/browse/TUSCANY-1401 On 7/5/07, Enric Staromiejski Torregrosa [EMAIL PROTECTED] wrote: The problem i reported in the mail below does not occur any more with the new tuscany-das-1.0-incubating-beta1 binary version. Thks to all. Enric -- Forwarded message -- From: Enric Staromiejski Torregrosa [EMAIL PROTECTED] Date: 02-jul-2007 20:06 Subject: Trying to get started To: tuscany-user@ws.apache.org Hi, i'm trying to load a sample configuration file (from the samples distributed by tuscany) like this: Config config = ConfigUtil.*loadConfig*(t.getClass ().getClassLoader().getResourceAsStream(configFile)); where t is an instance of the current class, but I'm get the following error: Exception in thread main *java.lang.RuntimeException*: * org.eclipse.emf.ecore.resource.Resource$IOWrappedException *: Feature 'ConnectionInfo' not found. (http:///temp.xml, 22, 20) at org.apache.tuscany.das.rdb.util.ConfigUtil.loadConfig( *ConfigUtil.java:54*) at _test.CATest.main( *CATest.java:48*) Caused by: *org.eclipse.emf.ecore.resource.Resource$IOWrappedException*:Feature 'ConnectionInfo' not found. ( http:///temp.xml, 22, 20) at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors( *XMLLoadImpl.java:80*) at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load( *XMLLoadImpl.java:274*) at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad( *XMLResourceImpl.java:666*) at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.load( *XMLResourceImpl.java:634*) at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load( *XMLDocumentImpl.java:238*) at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load( *XMLDocumentImpl.java:216*) at org.apache.tuscany.sdo.helper.XMLHelperImpl.load( *XMLHelperImpl.java:75*) at org.apache.tuscany.sdo.helper.XMLHelperImpl.load( *XMLHelperImpl.java:69*) at org.apache.tuscany.das.rdb.util.ConfigUtil.loadConfig( *ConfigUtil.java:52
Re: Is it possible to use Tuscany with JDK1.4?
Tks for a very clear and prompt response. Enric 2007/7/3, Mike Edwards [EMAIL PROTECTED]: Enric, In a word - no. The decision was made some time ago that JDK 5.0 would be the lowest version level of the Java SDK that would be supported by Tuscany SCA. Yours, Mike. Enric Staromiejski Torregrosa wrote: Is it possible to use Tuscany with JDK1.4? I'm having a major.minor version error. thks, Enric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trying to get started
Thanks a lot Brady, in fact i copy-pasted the sdo binary link instead of the das ones in which i'm really interested in, so i modified the last /sdo folder in the path for /das and it brings me to what seems the das repo. So, thanks again. Enric 2007/7/3, Brady Johnson [EMAIL PROTECTED]: Enric, Im not sure where in the documentation it is, but you can do the following to download the latest (head) SDO code: svn co https://svn.apache.org/repos/asf/incubator/tuscany/java/sdo your local tuscany SVN dir Brady Johnson Lead Software Developer - HydraSCA Rogue Wave Software - [EMAIL PROTECTED] -Original Message- From: Enric Staromiejski Torregrosa [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 03, 2007 8:37 AM To: tuscany-user@ws.apache.org Subject: Re: Trying to get started Hi Luciano, i'm using the binary distribution tuscany-sdo-1.0-incubating-beta1-bin.ziphttp://people.apache.org/dist/i ncubator/tuscany/java/sdo/1.0-incubating-beta1/bin/apache-tuscany-sdo-1. 0-incubating-beta1-bin.zip i found in the Tuscany's download page. From your mail i guess it is possible to download latest code from a subversion (or cvs) repository. If so, how should i proceed to get those versions, please? I found no reference to this in the tuscany page. thanks in advance, Enric 2007/7/3, Luciano Resende [EMAIL PROTECTED]: We found an issue [1] where, in some cases, incompatible code was being generated for the DAS config model if you had a previous tuscany-sdo-plugin available in your local maven repo. I have fixed this in trunk under revision #552624. If this does not help, please let me know, and maybe you could create a jira and provide the test scenario that is failing to you. [1] http://issues.apache.org/jira/browse/TUSCANY-1401 On 7/2/07, Enric Staromiejski Torregrosa [EMAIL PROTECTED] wrote: Hi, i'm trying to load a sample configuration file (from the samples distributed by tuscany) like this: Config config = ConfigUtil.*loadConfig*(t.getClass ().getClassLoader().getResourceAsStream(configFile)); where t is an instance of the current class, but I'm get the following error: Exception in thread main *java.lang.RuntimeException*: * org.eclipse.emf.ecore.resource.Resource$IOWrappedException*: Feature 'ConnectionInfo' not found. (http:///temp.xml, 22, 20) at org.apache.tuscany.das.rdb.util.ConfigUtil.loadConfig(* ConfigUtil.java:54 *) at _test.CATest.main(*CATest.java:48*) Caused by: *org.eclipse.emf.ecore.resource.Resource$IOWrappedException*: Feature 'ConnectionInfo' not found. (http:///temp.xml, 22, 20) at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(* XMLLoadImpl.java :80*) at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(*XMLLoadImpl.java :274*) at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(* XMLResourceImpl.java:666*) at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.load(* XMLResourceImpl.java :634*) at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(* XMLDocumentImpl.java :238*) at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(* XMLDocumentImpl.java :216*) at org.apache.tuscany.sdo.helper.XMLHelperImpl.load(*XMLHelperImpl.java :75*) at org.apache.tuscany.sdo.helper.XMLHelperImpl.load(*XMLHelperImpl.java :69*) at org.apache.tuscany.das.rdb.util.ConfigUtil.loadConfig(* ConfigUtil.java:52 *) ... 1 more -- Luciano Resende Apache Tuscany Committer http://people.apache.org/~lresende http://lresende.blogspot.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trying to get started
Ok, thank you. i'll have a patient look at it tomorrow. I'm really new to all this, never worked with jira neither. 2007/7/3, Luciano Resende [EMAIL PROTECTED]: Enric If you are still having issues, it would be great if you could raise a jira and attach your testcase or sample application... I'd take a look at it right away... Thanks On 7/3/07, Ron Gavlin [EMAIL PROTECTED] wrote: If you want the latest nightly builds, they are now available at http://incubator.apache.org/tuscany/tuscany-downloads-documentations.html. Both DAS and SDO are near milestone releases so their nightly builds are pretty stable. - Ron - Original Message From: Brady Johnson [EMAIL PROTECTED] To: tuscany-user@ws.apache.org Sent: Tuesday, July 3, 2007 11:12:33 AM Subject: RE: Trying to get started In case you're interested, the tree is like this: https://svn.apache.org/repos/asf/incubator/tuscany/ |--cpp/ | |--das/ | |--etc/ | |--sca/ | |--sdo/ | |--java/ |--das/ |--etc/ |--sca/ |--sco/ Happy to help. Brady Johnson Lead Software Developer - HydraSCA Rogue Wave Software - [EMAIL PROTECTED] -Original Message- From: Enric Staromiejski Torregrosa [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 03, 2007 8:54 AM To: tuscany-user@ws.apache.org Subject: Re: Trying to get started Thanks a lot Brady, in fact i copy-pasted the sdo binary link instead of the das ones in which i'm really interested in, so i modified the last /sdo folder in the path for /das and it brings me to what seems the das repo. So, thanks again. Enric 2007/7/3, Brady Johnson [EMAIL PROTECTED]: Enric, Im not sure where in the documentation it is, but you can do the following to download the latest (head) SDO code: svn co https://svn.apache.org/repos/asf/incubator/tuscany/java/sdo your local tuscany SVN dir Brady Johnson Lead Software Developer - HydraSCA Rogue Wave Software - [EMAIL PROTECTED] -Original Message- From: Enric Staromiejski Torregrosa [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 03, 2007 8:37 AM To: tuscany-user@ws.apache.org Subject: Re: Trying to get started Hi Luciano, i'm using the binary distribution tuscany-sdo-1.0-incubating-beta1-bin.ziphttp://people.apache.org/dist /i ncubator/tuscany/java/sdo/1.0-incubating-beta1/bin/apache-tuscany-sdo-1. 0-incubating-beta1-bin.zip i found in the Tuscany's download page. From your mail i guess it is possible to download latest code from a subversion (or cvs) repository. If so, how should i proceed to get those versions, please? I found no reference to this in the tuscany page. thanks in advance, Enric 2007/7/3, Luciano Resende [EMAIL PROTECTED]: We found an issue [1] where, in some cases, incompatible code was being generated for the DAS config model if you had a previous tuscany-sdo-plugin available in your local maven repo. I have fixed this in trunk under revision #552624. If this does not help, please let me know, and maybe you could create a jira and provide the test scenario that is failing to you. [1] http://issues.apache.org/jira/browse/TUSCANY-1401 On 7/2/07, Enric Staromiejski Torregrosa [EMAIL PROTECTED] wrote: Hi, i'm trying to load a sample configuration file (from the samples distributed by tuscany) like this: Config config = ConfigUtil.*loadConfig*(t.getClass ().getClassLoader().getResourceAsStream(configFile)); where t is an instance of the current class, but I'm get the following error: Exception in thread main *java.lang.RuntimeException*: * org.eclipse.emf.ecore.resource.Resource$IOWrappedException*: Feature 'ConnectionInfo' not found. (http:///temp.xml, 22, 20) at org.apache.tuscany.das.rdb.util.ConfigUtil.loadConfig(* ConfigUtil.java:54 *) at _test.CATest.main(*CATest.java:48*) Caused by: *org.eclipse.emf.ecore.resource.Resource$IOWrappedException*: Feature 'ConnectionInfo' not found. (http:///temp.xml, 22, 20) at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(* XMLLoadImpl.java :80*) at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(*XMLLoadImpl.java :274*) at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(* XMLResourceImpl.java:666*) at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.load(* XMLResourceImpl.java :634*) at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(* XMLDocumentImpl.java :238*) at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(* XMLDocumentImpl.java :216*) at org.apache.tuscany.sdo.helper.XMLHelperImpl.load(*XMLHelperImpl.ja va :75*) at org.apache.tuscany.sdo.helper.XMLHelperImpl.load