You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Dennis Virt <de...@hotmail.com> on 2007/04/15 22:16:48 UTC
Getting to know Tuscany
Hello Tuscany People!
I'm building a prototype for a commercial product. Integration with
disparate services is one of the requirements. We need support for
disconnected data graphs via a web service with change tracking too. Tuscany
with its SCA, SDO (and DAS because of SDO) seems like a good choice, at
least for a prototype.
I tried to start with current M2 code and encountered lots of SDO issues
(-noEMF bidirectional list property support, inability to use DAS with
dynamic classes, every data command invocation being wrapped in its own
transaction and others). Also in example I saw that SCA, SDO and DAS did not
play nicely together yet (one used direct inserts for example in bigbank
example rather than applyChanges, standard specs described not working yet,
like empty default binding.ws). Most of the problems seem to have been
resolved later on. I decided to try SDO M3 RC1 - most of the SDO issues were
gone. I could use it together with DAS current snapshot and SCA M2 for
non-SDO method calls. However then I stumbled over the problem with SCA
trying to use SDO as result type:
databinding-sdo-1.0-incubator-M2-SNAPSHOT.jar was in
WEB-INF/tuscany/extensions and namespace was right (TUSCANY-991), but I had
UnknownElementException for import.sdo in default.scdl.
So I decided to try the latest code, which is supposed to be rather mature
anyway (SCA - alpha, SDO - M3 RC1). I tried to compile all 3 frameworks in
one go (from root of Tuscany checkout) and one by one just today. No luck.
I'd appreciate if anybody could comment on the following questions:
* Would you consider Tuscany for a commercial project as yet or rather wait
a bit?
* If yes, which branches/versions would you choose? (Considering compliance
to some spec version an important factor too)
* How do I build a binary distribution out of current HEAD version? Or
should one rather gather the jars per hand out various target folders?
* When trying to build the frameworks one by one, I've built SDO and then
tried to build DAS, but got the errors underneath. Any clues?
Thanks in advance,
Dennis
[INFO] Building Tuscany DAS
[INFO] task-segment: [install]
[INFO]
-------------------------------------------------------------------------
---
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing C:\Programme\Java\sdks\tuscany_head\das\pom.xml to
c:\Dokument
e und
Einstellungen\dga\.m2\repository\org\apache\tuscany\das\tuscany-das\1.0-in
cubating-SNAPSHOT\tuscany-das-1.0-incubating-SNAPSHOT.pom
[INFO]
-------------------------------------------------------------------------
---
[INFO] Building Tuscany DAS for Relational Databases
[INFO] task-segment: [install]
[INFO]
-------------------------------------------------------------------------
---
[INFO] snapshot org.apache.tuscany.sdo:tuscany-sdo:1.0-incubator-SNAPSHOT:
check
ing for updates from codehaus-snapshot
[INFO] snapshot org.apache.tuscany:parent:2-incubator-SNAPSHOT: checking for
upd
ates from codehaus-snapshot
[INFO] [tuscany-sdo:generate {execution: config}]
[INFO] [tuscany-sdo:generate {execution: company}]
[INFO] [tuscany-sdo:generate {execution: customer}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 112 source files to
C:\Programme\Java\sdks\tuscany_head\das\rdb
\target\classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure
C:\Programme\Java\sdks\tuscany_head\das\rdb\target\sdo-source\org\apache\tuscany
\das\rdb\test\customer\impl\CustomerPackageImpl.java:[15,40] cannot find
symbol
symbol : class ModelPackageImpl
location: package org.apache.tuscany.sdo.model.impl
C:\Programme\Java\sdks\tuscany_head\das\rdb\target\sdo-source\org\apache\tuscany
\das\rdb\test\company\impl\CompanyPackageImpl.java:[16,40] cannot find
symbol
symbol : class ModelPackageImpl
location: package org.apache.tuscany.sdo.model.impl
C:\Programme\Java\sdks\tuscany_head\das\rdb\target\sdo-source\org\apache\tuscany
\das\rdb\config\impl\ConfigPackageImpl.java:[26,40] cannot find symbol
symbol : class ModelPackageImpl
location: package org.apache.tuscany.sdo.model.impl
C:\Programme\Java\sdks\tuscany_head\das\rdb\target\sdo-source\org\apache\tuscany
\das\rdb\test\customer\impl\CustomerPackageImpl.java:[257,20] package
ModelPacka
geImpl does not exist
C:\Programme\Java\sdks\tuscany_head\das\rdb\target\sdo-source\org\apache\tuscany
\das\rdb\test\customer\impl\CustomerPackageImpl.java:[480,4] cannot find
symbol
symbol : class ModelPackageImpl
location: class
org.apache.tuscany.das.rdb.test.customer.impl.CustomerPackageImp
l
_________________________________________________________________
Mortgage rates near historic lows. Refinance $200,000 loan for as low as
$771/month*
https://www2.nextag.com/goto.jsp?product=100000035&url=%2fst.jsp&tm=y&search=mortgage_text_links_88_h27f8&disc=y&vers=689&s=4056&p=5117
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-user-help@ws.apache.org
Re: Getting to know Tuscany
Posted by Luciano Resende <lu...@gmail.com>.
Hi Dennis
Good to hear that you are trying Tuscany and think this seems like a good
choice, and I hope to be able to help, in order to make you really think
this is a good choice. Let me try to address some of your issues and
questions :
One of the issues you mentioned was the inability to use DAS with dynamic
classes, are you talking about inability to use Dynamic SDO ? There are
lot's of testcases in DAS M2 or current DAS in trunk that does that. If you
explain what issue you were experiencing, maybe i could be of better help.
You also mentioned that SCA, SDO and DAS did not play nicely together and
mention BigBank example, I think we discussed this before, but maybe we
never get a closure on this, I'll try to add this on the plans for a future
release to express better integration between all Tuscany components.
As for your problem with trying to build the whole trunk in one go, and
this is a know issue, and I have proposed a fix for it that would probably
be available soon [1]. If you want to build in multiple steps, it looks like
building SDO (mvn clean install inside java/sdo) and then DAS (mvn clean
install inside java/das) works, at least for me. If you still have trouble,
please let me know, and I can provide more details...
I hope others can give you more details on some other issues you are
experiencing or some of your other questions.
[1] - http://www.mail-archive.com/tuscany-dev%40ws.apache.org/msg16665.html
On 4/15/07, Dennis Virt <de...@hotmail.com> wrote:
>
> Hello Tuscany People!
>
>
> I'm building a prototype for a commercial product. Integration with
> disparate services is one of the requirements. We need support for
> disconnected data graphs via a web service with change tracking too.
> Tuscany
> with its SCA, SDO (and DAS because of SDO) seems like a good choice, at
> least for a prototype.
> I tried to start with current M2 code and encountered lots of SDO issues
> (-noEMF bidirectional list property support, inability to use DAS with
> dynamic classes, every data command invocation being wrapped in its own
> transaction and others). Also in example I saw that SCA, SDO and DAS did
> not
> play nicely together yet (one used direct inserts for example in bigbank
> example rather than applyChanges, standard specs described not working
> yet,
> like empty default binding.ws). Most of the problems seem to have been
> resolved later on. I decided to try SDO M3 RC1 - most of the SDO issues
> were
> gone. I could use it together with DAS current snapshot and SCA M2 for
> non-SDO method calls. However then I stumbled over the problem with SCA
> trying to use SDO as result type:
> databinding-sdo-1.0-incubator-M2-SNAPSHOT.jar was in
> WEB-INF/tuscany/extensions and namespace was right (TUSCANY-991), but I
> had
> UnknownElementException for import.sdo in default.scdl.
> So I decided to try the latest code, which is supposed to be rather mature
> anyway (SCA - alpha, SDO - M3 RC1). I tried to compile all 3 frameworks in
> one go (from root of Tuscany checkout) and one by one just today. No luck.
> I'd appreciate if anybody could comment on the following questions:
> * Would you consider Tuscany for a commercial project as yet or rather
> wait
> a bit?
> * If yes, which branches/versions would you choose? (Considering
> compliance
> to some spec version an important factor too)
> * How do I build a binary distribution out of current HEAD version? Or
> should one rather gather the jars per hand out various target folders?
> * When trying to build the frameworks one by one, I've built SDO and then
> tried to build DAS, but got the errors underneath. Any clues?
>
>
> Thanks in advance,
>
> Dennis
>
> [INFO] Building Tuscany DAS
> [INFO] task-segment: [install]
> [INFO]
> -------------------------------------------------------------------------
> ---
> [INFO] [site:attach-descriptor]
> [INFO] [install:install]
> [INFO] Installing C:\Programme\Java\sdks\tuscany_head\das\pom.xml to
> c:\Dokument
> e und
> Einstellungen\dga\.m2\repository\org\apache\tuscany\das\tuscany-das\1.0-in
> cubating-SNAPSHOT\tuscany-das-1.0-incubating-SNAPSHOT.pom
> [INFO]
> -------------------------------------------------------------------------
> ---
> [INFO] Building Tuscany DAS for Relational Databases
> [INFO] task-segment: [install]
> [INFO]
> -------------------------------------------------------------------------
> ---
> [INFO] snapshot org.apache.tuscany.sdo:tuscany-sdo:1.0-incubator-SNAPSHOT:
> check
> ing for updates from codehaus-snapshot
> [INFO] snapshot org.apache.tuscany:parent:2-incubator-SNAPSHOT: checking
> for
> upd
> ates from codehaus-snapshot
> [INFO] [tuscany-sdo:generate {execution: config}]
> [INFO] [tuscany-sdo:generate {execution: company}]
> [INFO] [tuscany-sdo:generate {execution: customer}]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Compiling 112 source files to
> C:\Programme\Java\sdks\tuscany_head\das\rdb
> \target\classes
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
>
>
> C:\Programme\Java\sdks\tuscany_head\das\rdb\target\sdo-source\org\apache\tuscany
> \das\rdb\test\customer\impl\CustomerPackageImpl.java:[15,40] cannot find
> symbol
> symbol : class ModelPackageImpl
> location: package org.apache.tuscany.sdo.model.impl
>
>
> C:\Programme\Java\sdks\tuscany_head\das\rdb\target\sdo-source\org\apache\tuscany
> \das\rdb\test\company\impl\CompanyPackageImpl.java:[16,40] cannot find
> symbol
> symbol : class ModelPackageImpl
> location: package org.apache.tuscany.sdo.model.impl
>
>
> C:\Programme\Java\sdks\tuscany_head\das\rdb\target\sdo-source\org\apache\tuscany
> \das\rdb\config\impl\ConfigPackageImpl.java:[26,40] cannot find symbol
> symbol : class ModelPackageImpl
> location: package org.apache.tuscany.sdo.model.impl
>
>
> C:\Programme\Java\sdks\tuscany_head\das\rdb\target\sdo-source\org\apache\tuscany
> \das\rdb\test\customer\impl\CustomerPackageImpl.java:[257,20] package
> ModelPacka
> geImpl does not exist
>
>
> C:\Programme\Java\sdks\tuscany_head\das\rdb\target\sdo-source\org\apache\tuscany
> \das\rdb\test\customer\impl\CustomerPackageImpl.java:[480,4] cannot find
> symbol
> symbol : class ModelPackageImpl
> location: class
> org.apache.tuscany.das.rdb.test.customer.impl.CustomerPackageImp
> l
>
> _________________________________________________________________
> Mortgage rates near historic lows. Refinance $200,000 loan for as low as
> $771/month*
>
> https://www2.nextag.com/goto.jsp?product=100000035&url=%2fst.jsp&tm=y&search=mortgage_text_links_88_h27f8&disc=y&vers=689&s=4056&p=5117
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-user-help@ws.apache.org
>
>
--
Luciano Resende
http://people.apache.org/~lresende
Re: Getting to know Tuscany
Posted by kelvin goodson <ke...@gmail.com>.
Hello Dennis,
great to hear from you. I'm not in the best position to comment on
SCA/DAS but here are some comments on the SDO aspects of your questions.
On 15/04/07, Dennis Virt <de...@hotmail.com> wrote:
>
> Hello Tuscany People!
>
>
<snip/>
I decided to try SDO M3 RC1 - most of the SDO issues were
> gone.
Are the remaining issues covered by existing JIRAs. If not we'd be very
pleased if you raised the issues here on the list and if necessary opened
JIRAs for them. In case its relevant RC3 has a few extra fixes over RC1
TUSCANY-1205 An exception was thrown when reading a large Java object
back to DataObject
TUSCANY-1200 Default HelperContext should provide automatic
ClassLoader-specific scoping
TUSCANY-1196 java.lang.ClassCastException
org.eclipse.emf.ecore.impl.DynamicEObjectImpl incompatible with
commonj.sdo.DataObject
TUSCANY-1193 unable to create data objects from dynamic metadata that
match data objects created from XSD metadata
<snip/>
>
> * Would you consider Tuscany for a commercial project as yet or rather
> wait
> a bit?
There's a good deal of maturity in much of the SDO code base, since the
initial code drop to Apache was based on a mature project at Eclipse, and
we've been developing it in Apache now for over a year. From what you say,
you probably are working in areas where there has been recent change (does
your change summary work use ChangeSummary attached to DataGraph or the new
approach of adding a ChangeSummary property to a Type?). I know that the
CopyHelper and EqualityHelper don't handle change summaries on DataObjects
yet. Also the noEMF generator pattern (now the default pattern) is fairly
new. BTW, do you specifically not want generated classes or do you want
access to the dynamic SDO API from the DAS?; you probably already know it,
but whilst the generated interfaces don't extend DataObject, the generated
classes do extend the DataObject implementation, so you can get to all the
dynamic API from an instance of a generated class. From the SDO
perspective, if it were my project I would certainly consider SDO as part
of a solution. I'll be happy to respond to your questions.
* If yes, which branches/versions would you choose? (Considering compliance
> to some spec version an important factor too)
There are a lot of good additions in the SDO 2.1 spec over the 2.0.1 spec
(SDO Tuscany 1.0-incubator-M2 release), and some of these have caused us to
deprecate Tuscany interfaces that addressed what used to be missing before
the 2.1 spec arrived, so I would encourage you to use the 2.1 spec and
therefore the M3 release.
* How do I build a binary distribution out of current HEAD version? Or
> should one rather gather the jars per hand out various target folders?
> * When trying to build the frameworks one by one, I've built SDO and then
> tried to build DAS, but got the errors underneath. Any clues?
I think your ModelPackageImpl missing class issue is because of the need to
regenerate some static SDO classes. The XSD to Java generator now just
produces a Factory interface and implementation per schema rather than the
Factory and Package that it used to produce. ModelPackageImpl was removed
here http://svn.apache.org/viewvc?view=rev&rev=477364 as part of the move to
the SDO 2.1 API after the SDO M2 release.
Kelvin.
Thanks in advance,
>
> Dennis
>
> [INFO] Building Tuscany DAS
> [INFO] task-segment: [install]
> [INFO]
> -------------------------------------------------------------------------
> ---
> [INFO] [site:attach-descriptor]
> [INFO] [install:install]
> [INFO] Installing C:\Programme\Java\sdks\tuscany_head\das\pom.xml to
> c:\Dokument
> e und
> Einstellungen\dga\.m2\repository\org\apache\tuscany\das\tuscany-das\1.0-in
> cubating-SNAPSHOT\tuscany-das-1.0-incubating-SNAPSHOT.pom
> [INFO]
> -------------------------------------------------------------------------
> ---
> [INFO] Building Tuscany DAS for Relational Databases
> [INFO] task-segment: [install]
> [INFO]
> -------------------------------------------------------------------------
> ---
> [INFO] snapshot org.apache.tuscany.sdo:tuscany-sdo:1.0-incubator-SNAPSHOT:
> check
> ing for updates from codehaus-snapshot
> [INFO] snapshot org.apache.tuscany:parent:2-incubator-SNAPSHOT: checking
> for
> upd
> ates from codehaus-snapshot
> [INFO] [tuscany-sdo:generate {execution: config}]
> [INFO] [tuscany-sdo:generate {execution: company}]
> [INFO] [tuscany-sdo:generate {execution: customer}]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Compiling 112 source files to
> C:\Programme\Java\sdks\tuscany_head\das\rdb
> \target\classes
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
>
> C:\Programme\Java\sdks\tuscany_head\das\rdb\target\sdo-source\org\apache\tuscany
>
> \das\rdb\test\customer\impl\CustomerPackageImpl.java:[15,40] cannot find
> symbol
> symbol : class ModelPackageImpl
> location: package org.apache.tuscany.sdo.model.impl
>
> C:\Programme\Java\sdks\tuscany_head\das\rdb\target\sdo-source\org\apache\tuscany
>
> \das\rdb\test\company\impl\CompanyPackageImpl.java:[16,40] cannot find
> symbol
> symbol : class ModelPackageImpl
> location: package org.apache.tuscany.sdo.model.impl
>
> C:\Programme\Java\sdks\tuscany_head\das\rdb\target\sdo-source\org\apache\tuscany
>
> \das\rdb\config\impl\ConfigPackageImpl.java:[26,40] cannot find symbol
> symbol : class ModelPackageImpl
> location: package org.apache.tuscany.sdo.model.impl
>
> C:\Programme\Java\sdks\tuscany_head\das\rdb\target\sdo-source\org\apache\tuscany
>
> \das\rdb\test\customer\impl\CustomerPackageImpl.java:[257,20] package
> ModelPacka
> geImpl does not exist
>
>
> C:\Programme\Java\sdks\tuscany_head\das\rdb\target\sdo-source\org\apache\tuscany
> \das\rdb\test\customer\impl\CustomerPackageImpl.java:[480,4] cannot find
> symbol
> symbol : class ModelPackageImpl
> location: class
> org.apache.tuscany.das.rdb.test.customer.impl.CustomerPackageImp
> l
>
> _________________________________________________________________
> Mortgage rates near historic lows. Refinance $200,000 loan for as low as
> $771/month*
> https://www2.nextag.com/goto.jsp?product=100000035&url=%2fst.jsp&tm=y&search=mortgage_text_links_88_h27f8&disc=y&vers=689&s=4056&p=5117
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-user-help@ws.apache.org
>
>