Re: [VOTE] Release SDO 1.1.1

2008-06-06 Thread kelvin goodson
I've made all the changes required in the tag [1] to get rid of the felix
jars, find and include the emf jars,  and I've removed the incubating tag,
DISCLAIMER files etc.  However,  I'm currently stumped as to why two emf
jars available [2] and [3] don't get downloaded by the build.  The build
output complains about URLs that, if cut and pasted into a browser, work
fine.  Any clues to explain this odd maven behaviour are welcome.

Kelvin


[1]
https://svn.apache.org/repos/asf/incubator/tuscany/tags/java/sdo/1.1.1-RC2/
[2]
http://ftp.ussg.iu.edu/eclipse/modeling/emf/emf/maven2/org/eclipse/emf/codegen/2.2.3/
[3]
http://ftp.ussg.iu.edu/eclipse/modeling/emf/emf/maven2/org/eclipse/emf/codegen-ecore/2.2.3/

2008/6/3 Rajini Sivaram [EMAIL PROTECTED]:

 Kelvin,

 Sorry about the delay in getting back to you - I can see that you have
 found
 a solution. Yes, you are absolutely right, the felix framework should use
 scope provided since SdoBundleActivator is only used when SDO is running
 inside an OSGi container, and the framework classes are provided by the
 container.


 On 6/3/08, kelvin goodson [EMAIL PROTECTED] wrote:
 
  Just a thought,  would I be right in guessing that if ever our
  SdoBundleActivator is touched in the runtime,  then the environment would
  be
  expected to provide the classes to satisfy
 
  import org.osgi.framework.BundleActivator;
  import org.osgi.framework.BundleContext;
 
  ?
 
  in which case I think declaring a provided scope for the felix
 dependency
  would be the right way to do things
 
  Kelvin.
 
  2008/6/3 kelvin goodson [EMAIL PROTECTED]:
 
   Thanks Ant,  that looks like progress,  but the felix framework jar is
  now
   not in the list of distributed jars.
  
   Kelvin.
  
   2008/6/3 ant elder [EMAIL PROTECTED]:
  
   Adding an exclude for felix to the distribution pom can fix that, eg
  here's
   local changes i have just tried:
  
   Index: src/main/assembly/bin.xml
   ===
   --- src/main/assembly/bin.xml   (revision 662488)
   +++ src/main/assembly/bin.xml   (working copy)
   @@ -120,13 +120,13 @@
   dependencySets
   dependencySet
  
   outputDirectorytuscany-sdo-${sdo.version}/lib/outputDirectory
   -includes
   -
   includeorg.apache.tuscany.sdo:tuscany-sdo-api-r2.1/include
   +!-- includes
   +
   includeorg.apache.tuscany.sdo:tuscany-sdo-api-r2.1/include
  
  includeorg.apache.tuscany.sdo:tuscany-sdo-lib/include
  
  includeorg.apache.tuscany.sdo:tuscany-sdo-impl/include
  
   includeorg.apache.tuscany.sdo:tuscany-sdo-tools/include
   includeorg.apache.tuscany.sdo:sample-sdo/include
   -/includes
   +/includes --
   fileMode0644/fileMode
   /dependencySet
  
   Index: pom.xml
   ===
   --- pom.xml (revision 662488)
   +++ pom.xml (working copy)
   @@ -56,6 +56,12 @@
   groupIdorg.apache.tuscany.sdo/groupId
   artifactIdtuscany-sdo-impl/artifactId
   version${pom.version}/version
   +exclusions
   +exclusion
   +groupIdorg.apache.felix/groupId
   +artifactIdorg.apache.felix.main/artifactId
   +/exclusion
   +/exclusions
   /dependency
   dependency
   groupIdorg.apache.tuscany.sdo/groupId
   @@ -67,6 +73,7 @@
   artifactIdsample-sdo/artifactId
   version${pom.version}/version
   /dependency
   +
   /dependencies
  
   build
  
   Which results in a lib directory containing:
  
   backport-util-concurrent-3.0.jar
   codegen-2.2.3.jar
   codegen-ecore-2.2.3.jar
   common-2.2.3.jar
   ecore-2.2.3.jar
   ecore-change-2.2.3.jar
   ecore-xmi-2.2.3.jar
   sample-sdo-1.1.1-incubating-SNAPSHOT.jar
   stax-api-1.0.1.jar
   tuscany-sdo-api-r2.1-1.1.1-incubating-SNAPSHOT.jar
   tuscany-sdo-impl-1.1.1-incubating-SNAPSHOT.jar
   tuscany-sdo-lib-1.1.1-incubating-SNAPSHOT.jar
   tuscany-sdo-tools-1.1.1-incubating-SNAPSHOT.jar
   wstx-asl-3.2.1.jar
   xsd-2.2.3.jar
  
  ...ant
  
   On Tue, Jun 3, 2008 at 11:31 AM, kelvin goodson 
 [EMAIL PROTECTED]
   wrote:
  
I had an offline chat with Rajini.  It seems we need just the
  framework
   jar
of felix in the distro,  but if the dependency on felix is declared
 as
   test
scope in the pom,  then that jar is not available to main phase of
 the
build.  If its not declared as test scope then we get 5 felix jars
 in
   the
binary distro.  Rajini's going to take a look when she gets some
 time.
   
Kelvin.
   
   
2008/6/3 kelvin goodson [EMAIL PROTECTED]:
   
The felix jars were introduced in the fix for  SDO does not work
  with
OSGi [1] in commit 620763 [2].  I don't know if this is expected
behaviour,  not being an OSGI expert.  Comments anyone?
   
Kelvin

Re: [VOTE] Release SDO 1.1.1

2008-06-06 Thread kelvin goodson
Hi Luciano,
   yes, I added that workaround,  and that satisfied most of the EMF jars,
but not these two. It's odd, the 2 jars we need are there in the repository
you suggested,  but maven will not download them.

Kelvin.

2008/6/6 Luciano Resende [EMAIL PROTECTED]:

 Did you try the workaround I mentioned before on this thread [1] where
 I added a new repository ? It was actually for other jars, but might
 help in this case as well...

 [1] http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg31727.html

 On Fri, Jun 6, 2008 at 4:56 AM, kelvin goodson [EMAIL PROTECTED]
 wrote:
  I've made all the changes required in the tag [1] to get rid of the felix
  jars, find and include the emf jars,  and I've removed the incubating
 tag,
  DISCLAIMER files etc.  However,  I'm currently stumped as to why two emf
  jars available [2] and [3] don't get downloaded by the build.  The build
  output complains about URLs that, if cut and pasted into a browser, work
  fine.  Any clues to explain this odd maven behaviour are welcome.
 
  Kelvin
 
 
  [1]
 
 https://svn.apache.org/repos/asf/incubator/tuscany/tags/java/sdo/1.1.1-RC2/
  [2]
 
 http://ftp.ussg.iu.edu/eclipse/modeling/emf/emf/maven2/org/eclipse/emf/codegen/2.2.3/
  [3]
 
 http://ftp.ussg.iu.edu/eclipse/modeling/emf/emf/maven2/org/eclipse/emf/codegen-ecore/2.2.3/
 
  2008/6/3 Rajini Sivaram [EMAIL PROTECTED]:
 
  Kelvin,
 
  Sorry about the delay in getting back to you - I can see that you have
  found
  a solution. Yes, you are absolutely right, the felix framework should
 use
  scope provided since SdoBundleActivator is only used when SDO is
 running
  inside an OSGi container, and the framework classes are provided by the
  container.
 
 
  On 6/3/08, kelvin goodson [EMAIL PROTECTED] wrote:
  
   Just a thought,  would I be right in guessing that if ever our
   SdoBundleActivator is touched in the runtime,  then the environment
 would
   be
   expected to provide the classes to satisfy
  
   import org.osgi.framework.BundleActivator;
   import org.osgi.framework.BundleContext;
  
   ?
  
   in which case I think declaring a provided scope for the felix
  dependency
   would be the right way to do things
  
   Kelvin.
  
   2008/6/3 kelvin goodson [EMAIL PROTECTED]:
  
Thanks Ant,  that looks like progress,  but the felix framework jar
 is
   now
not in the list of distributed jars.
   
Kelvin.
   
2008/6/3 ant elder [EMAIL PROTECTED]:
   
Adding an exclude for felix to the distribution pom can fix that, eg
   here's
local changes i have just tried:
   
Index: src/main/assembly/bin.xml
===
--- src/main/assembly/bin.xml   (revision 662488)
+++ src/main/assembly/bin.xml   (working copy)
@@ -120,13 +120,13 @@
dependencySets
dependencySet
   
outputDirectorytuscany-sdo-${sdo.version}/lib/outputDirectory
-includes
-
includeorg.apache.tuscany.sdo:tuscany-sdo-api-r2.1/include
+!-- includes
+
includeorg.apache.tuscany.sdo:tuscany-sdo-api-r2.1/include
   
   includeorg.apache.tuscany.sdo:tuscany-sdo-lib/include
   
   includeorg.apache.tuscany.sdo:tuscany-sdo-impl/include
   
includeorg.apache.tuscany.sdo:tuscany-sdo-tools/include
   
 includeorg.apache.tuscany.sdo:sample-sdo/include
-/includes
+/includes --
fileMode0644/fileMode
/dependencySet
   
Index: pom.xml
===
--- pom.xml (revision 662488)
+++ pom.xml (working copy)
@@ -56,6 +56,12 @@
groupIdorg.apache.tuscany.sdo/groupId
artifactIdtuscany-sdo-impl/artifactId
version${pom.version}/version
+exclusions
+exclusion
+groupIdorg.apache.felix/groupId
+artifactIdorg.apache.felix.main/artifactId
+/exclusion
+/exclusions
/dependency
dependency
groupIdorg.apache.tuscany.sdo/groupId
@@ -67,6 +73,7 @@
artifactIdsample-sdo/artifactId
version${pom.version}/version
/dependency
+
/dependencies
   
build
   
Which results in a lib directory containing:
   
backport-util-concurrent-3.0.jar
codegen-2.2.3.jar
codegen-ecore-2.2.3.jar
common-2.2.3.jar
ecore-2.2.3.jar
ecore-change-2.2.3.jar
ecore-xmi-2.2.3.jar
sample-sdo-1.1.1-incubating-SNAPSHOT.jar
stax-api-1.0.1.jar
tuscany-sdo-api-r2.1-1.1.1-incubating-SNAPSHOT.jar
tuscany-sdo-impl-1.1.1-incubating-SNAPSHOT.jar
tuscany-sdo-lib-1.1.1-incubating-SNAPSHOT.jar
tuscany-sdo-tools-1.1.1-incubating-SNAPSHOT.jar
wstx-asl-3.2.1.jar
xsd-2.2.3.jar
   
   ...ant
   
On Tue, Jun 3, 2008 at 11:31 AM, kelvin goodson

Re: [VOTE] Release SDO 1.1.1

2008-06-03 Thread kelvin goodson
The required libraries are

sample-sdo-%RELEASE%.jar
sdo-api-r2.1-%RELEASE%.jar
tuscany-sdo-lib-%RELEASE%.jar
tuscany-sdo-impl-%RELEASE%.jar
tuscany-sdo-tools-%RELEASE%.jar
codegen-ecore-2.2.3.jar
codegen-2.2.3.jar
ecore-2.2.3.jar
ecore-change-2.2.3.jar
ecore-xmi-2.2.3.jar
common-2.2.3.jar
xsd-2.2.3.jar
stax-api-1.0.1.jar
wstx-asl-3.2.0.jar

with
backport-util-concurrent being optional if you want threadsafe collections
with Java 1.4 IIRC

The felix jar inclusions were introduced some time between commit level
600913 and 627754;  I'm working on narrowing this down at the moment.

Kelvin.


2008/6/2 ant elder [EMAIL PROTECTED]:

 It is strange.

 Removing the includes at the bottom of the assembly bin.xml changes it so
 that the dependencies do get included again, but several felix dependencies
 also get dragged in. What is the complete list of jars that should be
 included?

   ...ant

 On Mon, Jun 2, 2008 at 6:02 PM, kelvin goodson [EMAIL PROTECTED]
 wrote:

  This failure also occurs with the 2.1 version and the 2.2-beta-1 version.
  The current trunk version is 2.2-beta-3-SNAPSHOT,  which I haven't found
 in
  a repository yet,  so the only version that seems ever to have worked is
  the
  2.2-SNAPSHOT version. I have taken a look at the assembly plugin JIRAs,
   but
  it's hard to trawl that since so many JIRAs reference the word
 dependency.
  It's not clear to me whether we benefited from a freak bug that was to
 our
  advantage in the 2.2-SNAPSHOT version or whether all the other versions
  have
  a bug/bugs.
 
  Kelvin.
 
  2008/6/2 kelvin goodson [EMAIL PROTECTED]:
 
   I have pinned down the change that caused the absence of EMF jars in
 the
   distribution zip to be the switch from the maven assembly plugin
 version
   2.2-SNAPSHOT to the 2.2-beta-2 as altered here [1].I hope to look
 at
   this again soon,  but have to stop for now.  If anyone has any views on
  what
   version we should be using please pipe up.
  
   Kelvin.
  
   [1]
  
 
 http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/pom.xml?r1=628691r2=642349pathrev=642349diff_format=h
  
   Kelvin.
  
   2008/5/19 kelvin goodson [EMAIL PROTECTED]:
  
   I'm looking at fixing a problem wrt running the samples at the moment.
  
   Also, I found that with a combination of using IBM JDK 1.5 and maven
  2.0.7
   I got hit by http://jira.codehaus.org/browse/MJAVADOC-135 when trying
  to
   build from the top.  We say in our BUILDING doc that 2.0.7 is OK,
   perhaps
   if we need to respin we should raise that in order to avoid IBM JDK
  users
   hitting this issue.  It's fine with 2.0.9
  
   Kelvin.
  
  
   2008/5/18 ant elder [EMAIL PROTECTED]:
  
   Please review and vote on the SDO 1.1.1 release.
  
   The artifacts including binary and source distributions, staging
 maven
   repo
   and release notes are available at
   http://people.apache.org/~antelder/tuscany/sdo/1.1.1-RC1/http://people.apache.org/%7Eantelder/tuscany/sdo/1.1.1-RC1/
 http://people.apache.org/%7Eantelder/tuscany/sdo/1.1.1-RC1/
  http://people.apache.org/%7Eantelder/tuscany/sdo/1.1.1-RC1/
   http://people.apache.org/%7Eantelder/tuscany/sdo/1.1.1-RC1/.
   The only difference between this and the 1.1 release is the fix for
   http://issues.apache.org/jira/browse/TUSCANY-2240.
  
   +1 from me.
  
 ...ant
  
  
  
  
 



Re: [VOTE] Release SDO 1.1.1

2008-06-03 Thread kelvin goodson
The felix jars were introduced in the fix for  SDO does not work with OSGi
[1] in commit 620763 [2].  I don't know if this is expected behaviour,  not
being an OSGI expert.  Comments anyone?

Kelvin.

[1] https://issues.apache.org/jira/browse/TUSCANY-1293
[2] http://svn.apache.org/viewcvs?view=revrev=620763

2008/6/3 kelvin goodson [EMAIL PROTECTED]:

 The required libraries are

 sample-sdo-%RELEASE%.jar
 sdo-api-r2.1-%RELEASE%.jar
 tuscany-sdo-lib-%RELEASE%.jar
 tuscany-sdo-impl-%RELEASE%.jar
 tuscany-sdo-tools-%RELEASE%.jar
 codegen-ecore-2.2.3.jar
 codegen-2.2.3.jar
 ecore-2.2.3.jar
 ecore-change-2.2.3.jar
 ecore-xmi-2.2.3.jar
 common-2.2.3.jar
 xsd-2.2.3.jar
 stax-api-1.0.1.jar
 wstx-asl-3.2.0.jar

 with
 backport-util-concurrent being optional if you want threadsafe collections
 with Java 1.4 IIRC

 The felix jar inclusions were introduced some time between commit level
 600913 and 627754;  I'm working on narrowing this down at the moment.

 Kelvin.


 2008/6/2 ant elder [EMAIL PROTECTED]:

 It is strange.

 Removing the includes at the bottom of the assembly bin.xml changes it
 so
 that the dependencies do get included again, but several felix
 dependencies
 also get dragged in. What is the complete list of jars that should be
 included?

   ...ant

 On Mon, Jun 2, 2008 at 6:02 PM, kelvin goodson [EMAIL PROTECTED]
 wrote:

  This failure also occurs with the 2.1 version and the 2.2-beta-1
 version.
  The current trunk version is 2.2-beta-3-SNAPSHOT,  which I haven't found
 in
  a repository yet,  so the only version that seems ever to have worked is
  the
  2.2-SNAPSHOT version. I have taken a look at the assembly plugin JIRAs,
   but
  it's hard to trawl that since so many JIRAs reference the word
 dependency.
  It's not clear to me whether we benefited from a freak bug that was to
 our
  advantage in the 2.2-SNAPSHOT version or whether all the other versions
  have
  a bug/bugs.
 
  Kelvin.
 
  2008/6/2 kelvin goodson [EMAIL PROTECTED]:
 
   I have pinned down the change that caused the absence of EMF jars in
 the
   distribution zip to be the switch from the maven assembly plugin
 version
   2.2-SNAPSHOT to the 2.2-beta-2 as altered here [1].I hope to look
 at
   this again soon,  but have to stop for now.  If anyone has any views
 on
  what
   version we should be using please pipe up.
  
   Kelvin.
  
   [1]
  
 
 http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/pom.xml?r1=628691r2=642349pathrev=642349diff_format=h
  
   Kelvin.
  
   2008/5/19 kelvin goodson [EMAIL PROTECTED]:
  
   I'm looking at fixing a problem wrt running the samples at the moment.
  
   Also, I found that with a combination of using IBM JDK 1.5 and maven
  2.0.7
   I got hit by http://jira.codehaus.org/browse/MJAVADOC-135 when
 trying
  to
   build from the top.  We say in our BUILDING doc that 2.0.7 is OK,
   perhaps
   if we need to respin we should raise that in order to avoid IBM JDK
  users
   hitting this issue.  It's fine with 2.0.9
  
   Kelvin.
  
  
   2008/5/18 ant elder [EMAIL PROTECTED]:
  
   Please review and vote on the SDO 1.1.1 release.
  
   The artifacts including binary and source distributions, staging
 maven
   repo
   and release notes are available at
   http://people.apache.org/~antelder/tuscany/sdo/1.1.1-RC1/http://people.apache.org/%7Eantelder/tuscany/sdo/1.1.1-RC1/
 http://people.apache.org/%7Eantelder/tuscany/sdo/1.1.1-RC1/
  http://people.apache.org/%7Eantelder/tuscany/sdo/1.1.1-RC1/
   http://people.apache.org/%7Eantelder/tuscany/sdo/1.1.1-RC1/.
   The only difference between this and the 1.1 release is the fix for
   http://issues.apache.org/jira/browse/TUSCANY-2240.
  
   +1 from me.
  
 ...ant
  
  
  
  
 





Re: [VOTE] Release SDO 1.1.1

2008-06-03 Thread kelvin goodson
I had an offline chat with Rajini.  It seems we need just the framework jar
of felix in the distro,  but if the dependency on felix is declared as test
scope in the pom,  then that jar is not available to main phase of the
build.  If its not declared as test scope then we get 5 felix jars in the
binary distro.  Rajini's going to take a look when she gets some time.

Kelvin.

2008/6/3 kelvin goodson [EMAIL PROTECTED]:

 The felix jars were introduced in the fix for  SDO does not work with
 OSGi [1] in commit 620763 [2].  I don't know if this is expected
 behaviour,  not being an OSGI expert.  Comments anyone?

 Kelvin.

 [1] https://issues.apache.org/jira/browse/TUSCANY-1293
 [2] http://svn.apache.org/viewcvs?view=revrev=620763

 2008/6/3 kelvin goodson [EMAIL PROTECTED]:

 The required libraries are

 sample-sdo-%RELEASE%.jar
 sdo-api-r2.1-%RELEASE%.jar
 tuscany-sdo-lib-%RELEASE%.jar
 tuscany-sdo-impl-%RELEASE%.jar
 tuscany-sdo-tools-%RELEASE%.jar
 codegen-ecore-2.2.3.jar
 codegen-2.2.3.jar
 ecore-2.2.3.jar
 ecore-change-2.2.3.jar
 ecore-xmi-2.2.3.jar
 common-2.2.3.jar
 xsd-2.2.3.jar
 stax-api-1.0.1.jar
 wstx-asl-3.2.0.jar

 with
 backport-util-concurrent being optional if you want threadsafe collections
 with Java 1.4 IIRC

 The felix jar inclusions were introduced some time between commit level
 600913 and 627754;  I'm working on narrowing this down at the moment.

 Kelvin.


 2008/6/2 ant elder [EMAIL PROTECTED]:

 It is strange.

 Removing the includes at the bottom of the assembly bin.xml changes it
 so
 that the dependencies do get included again, but several felix
 dependencies
 also get dragged in. What is the complete list of jars that should be
 included?

   ...ant

 On Mon, Jun 2, 2008 at 6:02 PM, kelvin goodson [EMAIL PROTECTED]
 wrote:

  This failure also occurs with the 2.1 version and the 2.2-beta-1
 version.
  The current trunk version is 2.2-beta-3-SNAPSHOT,  which I haven't
 found in
  a repository yet,  so the only version that seems ever to have worked
 is
  the
  2.2-SNAPSHOT version. I have taken a look at the assembly plugin JIRAs,
   but
  it's hard to trawl that since so many JIRAs reference the word
 dependency.
  It's not clear to me whether we benefited from a freak bug that was to
 our
  advantage in the 2.2-SNAPSHOT version or whether all the other versions
  have
  a bug/bugs.
 
  Kelvin.
 
  2008/6/2 kelvin goodson [EMAIL PROTECTED]:
 
   I have pinned down the change that caused the absence of EMF jars in
 the
   distribution zip to be the switch from the maven assembly plugin
 version
   2.2-SNAPSHOT to the 2.2-beta-2 as altered here [1].I hope to look
 at
   this again soon,  but have to stop for now.  If anyone has any views
 on
  what
   version we should be using please pipe up.
  
   Kelvin.
  
   [1]
  
 
 http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/pom.xml?r1=628691r2=642349pathrev=642349diff_format=h
  
   Kelvin.
  
   2008/5/19 kelvin goodson [EMAIL PROTECTED]:
  
   I'm looking at fixing a problem wrt running the samples at the
 moment.
  
   Also, I found that with a combination of using IBM JDK 1.5 and maven
  2.0.7
   I got hit by http://jira.codehaus.org/browse/MJAVADOC-135 when
 trying
  to
   build from the top.  We say in our BUILDING doc that 2.0.7 is OK,
   perhaps
   if we need to respin we should raise that in order to avoid IBM JDK
  users
   hitting this issue.  It's fine with 2.0.9
  
   Kelvin.
  
  
   2008/5/18 ant elder [EMAIL PROTECTED]:
  
   Please review and vote on the SDO 1.1.1 release.
  
   The artifacts including binary and source distributions, staging
 maven
   repo
   and release notes are available at
   http://people.apache.org/~antelder/tuscany/sdo/1.1.1-RC1/http://people.apache.org/%7Eantelder/tuscany/sdo/1.1.1-RC1/
 http://people.apache.org/%7Eantelder/tuscany/sdo/1.1.1-RC1/
  http://people.apache.org/%7Eantelder/tuscany/sdo/1.1.1-RC1/
   http://people.apache.org/%7Eantelder/tuscany/sdo/1.1.1-RC1/.
   The only difference between this and the 1.1 release is the fix for
   http://issues.apache.org/jira/browse/TUSCANY-2240.
  
   +1 from me.
  
 ...ant
  
  
  
  
 






Re: [VOTE] Release SDO 1.1.1

2008-06-03 Thread kelvin goodson
Just a thought,  would I be right in guessing that if ever our
SdoBundleActivator is touched in the runtime,  then the environment would be
expected to provide the classes to satisfy

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

?

in which case I think declaring a provided scope for the felix dependency
would be the right way to do things

Kelvin.

2008/6/3 kelvin goodson [EMAIL PROTECTED]:

 Thanks Ant,  that looks like progress,  but the felix framework jar is now
 not in the list of distributed jars.

 Kelvin.

 2008/6/3 ant elder [EMAIL PROTECTED]:

 Adding an exclude for felix to the distribution pom can fix that, eg here's
 local changes i have just tried:

 Index: src/main/assembly/bin.xml
 ===
 --- src/main/assembly/bin.xml   (revision 662488)
 +++ src/main/assembly/bin.xml   (working copy)
 @@ -120,13 +120,13 @@
 dependencySets
 dependencySet

 outputDirectorytuscany-sdo-${sdo.version}/lib/outputDirectory
 -includes
 -
 includeorg.apache.tuscany.sdo:tuscany-sdo-api-r2.1/include
 +!-- includes
 +
 includeorg.apache.tuscany.sdo:tuscany-sdo-api-r2.1/include
 includeorg.apache.tuscany.sdo:tuscany-sdo-lib/include
 includeorg.apache.tuscany.sdo:tuscany-sdo-impl/include

 includeorg.apache.tuscany.sdo:tuscany-sdo-tools/include
 includeorg.apache.tuscany.sdo:sample-sdo/include
 -/includes
 +/includes --
 fileMode0644/fileMode
 /dependencySet

 Index: pom.xml
 ===
 --- pom.xml (revision 662488)
 +++ pom.xml (working copy)
 @@ -56,6 +56,12 @@
 groupIdorg.apache.tuscany.sdo/groupId
 artifactIdtuscany-sdo-impl/artifactId
 version${pom.version}/version
 +exclusions
 +exclusion
 +groupIdorg.apache.felix/groupId
 +artifactIdorg.apache.felix.main/artifactId
 +/exclusion
 +/exclusions
 /dependency
 dependency
 groupIdorg.apache.tuscany.sdo/groupId
 @@ -67,6 +73,7 @@
 artifactIdsample-sdo/artifactId
 version${pom.version}/version
 /dependency
 +
 /dependencies

 build

 Which results in a lib directory containing:

 backport-util-concurrent-3.0.jar
 codegen-2.2.3.jar
 codegen-ecore-2.2.3.jar
 common-2.2.3.jar
 ecore-2.2.3.jar
 ecore-change-2.2.3.jar
 ecore-xmi-2.2.3.jar
 sample-sdo-1.1.1-incubating-SNAPSHOT.jar
 stax-api-1.0.1.jar
 tuscany-sdo-api-r2.1-1.1.1-incubating-SNAPSHOT.jar
 tuscany-sdo-impl-1.1.1-incubating-SNAPSHOT.jar
 tuscany-sdo-lib-1.1.1-incubating-SNAPSHOT.jar
 tuscany-sdo-tools-1.1.1-incubating-SNAPSHOT.jar
 wstx-asl-3.2.1.jar
 xsd-2.2.3.jar

...ant

 On Tue, Jun 3, 2008 at 11:31 AM, kelvin goodson [EMAIL PROTECTED]
 wrote:

  I had an offline chat with Rajini.  It seems we need just the framework
 jar
  of felix in the distro,  but if the dependency on felix is declared as
 test
  scope in the pom,  then that jar is not available to main phase of the
  build.  If its not declared as test scope then we get 5 felix jars in
 the
  binary distro.  Rajini's going to take a look when she gets some time.
 
  Kelvin.
 
 
  2008/6/3 kelvin goodson [EMAIL PROTECTED]:
 
  The felix jars were introduced in the fix for  SDO does not work with
  OSGi [1] in commit 620763 [2].  I don't know if this is expected
  behaviour,  not being an OSGI expert.  Comments anyone?
 
  Kelvin.
 
  [1] https://issues.apache.org/jira/browse/TUSCANY-1293
  [2] http://svn.apache.org/viewcvs?view=revrev=620763
 
  2008/6/3 kelvin goodson [EMAIL PROTECTED]:
 
  The required libraries are
 
  sample-sdo-%RELEASE%.jar
  sdo-api-r2.1-%RELEASE%.jar
  tuscany-sdo-lib-%RELEASE%.jar
  tuscany-sdo-impl-%RELEASE%.jar
  tuscany-sdo-tools-%RELEASE%.jar
  codegen-ecore-2.2.3.jar
  codegen-2.2.3.jar
  ecore-2.2.3.jar
  ecore-change-2.2.3.jar
  ecore-xmi-2.2.3.jar
  common-2.2.3.jar
  xsd-2.2.3.jar
  stax-api-1.0.1.jar
  wstx-asl-3.2.0.jar
 
  with
  backport-util-concurrent being optional if you want threadsafe
  collections with Java 1.4 IIRC
 
  The felix jar inclusions were introduced some time between commit
 level
  600913 and 627754;  I'm working on narrowing this down at the moment.
 
  Kelvin.
 
 
  2008/6/2 ant elder [EMAIL PROTECTED]:
 
  It is strange.
 
  Removing the includes at the bottom of the assembly bin.xml changes
 it
  so
  that the dependencies do get included again, but several felix
  dependencies
  also get dragged in. What is the complete list of jars that should be
  included?
 
...ant
 
  On Mon, Jun 2, 2008 at 6:02 PM, kelvin goodson 
 [EMAIL PROTECTED]
  wrote:
 
   This failure also occurs with the 2.1 version and the 2.2-beta-1
  version.
   The current trunk version is 2.2-beta-3-SNAPSHOT,  which I haven't

Re: [VOTE] Release SDO 1.1.1

2008-06-03 Thread kelvin goodson
Thanks Ant,  that looks like progress,  but the felix framework jar is now
not in the list of distributed jars.

Kelvin.

2008/6/3 ant elder [EMAIL PROTECTED]:

 Adding an exclude for felix to the distribution pom can fix that, eg here's
 local changes i have just tried:

 Index: src/main/assembly/bin.xml
 ===
 --- src/main/assembly/bin.xml   (revision 662488)
 +++ src/main/assembly/bin.xml   (working copy)
 @@ -120,13 +120,13 @@
 dependencySets
 dependencySet

 outputDirectorytuscany-sdo-${sdo.version}/lib/outputDirectory
 -includes
 -
 includeorg.apache.tuscany.sdo:tuscany-sdo-api-r2.1/include
 +!-- includes
 +
 includeorg.apache.tuscany.sdo:tuscany-sdo-api-r2.1/include
 includeorg.apache.tuscany.sdo:tuscany-sdo-lib/include
 includeorg.apache.tuscany.sdo:tuscany-sdo-impl/include
 includeorg.apache.tuscany.sdo:tuscany-sdo-tools/include
 includeorg.apache.tuscany.sdo:sample-sdo/include
 -/includes
 +/includes --
 fileMode0644/fileMode
 /dependencySet

 Index: pom.xml
 ===
 --- pom.xml (revision 662488)
 +++ pom.xml (working copy)
 @@ -56,6 +56,12 @@
 groupIdorg.apache.tuscany.sdo/groupId
 artifactIdtuscany-sdo-impl/artifactId
 version${pom.version}/version
 +exclusions
 +exclusion
 +groupIdorg.apache.felix/groupId
 +artifactIdorg.apache.felix.main/artifactId
 +/exclusion
 +/exclusions
 /dependency
 dependency
 groupIdorg.apache.tuscany.sdo/groupId
 @@ -67,6 +73,7 @@
 artifactIdsample-sdo/artifactId
 version${pom.version}/version
 /dependency
 +
 /dependencies

 build

 Which results in a lib directory containing:

 backport-util-concurrent-3.0.jar
 codegen-2.2.3.jar
 codegen-ecore-2.2.3.jar
 common-2.2.3.jar
 ecore-2.2.3.jar
 ecore-change-2.2.3.jar
 ecore-xmi-2.2.3.jar
 sample-sdo-1.1.1-incubating-SNAPSHOT.jar
 stax-api-1.0.1.jar
 tuscany-sdo-api-r2.1-1.1.1-incubating-SNAPSHOT.jar
 tuscany-sdo-impl-1.1.1-incubating-SNAPSHOT.jar
 tuscany-sdo-lib-1.1.1-incubating-SNAPSHOT.jar
 tuscany-sdo-tools-1.1.1-incubating-SNAPSHOT.jar
 wstx-asl-3.2.1.jar
 xsd-2.2.3.jar

...ant

 On Tue, Jun 3, 2008 at 11:31 AM, kelvin goodson [EMAIL PROTECTED]
 wrote:

  I had an offline chat with Rajini.  It seems we need just the framework
 jar
  of felix in the distro,  but if the dependency on felix is declared as
 test
  scope in the pom,  then that jar is not available to main phase of the
  build.  If its not declared as test scope then we get 5 felix jars in the
  binary distro.  Rajini's going to take a look when she gets some time.
 
  Kelvin.
 
 
  2008/6/3 kelvin goodson [EMAIL PROTECTED]:
 
  The felix jars were introduced in the fix for  SDO does not work with
  OSGi [1] in commit 620763 [2].  I don't know if this is expected
  behaviour,  not being an OSGI expert.  Comments anyone?
 
  Kelvin.
 
  [1] https://issues.apache.org/jira/browse/TUSCANY-1293
  [2] http://svn.apache.org/viewcvs?view=revrev=620763
 
  2008/6/3 kelvin goodson [EMAIL PROTECTED]:
 
  The required libraries are
 
  sample-sdo-%RELEASE%.jar
  sdo-api-r2.1-%RELEASE%.jar
  tuscany-sdo-lib-%RELEASE%.jar
  tuscany-sdo-impl-%RELEASE%.jar
  tuscany-sdo-tools-%RELEASE%.jar
  codegen-ecore-2.2.3.jar
  codegen-2.2.3.jar
  ecore-2.2.3.jar
  ecore-change-2.2.3.jar
  ecore-xmi-2.2.3.jar
  common-2.2.3.jar
  xsd-2.2.3.jar
  stax-api-1.0.1.jar
  wstx-asl-3.2.0.jar
 
  with
  backport-util-concurrent being optional if you want threadsafe
  collections with Java 1.4 IIRC
 
  The felix jar inclusions were introduced some time between commit level
  600913 and 627754;  I'm working on narrowing this down at the moment.
 
  Kelvin.
 
 
  2008/6/2 ant elder [EMAIL PROTECTED]:
 
  It is strange.
 
  Removing the includes at the bottom of the assembly bin.xml changes
 it
  so
  that the dependencies do get included again, but several felix
  dependencies
  also get dragged in. What is the complete list of jars that should be
  included?
 
...ant
 
  On Mon, Jun 2, 2008 at 6:02 PM, kelvin goodson [EMAIL PROTECTED]
 
  wrote:
 
   This failure also occurs with the 2.1 version and the 2.2-beta-1
  version.
   The current trunk version is 2.2-beta-3-SNAPSHOT,  which I haven't
  found in
   a repository yet,  so the only version that seems ever to have
 worked
  is
   the
   2.2-SNAPSHOT version. I have taken a look at the assembly plugin
  JIRAs,
but
   it's hard to trawl that since so many JIRAs reference the word
  dependency.
   It's not clear to me whether we benefited from a freak bug that was
 to
  our
   advantage in the 2.2-SNAPSHOT version or whether all the other
  versions
   have

Re: [VOTE] Release SDO 1.1.1

2008-06-03 Thread kelvin goodson
OK,  I think I have everything I need now to respin this RC.  I'm inclined
to take the opportunity to remove the incubating tag on this release
whilst I'm fixing up the poms.

Kelvin.

2008/6/3 ant elder [EMAIL PROTECTED]:

 That sounds right to me.

   ...ant

 On Tue, Jun 3, 2008 at 11:57 AM, kelvin goodson [EMAIL PROTECTED]
 wrote:

  Just a thought,  would I be right in guessing that if ever our
  SdoBundleActivator is touched in the runtime,  then the environment would
  be
  expected to provide the classes to satisfy
 
  import org.osgi.framework.BundleActivator;
  import org.osgi.framework.BundleContext;
 
  ?
 
  in which case I think declaring a provided scope for the felix
 dependency
  would be the right way to do things
 
  Kelvin.
 
  2008/6/3 kelvin goodson [EMAIL PROTECTED]:
 
   Thanks Ant,  that looks like progress,  but the felix framework jar is
  now
   not in the list of distributed jars.
  
   Kelvin.
  
   2008/6/3 ant elder [EMAIL PROTECTED]:
  
   Adding an exclude for felix to the distribution pom can fix that, eg
  here's
   local changes i have just tried:
  
   Index: src/main/assembly/bin.xml
   ===
   --- src/main/assembly/bin.xml   (revision 662488)
   +++ src/main/assembly/bin.xml   (working copy)
   @@ -120,13 +120,13 @@
   dependencySets
   dependencySet
  
   outputDirectorytuscany-sdo-${sdo.version}/lib/outputDirectory
   -includes
   -
   includeorg.apache.tuscany.sdo:tuscany-sdo-api-r2.1/include
   +!-- includes
   +
   includeorg.apache.tuscany.sdo:tuscany-sdo-api-r2.1/include
  
  includeorg.apache.tuscany.sdo:tuscany-sdo-lib/include
  
  includeorg.apache.tuscany.sdo:tuscany-sdo-impl/include
  
   includeorg.apache.tuscany.sdo:tuscany-sdo-tools/include
   includeorg.apache.tuscany.sdo:sample-sdo/include
   -/includes
   +/includes --
   fileMode0644/fileMode
   /dependencySet
  
   Index: pom.xml
   ===
   --- pom.xml (revision 662488)
   +++ pom.xml (working copy)
   @@ -56,6 +56,12 @@
   groupIdorg.apache.tuscany.sdo/groupId
   artifactIdtuscany-sdo-impl/artifactId
   version${pom.version}/version
   +exclusions
   +exclusion
   +groupIdorg.apache.felix/groupId
   +artifactIdorg.apache.felix.main/artifactId
   +/exclusion
   +/exclusions
   /dependency
   dependency
   groupIdorg.apache.tuscany.sdo/groupId
   @@ -67,6 +73,7 @@
   artifactIdsample-sdo/artifactId
   version${pom.version}/version
   /dependency
   +
   /dependencies
  
   build
  
   Which results in a lib directory containing:
  
   backport-util-concurrent-3.0.jar
   codegen-2.2.3.jar
   codegen-ecore-2.2.3.jar
   common-2.2.3.jar
   ecore-2.2.3.jar
   ecore-change-2.2.3.jar
   ecore-xmi-2.2.3.jar
   sample-sdo-1.1.1-incubating-SNAPSHOT.jar
   stax-api-1.0.1.jar
   tuscany-sdo-api-r2.1-1.1.1-incubating-SNAPSHOT.jar
   tuscany-sdo-impl-1.1.1-incubating-SNAPSHOT.jar
   tuscany-sdo-lib-1.1.1-incubating-SNAPSHOT.jar
   tuscany-sdo-tools-1.1.1-incubating-SNAPSHOT.jar
   wstx-asl-3.2.1.jar
   xsd-2.2.3.jar
  
  ...ant
  
   On Tue, Jun 3, 2008 at 11:31 AM, kelvin goodson 
 [EMAIL PROTECTED]
   wrote:
  
I had an offline chat with Rajini.  It seems we need just the
  framework
   jar
of felix in the distro,  but if the dependency on felix is declared
 as
   test
scope in the pom,  then that jar is not available to main phase of
 the
build.  If its not declared as test scope then we get 5 felix jars
 in
   the
binary distro.  Rajini's going to take a look when she gets some
 time.
   
Kelvin.
   
   
2008/6/3 kelvin goodson [EMAIL PROTECTED]:
   
The felix jars were introduced in the fix for  SDO does not work
  with
OSGi [1] in commit 620763 [2].  I don't know if this is expected
behaviour,  not being an OSGI expert.  Comments anyone?
   
Kelvin.
   
[1] https://issues.apache.org/jira/browse/TUSCANY-1293
[2] http://svn.apache.org/viewcvs?view=revrev=620763
   
2008/6/3 kelvin goodson [EMAIL PROTECTED]:
   
The required libraries are
   
sample-sdo-%RELEASE%.jar
sdo-api-r2.1-%RELEASE%.jar
tuscany-sdo-lib-%RELEASE%.jar
tuscany-sdo-impl-%RELEASE%.jar
tuscany-sdo-tools-%RELEASE%.jar
codegen-ecore-2.2.3.jar
codegen-2.2.3.jar
ecore-2.2.3.jar
ecore-change-2.2.3.jar
ecore-xmi-2.2.3.jar
common-2.2.3.jar
xsd-2.2.3.jar
stax-api-1.0.1.jar
wstx-asl-3.2.0.jar
   
with
backport-util-concurrent being optional if you want threadsafe
collections with Java 1.4 IIRC
   
The felix jar inclusions were introduced some time between commit
   level
600913 and 627754

parent pom and incubator references

2008-06-03 Thread kelvin goodson
As mentioned elsewhere on this list in the discussion about respinning the
SDO 1.1.1 RC, I'm hoping to drop the incubating tag in the release name.

This has led me to look at the parent pom,  and I guess we need a new
version of parent pom that doesn't reference the incubator repo,  and then
open a vote on that.  I may be opening a whole new kettle of Pandora's worms
that would have been best left unopened for a point release. On the other
hand I guess it needs doing some time soon.  Digging around a few other top
level projects, and seeing the comments in our own parent pom,  it would
appear I might be able to just drop the apache.incubator repository stanza
in a new revision of the parent pom.  Is that true?  any guidance would be
very welcome.

Kelvin.


Re: parent pom and incubator references

2008-06-03 Thread kelvin goodson
Sounds good to me.
Kelvin.

2008/6/3 ant elder [EMAIL PROTECTED]:

 On Tue, Jun 3, 2008 at 2:24 PM, kelvin goodson [EMAIL PROTECTED]
 wrote:

  As mentioned elsewhere on this list in the discussion about respinning
 the
  SDO 1.1.1 RC, I'm hoping to drop the incubating tag in the release
 name.
 
  This has led me to look at the parent pom,  and I guess we need a new
  version of parent pom that doesn't reference the incubator repo,  and
 then
  open a vote on that.  I may be opening a whole new kettle of Pandora's
  worms
  that would have been best left unopened for a point release. On the other
  hand I guess it needs doing some time soon.  Digging around a few other
 top
  level projects, and seeing the comments in our own parent pom,  it would
  appear I might be able to just drop the apache.incubator repository
  stanza
  in a new revision of the parent pom.  Is that true?  any guidance would
 be
  very welcome.
 
  Kelvin.
 

 How about removing the reference to the Tuscany parent pom and just
 defining
 whatever is required in the top level SDO pom.xml. We talked about doing
 this once before - http://apache.markmail.org/message/2woxtw7lfalm3rtx.
 The
 only concern was if it caused trouble if building all the subprojects under
 tuscany/java together, but does anyone ever do that these days?

   ...ant



Re: [VOTE] Release SDO 1.1.1

2008-06-02 Thread kelvin goodson
I have pinned down the change that caused the absence of EMF jars in the
distribution zip to be the switch from the maven assembly plugin version
2.2-SNAPSHOT to the 2.2-beta-2 as altered here [1].I hope to look at
this again soon,  but have to stop for now.  If anyone has any views on what
version we should be using please pipe up.

Kelvin.

[1]
http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/pom.xml?r1=628691r2=642349pathrev=642349diff_format=h

Kelvin.

2008/5/19 kelvin goodson [EMAIL PROTECTED]:

 I'm looking at fixing a problem wrt running the samples at the moment.

 Also, I found that with a combination of using IBM JDK 1.5 and maven 2.0.7
 I got hit by http://jira.codehaus.org/browse/MJAVADOC-135 when trying to
 build from the top.  We say in our BUILDING doc that 2.0.7 is OK,  perhaps
 if we need to respin we should raise that in order to avoid IBM JDK users
 hitting this issue.  It's fine with 2.0.9

 Kelvin.


 2008/5/18 ant elder [EMAIL PROTECTED]:

 Please review and vote on the SDO 1.1.1 release.

 The artifacts including binary and source distributions, staging maven
 repo
 and release notes are available at
 http://people.apache.org/~antelder/tuscany/sdo/1.1.1-RC1/http://people.apache.org/%7Eantelder/tuscany/sdo/1.1.1-RC1/
 http://people.apache.org/%7Eantelder/tuscany/sdo/1.1.1-RC1/.
 The only difference between this and the 1.1 release is the fix for
 http://issues.apache.org/jira/browse/TUSCANY-2240.

 +1 from me.

   ...ant





Re: [VOTE] Release SDO 1.1.1

2008-06-02 Thread kelvin goodson
This failure also occurs with the 2.1 version and the 2.2-beta-1 version.
The current trunk version is 2.2-beta-3-SNAPSHOT,  which I haven't found in
a repository yet,  so the only version that seems ever to have worked is the
2.2-SNAPSHOT version. I have taken a look at the assembly plugin JIRAs,  but
it's hard to trawl that since so many JIRAs reference the word dependency.
It's not clear to me whether we benefited from a freak bug that was to our
advantage in the 2.2-SNAPSHOT version or whether all the other versions have
a bug/bugs.

Kelvin.

2008/6/2 kelvin goodson [EMAIL PROTECTED]:

 I have pinned down the change that caused the absence of EMF jars in the
 distribution zip to be the switch from the maven assembly plugin version
 2.2-SNAPSHOT to the 2.2-beta-2 as altered here [1].I hope to look at
 this again soon,  but have to stop for now.  If anyone has any views on what
 version we should be using please pipe up.

 Kelvin.

 [1]
 http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/pom.xml?r1=628691r2=642349pathrev=642349diff_format=h

 Kelvin.

 2008/5/19 kelvin goodson [EMAIL PROTECTED]:

 I'm looking at fixing a problem wrt running the samples at the moment.

 Also, I found that with a combination of using IBM JDK 1.5 and maven 2.0.7
 I got hit by http://jira.codehaus.org/browse/MJAVADOC-135 when trying to
 build from the top.  We say in our BUILDING doc that 2.0.7 is OK,  perhaps
 if we need to respin we should raise that in order to avoid IBM JDK users
 hitting this issue.  It's fine with 2.0.9

 Kelvin.


 2008/5/18 ant elder [EMAIL PROTECTED]:

 Please review and vote on the SDO 1.1.1 release.

 The artifacts including binary and source distributions, staging maven
 repo
 and release notes are available at
 http://people.apache.org/~antelder/tuscany/sdo/1.1.1-RC1/http://people.apache.org/%7Eantelder/tuscany/sdo/1.1.1-RC1/
 http://people.apache.org/%7Eantelder/tuscany/sdo/1.1.1-RC1/.
 The only difference between this and the 1.1 release is the fix for
 http://issues.apache.org/jira/browse/TUSCANY-2240.

 +1 from me.

   ...ant






Re: Tuscany Java2WSDL and WSDL2Java tools

2008-05-22 Thread kelvin goodson
2008/5/22 ant elder [EMAIL PROTECTED]:

 On Thu, May 22, 2008 at 9:31 AM, ant elder [EMAIL PROTECTED] wrote:

 
 
  On Wed, May 21, 2008 at 5:03 PM, Scott Kurz [EMAIL PROTECTED] wrote:
 
  That 'generate-sdo' only generates the Java types from the schema types,
  right?
 
  It's the WSDL2Java which maps portType operations t**o Java methods and
  (last I checked) our
  W2J is the only tool which knows how to do this with an SDO databinding.
 
 
  Yes after playing around with the tools i think thats right. It looks
 like
  the current Tuscany/SCA W2J tool generates just a service interface but
 not
  the types for the operation arguments, and that interface is annotated
 with
  the osoa @Service and @Remotable annotataions. So to use that interface
 you
  must use another tool to generate the Java classes for the types (and
 hope
  that both tools generate identical names for the types) otherwise the W2J
  generated interface wont even compile.
 
 ...ant
 
 
 Given the above what would people think about abandoning our Tuscany/SCA
 Axis2 base W2J tool and just updating the SDO tool to support generating
 the
 SEI class?



I think this may not be directly relevant,  since from what I can work out
the additional function you are discussing would be a bolt-on addition to
the SDO Java generator, but here's  a quick heads up to anyone who might be
thinking of changing the SDO Java generator.  You will need skills in
JavaJet (uses a JSP like syntax).  There's an FAQ on how to get Eclipse set
up to modify the JavaJet here [1]

To give you a flavour, the JavaJet input files for the generator are here
[2], which generates java code [3],  and that generated java code itself is
used to generate the end users generated java classes.

Kelvin.

[1] http://incubator.apache.org/tuscany/tuscany-sdo-java-faq.html
[2]
https://svn.apache.org/repos/asf/incubator/tuscany/java/sdo/tools/templates/models/
[3]
https://svn.apache.org/repos/asf/incubator/tuscany/java/sdo/tools/src/main/java/org/apache/tuscany/sdo/generate/templates/model/


 So for example the helloworld bpel sample where both of these are
 used at at the bottom of the pom.xml [1] would have the
 tuscany-maven-wsdl2java plugin removed and an extra parameter added to the
 tuscany-sdo-plugin like generateSEItrue/generateSEI?

 The generateSEI parameter would only be available when the sdo plugin is
 using a wsdl document and although the generated interface would have the
 SCA @Service and @Remotable annotations as they're just strings it wouldn't
 drag in any sca dependencies to sdo, the sca jar would only be needed when
 you actually compile the generated interface.

   ...ant

 [1]

 https://svn.apache.org/repos/asf/incubator/tuscany/java/sca/samples/helloworld-bpel/pom.xml



Re: [VOTE] Release SDO 1.1.1

2008-05-19 Thread kelvin goodson
I'm looking at fixing a problem wrt running the samples at the moment.

Also, I found that with a combination of using IBM JDK 1.5 and maven 2.0.7 I
got hit by http://jira.codehaus.org/browse/MJAVADOC-135 when trying to build
from the top.  We say in our BUILDING doc that 2.0.7 is OK,  perhaps if we
need to respin we should raise that in order to avoid IBM JDK users hitting
this issue.  It's fine with 2.0.9

Kelvin.


2008/5/18 ant elder [EMAIL PROTECTED]:

 Please review and vote on the SDO 1.1.1 release.

 The artifacts including binary and source distributions, staging maven repo
 and release notes are available at
 http://people.apache.org/~antelder/tuscany/sdo/1.1.1-RC1/http://people.apache.org/%7Eantelder/tuscany/sdo/1.1.1-RC1/
 http://people.apache.org/%7Eantelder/tuscany/sdo/1.1.1-RC1/.
 The only difference between this and the 1.1 release is the fix for
 http://issues.apache.org/jira/browse/TUSCANY-2240.

 +1 from me.

   ...ant



Re: [VOTE] Graduate Apache Tuscany as a Top Level Project (take two)

2008-05-12 Thread kelvin goodson
+1
Kelvin.

2008/5/10 ant elder [EMAIL PROTECTED]:

 Restarting the graduation vote with the updated proposal words, please
 vote
 on the proposal below to graduate Tuscany to a TLP.

 +1 from me.

   ...ant

  X. Establish the Apache Tuscany Project

 WHEREAS, the Board of Directors deems it to be in the best
 interests of the Foundation and consistent with the Foundation's
 purpose to establish a Project Management Committee charged with
 the creation and maintenance of open-source software for
 distribution at no charge to the public, that simplifies the
 development, deployment and management of distributed applications
 built as compositions of service components. These components
 may be implemented with a range of technologies and connected
 using a variety of communication protocols. This software will
 implement relevant open standards including, but not limited to,
 the Service Component Architecture standard defined by the OASIS
 OpenCSA member section, and related technologies.

 NOW, THEREFORE, BE IT RESOLVED, that a Project Management
 Committee (PMC), to be known as the Apache Tuscany Project,
 be and hereby is established pursuant to Bylaws of the
 Foundation; and be it further

 RESOLVED, that the Apache Tuscany Project be and hereby is
 responsible for the creation and maintenance of software
 related to Apache Tuscany;
 and be it further

 RESOLVED, that the office of Vice President, Apache Tuscany be
 and hereby is created, the person holding such office to
 serve at the direction of the Board of Directors as the chair
 of the Apache Tuscany Project, and to have primary responsibility
 for management of the projects within the scope of
 responsibility of the Apache Tuscany Project; and be it further

 RESOLVED, that the persons listed immediately below be and
 hereby are appointed to serve as the initial members of the
 Apache Tuscany Project:

* Adriano Crestani adrianocrestani at apache dot org
* ant elder antelder at apache dot org
* Brady Johnson bjohnson at apache dot org
* Frank Budinsky frankb at apache dot org
* Ignacio Silva-Lepe isilval at apache dot org
* Jean-Sebastien Delfino jsdelfino at apache dot org
* kelvin goodson kelvingoodson at apache dot org
* Luciano Resende lresende at apache dot org
* Mark Combellack mcombellack at apache dot org
* Matthieu Riou mriou at apache dot org
* Mike Edwards edwardsmj at apache dot org
* Paul Fremantle pzf at apache dot org
* Pete Robbins robbinspg at apache dot org
* Raymond Feng rfeng at apache dot org
* Simon Laws slaws at apache dot org
* Simon Nash nash at apache dot org
* Venkata Krishnan svkrish at apache dot org

 NOW, THEREFORE, BE IT FURTHER RESOLVED, that Ant Elder
 be appointed to the office of Vice President, Apache Tuscany, to
 serve in accordance with and subject to the direction of the
 Board of Directors and the Bylaws of the Foundation until
 death, resignation, retirement, removal or disqualification,
 or until a successor is appointed; and be it further

 RESOLVED, that the Apache Tuscany Project be and hereby
 is tasked with the migration and rationalization of the Apache
 Incubator Tuscany podling; and be it further

 RESOLVED, that all responsibilities pertaining to the Apache
 Incubator Tuscany podling encumbered upon the Apache Incubator
 Project are hereafter discharged.



Re: Keeping up with the dev list and the flood of JIRA messages

2008-03-20 Thread kelvin goodson
I find the RSS feed facility for customised JIRA queries a very helpful way
of keeping up with JIRAs.  It gives much more control than a mail filter
does.  I still get the notifications in my inbox,  but when I want to get a
quick overview of recent activity the RSS feed is preferable.

If you haven't noticed this feature, try following the issues or
comments link next to RSS on for example [1].  This gives you the
opportunity to subscribe to the query in your favourite RSS reader.

Kelvin.

[1]
https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=truepid=12310210status=1status=3status=4component=12311542component=12310660component=12310973component=12310802sorter/field=issuekeysorter/order=DESCsorter/field=componentssorter/order=ASCsorter/field=updatedsorter/order=DESC

On 20/03/2008, Simon Laws [EMAIL PROTECTED] wrote:

 On Wed, Mar 19, 2008 at 10:14 PM, Raymond Feng [EMAIL PROTECTED]
 wrote:

  I have a mail rule/filter set up to route the JIRA messages into a
  separate
  folder in my inbox.
 
  Thanks,
  Raymond
  --
  From: Jean-Sebastien Delfino [EMAIL PROTECTED]
  Sent: Wednesday, March 19, 2008 2:40 PM
  To: tuscany-dev tuscany-dev@ws.apache.org
  Subject: Keeping up with the dev list and the flood of JIRA messages
 
   Hi,
  
   Just curious, are people able to keep up with the list discussions in
  the
   middle of that flood of JIRA messages?
  
   Is everybody routing JIRAs to a separate folder? I'm finding it
  difficult
   to see through the traffic without doing that.
  
   Thoughts? Can we improve this to make it easier for people to follow?
   --
   Jean-Sebastien
  
   -
   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]
 

  I like to see the JIRA coming in on the dev list. I manually filter so
 that I at least get a sense of what's going on.


 Simon



[jira] Resolved: (TUSCANY-2110) ChangeSummary's getOldContainer() and getOldContainmentProperty() methods are not working correctly.

2008-03-20 Thread Kelvin Goodson (JIRA)

 [ 
https://issues.apache.org/jira/browse/TUSCANY-2110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kelvin Goodson resolved TUSCANY-2110.
-

Resolution: Invalid

If you set the containment of parentProp2 to true the test passes

 ChangeSummary's getOldContainer() and getOldContainmentProperty() methods are 
 not working correctly. 
 -

 Key: TUSCANY-2110
 URL: https://issues.apache.org/jira/browse/TUSCANY-2110
 Project: Tuscany
  Issue Type: Bug
  Components: Java SDO Implementation
Affects Versions: Java-SDO-1.0
 Environment: n/a
Reporter: David T. Adcox
 Fix For: Java-SDO-Next

 Attachments: Test2110.java


 I am unable to get ChangeSummary to return a value using the 
 getOldContainer() method or the getOldContainmentProperty() method.  I think 
 there may be an issue when using a three-tier model.  What I mean by this is 
 I have created a top level 'root' type that contains two unique 'parent' 
 types.  Each of the parent types has a unique property that can contain a 
 child type.  When I set the child to be contained by parent2, then start 
 logging on the ChangeSummary, then set the containment to parent1, I am not 
 able to retrieve the old parent container nor the old containment property.
 I will attach a test case.

-- 
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]



Re: Alias Name Support in Tuscany SDO

2008-03-20 Thread kelvin goodson
I traced back the origins of the commented out line [1],  and it was
introduced in commented out form (in a different file). That would tend to
suggest that it was there as a reminder of the right thing to do one other
infrastructure was in place,  rather than being commented out  because it
wasn't right.  If uncommenting this  line causes  the right kind of
behaviour and does not introduce other test errors,  then I guess that more
recent changes have made this line of code viable.


[1]
http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/util/SDOUtil.java?r1=394728r2=396004pathrev=396004


On 20/03/2008, David Adcox [EMAIL PROTECTED] wrote:

 Currently, alias name support is disabled in SDO, intentionally.  The
 SDOHelperImpl.addAliasName(Type,String) and
 SDOHelperImpl.addAliasName(Property,String) throw an
 UnsupportedOperationException when called.  Does this function still
 need to be disabled?  When I remove these guards, my test cases seem
 to function properly.

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




Re: [jira] Issue Comment Edited: (TUSCANY-1725) XSD2JavaGenerator has a problem with associations navigable from both sides

2008-03-19 Thread kelvin goodson
Hi Miro,  this is confusion caused by the JIRA system.  I made a tiny edit
to my comment in this JIRA the other day,  because the automatic linking of
the URL in the JIRA was broken by having a ) appended to the URL.  I just
inserted a space between the URL and the ),  but this seems to have the
appearance that I was asking the question again. Apologies, Kelvin.

On 19/03/2008, Miro Kandic (mkandic) [EMAIL PROTECTED] wrote:

 I have granted a license long time ago.
 I checked few minutes ago using link Manage attachments and license is
 there.

 Regards,


 Miro Kandic
 (408) 525-2596


 -Original Message-
 From: Kelvin Goodson (JIRA) [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 18, 2008 5:03 AM
 To: Miro Kandic (mkandic)
 Subject: [jira] Issue Comment Edited: (TUSCANY-1725) XSD2JavaGenerator
 has a problem with associations navigable from both sides



 [
 https://issues.apache.org/jira/browse/TUSCANY-1725?page=com.atlassian.ji
 ra.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=125293
 88#action_12529388 ]

 kgoodson edited comment on TUSCANY-1725 at 3/18/08 5:03 AM:
 --

 Thanks for this.  I'd like to add the schema as the basis of a test, as
 a first step.  We need you to grant license to the ASF to use it.  Would
 you be able to attach a file with the schema please and tick the Grant
 License button please?


 (for ref: here's the thread that led to this jira --
 http://www.mail-archive.com/[EMAIL PROTECTED]/msg01818.html )

   was (Author: kgoodson):
 Thanks for this.  I'd like to add the schema as the basis of a test,
 as a first step.  We need you to grant license to the ASF to use it.
 Would you be able to attach a file with the schema please and tick the
 Grant License button please?


 (for ref: here's the thread that led to this jira --
 http://www.mail-archive.com/[EMAIL PROTECTED]/msg01818.html)

  XSD2JavaGenerator has a problem with associations navigable from both
  sides
  --
  -
 
  Key: TUSCANY-1725
  URL:
 https://issues.apache.org/jira/browse/TUSCANY-1725
  Project: Tuscany
   Issue Type: Bug
   Components: Java SDO Tools
 Affects Versions: Java-SDO-1.0
  Environment: Linux
 Reporter: Miro Kandic
  Fix For: Java-SDO-Next
 
  Attachments: xmlSchema.xsd
 
 
  XSD2JavaGenerator does not work in the case of any association type
 (association, composition) that is navigable from both sides.
  I have intentionally, just to test generator, made Customer-SoH
 association in the next schema navigable from both sides and generated
 code cannot be compiled.
  Frank, after initial analyses, confirmed that saying Bidirectional
  references are broken in Tuscany. They seem to have been broken when
  we switched over to the new (noEMF) codegen patterns.
  Next is complete XSD built automatically from the UML model.
  ?xml version=1.0 encoding=UTF-8?
  !--
  Attention: Generated code! Do not modify by hand!
  Generated by: XmlSchema.vsl in andromda-xmlschema-cartridge.
--
  xsd:schema
  targetNamespace=http://www.cisco.com/odns/soa;
  xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  xmlns:sdo=commonj.sdo xmlns:sdoxml=commonj.sdo/xml
  xmlns:impl=http://www.cisco.com/odns/soa;
  elementFormDefault=qualified
  xsd:import namespace=commonj.sdo/xml
 schemaLocation=sdoXML.xsd/
  xsd:complexType name=Address
  xsd:sequence
  xsd:element name=street type=xsd:string minOccurs=1
 maxOccurs=1/
  xsd:element name=city type=xsd:string minOccurs=1
 maxOccurs=1/
  /xsd:sequence
  xsd:attribute name=xmlId type=xsd:ID/
  /xsd:complexType
  xsd:complexType name=Customer
  xsd:sequence
  xsd:element name=orders type=xsd:IDREF
 sdoxml:propertyType=impl:SoH
  sdoxml:oppositeProperty=customer minOccurs=0
 maxOccurs=unbounded /
  xsd:element name=name type=xsd:string minOccurs=1
 maxOccurs=1/
  xsd:element name=created type=xsd:date minOccurs=1
 maxOccurs=1/
  xsd:element name=lastUpdated type=xsd:dateTime
 minOccurs=1 maxOccurs=1/
  xsd:element name=modifiedBy type=xsd:string
 minOccurs=1 maxOccurs=1/
  xsd:element name=id type=xsd:long minOccurs=1
 maxOccurs=1/
  /xsd:sequence
  xsd:attribute name=xmlId type=xsd:ID/
  /xsd:complexType
  xsd:complexType name=Part
  xsd:sequence
  xsd:element name=uom type=xsd:string minOccurs=1
 maxOccurs=1/
  xsd:element name=aggState type=xsd:string
 minOccurs=1 maxOccurs=1/
  xsd:element name=id type=xsd:long minOccurs=1
 maxOccurs=1/
  /xsd:sequence
  xsd:attribute name=xmlId type=xsd:ID/
  /xsd:complexType
  xsd:complexType name

Re: [VOTE] Release SDO Java version 1.1-incubating (release candidate 2)

2008-03-18 Thread kelvin goodson
This release candidate turned out to have a few issues when I took this for
a vote on the general AT incubator list [1].  At the moment I'm not finding
the time to address these issues.  Is there anyone who might be able to pick
this up?  It doesn't require SDO knowledge,  just release management.

Kelvin.

[1] http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg28403.html

On 29/02/2008, kelvin goodson [EMAIL PROTECTED] wrote:

 Please review and vote to release the 1.1-incubating release of Tuscany
 SDO for Java

 The distribution files are at [1]
 Maven artifacts for the release candidate are available at [2]
 The tag for the release is at [3]

 The rat report is at - [4], [5]

 Here's my +1

 Kelvin.

 [1] 
 http://people.apache.org/~amita/tuscany/1.1-RC2http://people.apache.org/%7Eamita/tuscany/1.1-RC2
 [2] 
 http://people.apache.org/~amita/tuscany/1.1-RC2/mavenhttp://people.apache.org/%7Eamita/tuscany/1.1-RC2/maven
 [3]
 https://svn.apache.org/repos/asf/incubator/tuscany/tags/java/sdo/1.1-incubating/
 [4]
 http://people.apache.org/~amita/tuscany/1.1-RC2/rat-SDO-1.1-incubating-RC2.txthttp://people.apache.org/%7Eamita/tuscany/1.1-RC2/rat-SDO-1.1-incubating-RC2.txt
 [5]
 http://people.apache.org/~amita/tuscany/1.1-RC2/rat-SDO-1.1-incubating-RC2-Exceptions.txthttp://people.apache.org/%7Eamita/tuscany/1.1-RC2/rat-SDO-1.1-incubating-RC2-Exceptions.txt




Re: [VOTE] Release SDO Java version 1.1-incubating (release candidate 2)

2008-03-18 Thread kelvin goodson
Sorry,  in my recent post I gave the wrong link for the general thread -- it
should have been
http://www.mail-archive.com/[EMAIL PROTECTED]/msg16971.html

Kelvin.

On 18/03/2008, kelvin goodson [EMAIL PROTECTED] wrote:

 This release candidate turned out to have a few issues when I took this
 for a vote on the general AT incubator list [1].  At the moment I'm not
 finding the time to address these issues.  Is there anyone who might be able
 to pick this up?  It doesn't require SDO knowledge,  just release
 management.

 Kelvin.

 [1] http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg28403.html

 On 29/02/2008, kelvin goodson [EMAIL PROTECTED] wrote:
 
  Please review and vote to release the 1.1-incubating release of Tuscany
  SDO for Java
 
  The distribution files are at [1]
  Maven artifacts for the release candidate are available at [2]
  The tag for the release is at [3]
 
  The rat report is at - [4], [5]
 
  Here's my +1
 
  Kelvin.
 
  [1] 
  http://people.apache.org/~amita/tuscany/1.1-RC2http://people.apache.org/%7Eamita/tuscany/1.1-RC2
  [2] 
  http://people.apache.org/~amita/tuscany/1.1-RC2/mavenhttp://people.apache.org/%7Eamita/tuscany/1.1-RC2/maven
  [3]
  https://svn.apache.org/repos/asf/incubator/tuscany/tags/java/sdo/1.1-incubating/
  [4]
  http://people.apache.org/~amita/tuscany/1.1-RC2/rat-SDO-1.1-incubating-RC2.txthttp://people.apache.org/%7Eamita/tuscany/1.1-RC2/rat-SDO-1.1-incubating-RC2.txt
  [5]
  http://people.apache.org/~amita/tuscany/1.1-RC2/rat-SDO-1.1-incubating-RC2-Exceptions.txthttp://people.apache.org/%7Eamita/tuscany/1.1-RC2/rat-SDO-1.1-incubating-RC2-Exceptions.txt
 
 



[jira] Resolved: (TUSCANY-2098) Bidirectional properties are not working in XSD2JavaGenerator

2008-03-18 Thread Kelvin Goodson (JIRA)

 [ 
https://issues.apache.org/jira/browse/TUSCANY-2098?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kelvin Goodson resolved TUSCANY-2098.
-

Resolution: Duplicate

Surinder,  you have uncovered a known problem.  It was reported in 
https://issues.apache.org/jira/browse/TUSCANY-1725
Unfortunately we haven't been able to tackle it yet.However,  I think if 
you wanted to try to get your schema running using dynamic SDO you would need 
to add some xsd:ID properties to Writer and Book.  I put up an example of this 
kind of thing the other day,  see  http://www.mail-archive.com/[EMAIL 
PROTECTED]/msg02626.html

Is there a chance you might be able to help us fix TUSCANY-1725?

 Bidirectional properties are not working in XSD2JavaGenerator
 -

 Key: TUSCANY-2098
 URL: https://issues.apache.org/jira/browse/TUSCANY-2098
 Project: Tuscany
  Issue Type: Bug
  Components: Java SDO Tools
Affects Versions: Java-SDO-1.0
Reporter: Surinder Pal Singh Bindra
Priority: Blocker
 Attachments: library.xsd


 Bidirectional relations seems to be broken in XSD2JavaGenerator. It generates 
 code which can't be compiled. Here is the sample schema.
 ?xml version=1.0 encoding=UTF-8?
 xsd:schema targetNamespace=http://www.generated.example.sdo.org/Library; 
 xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
 xmlns:sdoXML=commonj.sdo/xml 
 xmlns:sdoJava=commonj.sdo/java xmlns:sdo=commonj.sdo 
 xmlns:lib=http://www.generated.example.sdo.org/Library;
 sdoJava:package=org.sdo.example.generated.library
 
   xsd:complexType name=Book   
   xsd:sequence
   xsd:element name=title type=xsd:string/
   xsd:element name=pages type=xsd:int/
   xsd:element name=category type=lib:BookCategory/
   xsd:element name=author type=lib:Writer 
 sdoXML:oppositeProperty=books sdoXML:propertyType=lib:Writer/
   /xsd:sequence
   /xsd:complexType
   xsd:complexType name=Writer 
   xsd:sequence
   xsd:element name=name type=xsd:string/ 
   xsd:element name=books type=lib:Book minOccurs=0 
 maxOccurs=unbounded sdoXML:oppositeProperty=author 
 sdoXML:propertyType=lib:Book/
   /xsd:sequence
   /xsd:complexType
   xsd:complexType name=Library
   xsd:sequence  
 xsd:element name=name type=xsd:string/  
   xsd:element name=writers type=lib:Writer 
 minOccurs=0 maxOccurs=unbounded /
   xsd:element name=books type=lib:Book minOccurs=0 
 maxOccurs=unbounded /
   /xsd:sequence
   /xsd:complexType
   xsd:simpleType name=BookCategory
   xsd:restriction base=xsd:NCName
   xsd:enumeration value=Mystery/
   xsd:enumeration value=ScienceFiction/
   xsd:enumeration value=Biography/
   /xsd:restriction
   /xsd:simpleType
 /xsd:schema

-- 
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]



[jira] Issue Comment Edited: (TUSCANY-1725) XSD2JavaGenerator has a problem with associations navigable from both sides

2008-03-18 Thread Kelvin Goodson (JIRA)

[ 
https://issues.apache.org/jira/browse/TUSCANY-1725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12529388#action_12529388
 ] 

kgoodson edited comment on TUSCANY-1725 at 3/18/08 5:03 AM:
--

Thanks for this.  I'd like to add the schema as the basis of a test, as a first 
step.  We need you to grant license to the ASF to use it.  Would you be able to 
attach a file with the schema please and tick the Grant License button please?


(for ref: here's the thread that led to this jira -- 
http://www.mail-archive.com/[EMAIL PROTECTED]/msg01818.html )

  was (Author: kgoodson):
Thanks for this.  I'd like to add the schema as the basis of a test, as a 
first step.  We need you to grant license to the ASF to use it.  Would you be 
able to attach a file with the schema please and tick the Grant License 
button please?


(for ref: here's the thread that led to this jira -- 
http://www.mail-archive.com/[EMAIL PROTECTED]/msg01818.html)
  
 XSD2JavaGenerator has a problem with associations navigable from both sides
 ---

 Key: TUSCANY-1725
 URL: https://issues.apache.org/jira/browse/TUSCANY-1725
 Project: Tuscany
  Issue Type: Bug
  Components: Java SDO Tools
Affects Versions: Java-SDO-1.0
 Environment: Linux
Reporter: Miro Kandic
 Fix For: Java-SDO-Next

 Attachments: xmlSchema.xsd


 XSD2JavaGenerator does not work in the case of any association type 
 (association, composition) that is navigable from both sides.
 I have intentionally, just to test generator, made Customer-SoH association 
 in the next schema navigable from both sides and generated code cannot be 
 compiled.
 Frank, after initial analyses, confirmed that saying Bidirectional 
 references are broken in Tuscany. They seem
 to have been broken when we switched over to the new (noEMF) codegen
 patterns.
 Next is complete XSD built automatically from the UML model.
 ?xml version=1.0 encoding=UTF-8?
 !--
 Attention: Generated code! Do not modify by hand!
 Generated by: XmlSchema.vsl in andromda-xmlschema-cartridge.
   --
 xsd:schema
 targetNamespace=http://www.cisco.com/odns/soa;
 xmlns:xsd=http://www.w3.org/2001/XMLSchema;
 xmlns:sdo=commonj.sdo xmlns:sdoxml=commonj.sdo/xml
 xmlns:impl=http://www.cisco.com/odns/soa;
 elementFormDefault=qualified
 xsd:import namespace=commonj.sdo/xml schemaLocation=sdoXML.xsd/
 xsd:complexType name=Address
 xsd:sequence
 xsd:element name=street type=xsd:string minOccurs=1 
 maxOccurs=1/
 xsd:element name=city type=xsd:string minOccurs=1 
 maxOccurs=1/
 /xsd:sequence
 xsd:attribute name=xmlId type=xsd:ID/
 /xsd:complexType
 xsd:complexType name=Customer
 xsd:sequence
 xsd:element name=orders type=xsd:IDREF 
 sdoxml:propertyType=impl:SoH
 sdoxml:oppositeProperty=customer minOccurs=0 
 maxOccurs=unbounded /
 xsd:element name=name type=xsd:string minOccurs=1 
 maxOccurs=1/
 xsd:element name=created type=xsd:date minOccurs=1 
 maxOccurs=1/
 xsd:element name=lastUpdated type=xsd:dateTime minOccurs=1 
 maxOccurs=1/
 xsd:element name=modifiedBy type=xsd:string minOccurs=1 
 maxOccurs=1/
 xsd:element name=id type=xsd:long minOccurs=1 
 maxOccurs=1/
 /xsd:sequence
 xsd:attribute name=xmlId type=xsd:ID/
 /xsd:complexType
 xsd:complexType name=Part
 xsd:sequence
 xsd:element name=uom type=xsd:string minOccurs=1 
 maxOccurs=1/
 xsd:element name=aggState type=xsd:string minOccurs=1 
 maxOccurs=1/
 xsd:element name=id type=xsd:long minOccurs=1 
 maxOccurs=1/
 /xsd:sequence
 xsd:attribute name=xmlId type=xsd:ID/
 /xsd:complexType
 xsd:complexType name=Product
  xsd:complexContent
   xsd:extension base=impl:Part
 xsd:sequence
 xsd:element name=description type=xsd:string minOccurs=1 
 maxOccurs=1/
 xsd:element name=modifiedBy type=xsd:string minOccurs=1 
 maxOccurs=1/
 xsd:element name=lastUpdated type=xsd:dateTime minOccurs=1 
 maxOccurs=1/
 xsd:element name=created type=xsd:date minOccurs=1 
 maxOccurs=1/
 /xsd:sequence
   /xsd:extension
  /xsd:complexContent
 /xsd:complexType
 xsd:complexType name=SoH
 xsd:sequence
 xsd:element name=customer type=xsd:IDREF 
 sdoxml:propertyType=impl:Customer
 sdoxml:oppositeProperty=orders minOccurs=1 maxOccurs=1 
 /
 xsd:element name=lines type=impl:SoL minOccurs=0 
 maxOccurs=unbounded /
 xsd:element name=number type=xsd:string minOccurs=1 
 maxOccurs=1/
 xsd:element 

[jira] Resolved: (TUSCANY-2080) XML Helper Load method fails to return SDO generated class when using the method that takes a java.xml.transform.Source

2008-03-17 Thread Kelvin Goodson (JIRA)

 [ 
https://issues.apache.org/jira/browse/TUSCANY-2080?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kelvin Goodson resolved TUSCANY-2080.
-

Resolution: Later

The implementation is behaving as per the 2.1 spec.
There is a spec issue open for the 2.1.1 spec (I keen I had seen this recently 
but didn't make the proper connection)

The spec issue is -- No Target Namespace results in no global properties?

The situation for the 2.1 spec is that if you register an XML schema that does 
not specify a target namespace then no
global elements will be registered with XSDHelper as no open content properties
would have been registered with TypeHelper due to the namespace URI being null.

 XML Helper Load method fails to return SDO generated class when using the 
 method that takes a java.xml.transform.Source
 ---

 Key: TUSCANY-2080
 URL: https://issues.apache.org/jira/browse/TUSCANY-2080
 Project: Tuscany
  Issue Type: Bug
  Components: Java SDO Implementation
Affects Versions: Java-SDO-1.0
 Environment: Windows XP
Reporter: Jason Dixon
 Attachments: tuscany_example.zip


 When trying to go from a Document object to a Generated Object using the XML 
 helper only AnyTypeDataObject is being returned. The other SDO operations 
 function propperly. For exampl if I marshall the Document to String and then 
 use the XML load method that takes a string, the correct generated sdo 
 instance is return. Please see the source code example below.
 Thanks in advance!
   try {
   DocumentBuilderFactory factory = 
 DocumentBuilderFactory.newInstance();
   factory.setNamespaceAware(true);
   
   DocumentBuilder builder = factory.newDocumentBuilder();
   System.out.println(Builder is namespace aware  + 
 builder.isNamespaceAware());
   
   Document dom = builder.parse(new File(results.xml));  
 
   
   //Create a scope and register
   HelperContext scope = 
 HelperProvider.getDefaultContext();
   DomainFactoryImpl.INSTANCE.register(scope);
   //Now load from dom to object
   DOMSource source = new DOMSource(dom);
   XMLDocument xml = scope.getXMLHelper().load(source, 
 null, null);
   Object clazz = xml.getRootObject();
   System.out.println(clazz);
   
   } catch (FactoryConfigurationError e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
   } catch (ParserConfigurationException e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
   } catch (SAXException e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
   } catch (IOException e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
   }

-- 
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]



[jira] Commented: (TUSCANY-2080) XML Helper Load method fails to return SDO generated class when using the method that takes a java.xml.transform.Source

2008-03-14 Thread Kelvin Goodson (JIRA)

[ 
https://issues.apache.org/jira/browse/TUSCANY-2080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12578643#action_12578643
 ] 

Kelvin Goodson commented on TUSCANY-2080:
-

This symptom is seen when there is a mismatch between the input XML and the 
registered metadata;  usually because the metadata isn't registered.  Here you 
have registered the metadata,  so we need to see the XML that is being 
delivered by the DOMSource,  and the metadata that is being used to generate 
the static classes.   In particular the namespace URI and root element name of 
the input document must match a global element in the defining schema,  or the 
type of the root element must be defined by an xsi:type attribute.  Please can 
you post the input doc and schema,  or create a simulation if you are not able 
to post those?

I suspect this is not a bug in Tuscany.   It may be better to continue this 
discussion on the tuscany-user mailing list if you didn't mind,  with a link to 
the JIRA,  then the user community will find it easier to benefit from this 
discussion.

 XML Helper Load method fails to return SDO generated class when using the 
 method that takes a java.xml.transform.Source
 ---

 Key: TUSCANY-2080
 URL: https://issues.apache.org/jira/browse/TUSCANY-2080
 Project: Tuscany
  Issue Type: Bug
  Components: Java SDO Implementation
Affects Versions: Java-SDO-1.0
 Environment: Windows XP
Reporter: Jason Dixon

 When trying to go from a Document object to a Generated Object using the XML 
 helper only AnyTypeDataObject is being returned. The other SDO operations 
 function propperly. For exampl if I marshall the Document to String and then 
 use the XML load method that takes a string, the correct generated sdo 
 instance is return. Please see the source code example below.
 Thanks in advance!
   try {
   DocumentBuilderFactory factory = 
 DocumentBuilderFactory.newInstance();
   factory.setNamespaceAware(true);
   
   DocumentBuilder builder = factory.newDocumentBuilder();
   System.out.println(Builder is namespace aware  + 
 builder.isNamespaceAware());
   
   Document dom = builder.parse(new File(results.xml));  
 
   
   //Create a scope and register
   HelperContext scope = 
 HelperProvider.getDefaultContext();
   DomainFactoryImpl.INSTANCE.register(scope);
   //Now load from dom to object
   DOMSource source = new DOMSource(dom);
   XMLDocument xml = scope.getXMLHelper().load(source, 
 null, null);
   Object clazz = xml.getRootObject();
   System.out.println(clazz);
   
   } catch (FactoryConfigurationError e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
   } catch (ParserConfigurationException e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
   } catch (SAXException e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
   } catch (IOException e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
   }

-- 
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]



[jira] Commented: (TUSCANY-2080) XML Helper Load method fails to return SDO generated class when using the method that takes a java.xml.transform.Source

2008-03-14 Thread Kelvin Goodson (JIRA)

[ 
https://issues.apache.org/jira/browse/TUSCANY-2080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12578666#action_12578666
 ] 

Kelvin Goodson commented on TUSCANY-2080:
-

I just re-read your report,  and see that I had misunderstood a detail, 
apologies.  So if you go via string,  the correct class is generated for the 
root object.  This does sound more like a bug.  We need to create a test case,  
so if you can post your schema and results.xml file that would be great.

 XML Helper Load method fails to return SDO generated class when using the 
 method that takes a java.xml.transform.Source
 ---

 Key: TUSCANY-2080
 URL: https://issues.apache.org/jira/browse/TUSCANY-2080
 Project: Tuscany
  Issue Type: Bug
  Components: Java SDO Implementation
Affects Versions: Java-SDO-1.0
 Environment: Windows XP
Reporter: Jason Dixon

 When trying to go from a Document object to a Generated Object using the XML 
 helper only AnyTypeDataObject is being returned. The other SDO operations 
 function propperly. For exampl if I marshall the Document to String and then 
 use the XML load method that takes a string, the correct generated sdo 
 instance is return. Please see the source code example below.
 Thanks in advance!
   try {
   DocumentBuilderFactory factory = 
 DocumentBuilderFactory.newInstance();
   factory.setNamespaceAware(true);
   
   DocumentBuilder builder = factory.newDocumentBuilder();
   System.out.println(Builder is namespace aware  + 
 builder.isNamespaceAware());
   
   Document dom = builder.parse(new File(results.xml));  
 
   
   //Create a scope and register
   HelperContext scope = 
 HelperProvider.getDefaultContext();
   DomainFactoryImpl.INSTANCE.register(scope);
   //Now load from dom to object
   DOMSource source = new DOMSource(dom);
   XMLDocument xml = scope.getXMLHelper().load(source, 
 null, null);
   Object clazz = xml.getRootObject();
   System.out.println(clazz);
   
   } catch (FactoryConfigurationError e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
   } catch (ParserConfigurationException e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
   } catch (SAXException e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
   } catch (IOException e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
   }

-- 
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]



[jira] Commented: (TUSCANY-2080) XML Helper Load method fails to return SDO generated class when using the method that takes a java.xml.transform.Source

2008-03-14 Thread Kelvin Goodson (JIRA)

[ 
https://issues.apache.org/jira/browse/TUSCANY-2080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12578674#action_12578674
 ] 

Kelvin Goodson commented on TUSCANY-2080:
-

I knocked up a quick test for this which does not fail,  see the commit on the 
commits tab of this jira

https://issues.apache.org/jira/browse/TUSCANY-2080?page=com.atlassian.jira.plugin.ext.subversion:subversion-commits-tabpanel


 XML Helper Load method fails to return SDO generated class when using the 
 method that takes a java.xml.transform.Source
 ---

 Key: TUSCANY-2080
 URL: https://issues.apache.org/jira/browse/TUSCANY-2080
 Project: Tuscany
  Issue Type: Bug
  Components: Java SDO Implementation
Affects Versions: Java-SDO-1.0
 Environment: Windows XP
Reporter: Jason Dixon

 When trying to go from a Document object to a Generated Object using the XML 
 helper only AnyTypeDataObject is being returned. The other SDO operations 
 function propperly. For exampl if I marshall the Document to String and then 
 use the XML load method that takes a string, the correct generated sdo 
 instance is return. Please see the source code example below.
 Thanks in advance!
   try {
   DocumentBuilderFactory factory = 
 DocumentBuilderFactory.newInstance();
   factory.setNamespaceAware(true);
   
   DocumentBuilder builder = factory.newDocumentBuilder();
   System.out.println(Builder is namespace aware  + 
 builder.isNamespaceAware());
   
   Document dom = builder.parse(new File(results.xml));  
 
   
   //Create a scope and register
   HelperContext scope = 
 HelperProvider.getDefaultContext();
   DomainFactoryImpl.INSTANCE.register(scope);
   //Now load from dom to object
   DOMSource source = new DOMSource(dom);
   XMLDocument xml = scope.getXMLHelper().load(source, 
 null, null);
   Object clazz = xml.getRootObject();
   System.out.println(clazz);
   
   } catch (FactoryConfigurationError e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
   } catch (ParserConfigurationException e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
   } catch (SAXException e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
   } catch (IOException e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
   }

-- 
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]



[jira] Commented: (TUSCANY-2080) XML Helper Load method fails to return SDO generated class when using the method that takes a java.xml.transform.Source

2008-03-14 Thread Kelvin Goodson (JIRA)

[ 
https://issues.apache.org/jira/browse/TUSCANY-2080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12578823#action_12578823
 ] 

Kelvin Goodson commented on TUSCANY-2080:
-

This issue seems to be restricted to the conditions of creating the graph via a 
DOMSource AND the prefix  is bound to the namespace. Any other prefix seems 
fine.  If you parse a document direct from an inputstream  that has the  
prefix, then all is well, but going via a DOMSource brings out the problem.  So 
far I have trapped this down to the EMF XMLHelperImpl$NamespaceSupport having 
no table entry for the  prefix.  Here's the stack 
(I have to do other things for a while,  if you can follow up at all that would 
be great)

XMLHelperImpl$NamespaceSupport.getURI(String) line: 1419
SDOXMLResourceImpl$SDOXMLHelperImpl(XMLHelperImpl).getURI(String) line: 1253
SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler(XMLHandler).getFeature(EObject, 
String, String, boolean) line: 2707
SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler(XMLHandler).handleFeature(String, 
String) line: 1541   
SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler(XMLHandler).createDocumentRoot(String,
 String, String, EFactory, boolean) line: 1237   
SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler(XMLHandler).createObjectByType(String,
 String, boolean) line: 1165 
SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler(XMLHandler).createTopObject(String,
 String) line: 1247 
SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler(XMLHandler).processElement(String, 
String, String) line: 883   
SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler(XMLHandler).startElement(String, 
String, String) line: 866 
SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler(XMLHandler).startElement(String, 
String, String, Attributes) line: 627 
SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler.startElement(String, String, 
String, Attributes) line: 405 
SDOXMLResourceImpl$SDOXMLLoadImpl(XMLLoadImpl).traverse(Node, 
XMLLoadImpl$AttributesProxy, DefaultHandler, LexicalHandler) line: 566
SDOXMLResourceImpl$SDOXMLLoadImpl(XMLLoadImpl).traverse(Node, 
XMLLoadImpl$AttributesProxy, DefaultHandler, LexicalHandler) line: 538
SDOXMLResourceImpl$SDOXMLLoadImpl(XMLLoadImpl).load(XMLResource, Node, Map) 
line: 409   
SDOXMLResourceImpl(XMLResourceImpl).doLoad(Node, Map) line: 606 
SDOXMLResourceImpl(XMLResourceImpl).load(Node, Map) line: 570   
XMLDocumentImpl.load(Node, Object) line: 249
XMLHelperImpl.load(Source, String, Object) line: 113
SimpleStaticTestCase.testSimpleStaticViaDomSource2() line: 114  




 XML Helper Load method fails to return SDO generated class when using the 
 method that takes a java.xml.transform.Source
 ---

 Key: TUSCANY-2080
 URL: https://issues.apache.org/jira/browse/TUSCANY-2080
 Project: Tuscany
  Issue Type: Bug
  Components: Java SDO Implementation
Affects Versions: Java-SDO-1.0
 Environment: Windows XP
Reporter: Jason Dixon
 Attachments: tuscany_example.zip


 When trying to go from a Document object to a Generated Object using the XML 
 helper only AnyTypeDataObject is being returned. The other SDO operations 
 function propperly. For exampl if I marshall the Document to String and then 
 use the XML load method that takes a string, the correct generated sdo 
 instance is return. Please see the source code example below.
 Thanks in advance!
   try {
   DocumentBuilderFactory factory = 
 DocumentBuilderFactory.newInstance();
   factory.setNamespaceAware(true);
   
   DocumentBuilder builder = factory.newDocumentBuilder();
   System.out.println(Builder is namespace aware  + 
 builder.isNamespaceAware());
   
   Document dom = builder.parse(new File(results.xml));  
 
   
   //Create a scope and register
   HelperContext scope = 
 HelperProvider.getDefaultContext();
   DomainFactoryImpl.INSTANCE.register(scope);
   //Now load from dom to object
   DOMSource source = new DOMSource(dom);
   XMLDocument xml = scope.getXMLHelper().load(source, 
 null, null);
   Object clazz = xml.getRootObject();
   System.out.println(clazz);
   
   } catch (FactoryConfigurationError e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
   } catch (ParserConfigurationException e) {
   // TODO Auto-generated catch block

[jira] Issue Comment Edited: (TUSCANY-2080) XML Helper Load method fails to return SDO generated class when using the method that takes a java.xml.transform.Source

2008-03-14 Thread Kelvin Goodson (JIRA)

[ 
https://issues.apache.org/jira/browse/TUSCANY-2080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12578823#action_12578823
 ] 

kgoodson edited comment on TUSCANY-2080 at 3/14/08 8:59 AM:
--

This issue seems to be restricted to the conditions of creating the graph via a 
DOMSource AND the prefix  is bound to the namespace. Any other prefix seems 
fine.  If you parse a document direct from an inputstream  that has the  
prefix, then all is well, but going via a DOMSource brings out the problem.  So 
far I have trapped this down to the EMF XMLHelperImpl$NamespaceSupport having 
no table entry for the  prefix.  Here's the stack 
(I have to do other things for a while,  if you are in a position to follow up 
at all that would be great)

XMLHelperImpl$NamespaceSupport.getURI(String) line: 1419
SDOXMLResourceImpl$SDOXMLHelperImpl(XMLHelperImpl).getURI(String) line: 1253
SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler(XMLHandler).getFeature(EObject, 
String, String, boolean) line: 2707
SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler(XMLHandler).handleFeature(String, 
String) line: 1541   
SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler(XMLHandler).createDocumentRoot(String,
 String, String, EFactory, boolean) line: 1237   
SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler(XMLHandler).createObjectByType(String,
 String, boolean) line: 1165 
SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler(XMLHandler).createTopObject(String,
 String) line: 1247 
SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler(XMLHandler).processElement(String, 
String, String) line: 883   
SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler(XMLHandler).startElement(String, 
String, String) line: 866 
SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler(XMLHandler).startElement(String, 
String, String, Attributes) line: 627 
SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler.startElement(String, String, 
String, Attributes) line: 405 
SDOXMLResourceImpl$SDOXMLLoadImpl(XMLLoadImpl).traverse(Node, 
XMLLoadImpl$AttributesProxy, DefaultHandler, LexicalHandler) line: 566
SDOXMLResourceImpl$SDOXMLLoadImpl(XMLLoadImpl).traverse(Node, 
XMLLoadImpl$AttributesProxy, DefaultHandler, LexicalHandler) line: 538
SDOXMLResourceImpl$SDOXMLLoadImpl(XMLLoadImpl).load(XMLResource, Node, Map) 
line: 409   
SDOXMLResourceImpl(XMLResourceImpl).doLoad(Node, Map) line: 606 
SDOXMLResourceImpl(XMLResourceImpl).load(Node, Map) line: 570   
XMLDocumentImpl.load(Node, Object) line: 249
XMLHelperImpl.load(Source, String, Object) line: 113
SimpleStaticTestCase.testSimpleStaticViaDomSource2() line: 114  




  was (Author: kgoodson):
This issue seems to be restricted to the conditions of creating the graph 
via a DOMSource AND the prefix  is bound to the namespace. Any other prefix 
seems fine.  If you parse a document direct from an inputstream  that has the 
 prefix, then all is well, but going via a DOMSource brings out the problem.  
So far I have trapped this down to the EMF XMLHelperImpl$NamespaceSupport 
having no table entry for the  prefix.  Here's the stack 
(I have to do other things for a while,  if you can follow up at all that would 
be great)

XMLHelperImpl$NamespaceSupport.getURI(String) line: 1419
SDOXMLResourceImpl$SDOXMLHelperImpl(XMLHelperImpl).getURI(String) line: 1253
SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler(XMLHandler).getFeature(EObject, 
String, String, boolean) line: 2707
SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler(XMLHandler).handleFeature(String, 
String) line: 1541   
SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler(XMLHandler).createDocumentRoot(String,
 String, String, EFactory, boolean) line: 1237   
SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler(XMLHandler).createObjectByType(String,
 String, boolean) line: 1165 
SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler(XMLHandler).createTopObject(String,
 String) line: 1247 
SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler(XMLHandler).processElement(String, 
String, String) line: 883   
SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler(XMLHandler).startElement(String, 
String, String) line: 866 
SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler(XMLHandler).startElement(String, 
String, String, Attributes) line: 627 
SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler.startElement(String, String, 
String, Attributes) line: 405 
SDOXMLResourceImpl$SDOXMLLoadImpl(XMLLoadImpl).traverse(Node, 
XMLLoadImpl$AttributesProxy, DefaultHandler, LexicalHandler) line: 566
SDOXMLResourceImpl$SDOXMLLoadImpl(XMLLoadImpl).traverse(Node, 
XMLLoadImpl$AttributesProxy, DefaultHandler, LexicalHandler) line: 538
SDOXMLResourceImpl$SDOXMLLoadImpl(XMLLoadImpl).load(XMLResource, Node, Map) 
line: 409   
SDOXMLResourceImpl(XMLResourceImpl).doLoad(Node, Map) line: 606 
SDOXMLResourceImpl(XMLResourceImpl).load(Node, Map) line: 570   
XMLDocumentImpl.load(Node, Object) 

[jira] Commented: (TUSCANY-2058) The method XSDHelper.isXSD(Type) is returning invalid information

2008-03-07 Thread Kelvin Goodson (JIRA)

[ 
https://issues.apache.org/jira/browse/TUSCANY-2058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12576145#action_12576145
 ] 

Kelvin Goodson commented on TUSCANY-2058:
-

Having consulted,  it seems that the intention is that only the xsd helper 
belonging to the scope in which the type was defined should be able to provide 
information on XSD metadata,  so we need to check that the supplied instance of 
the Type is known to the this xsdHelper before examining the annotations we 
keep on the Type impl class.

 The method XSDHelper.isXSD(Type) is returning invalid information
 -

 Key: TUSCANY-2058
 URL: https://issues.apache.org/jira/browse/TUSCANY-2058
 Project: Tuscany
  Issue Type: Bug
  Components: Java SDO Implementation
Affects Versions: Java-SDO-1.0
 Environment: n/a
Reporter: David T. Adcox
 Fix For: Java-SDO-Next

 Attachments: Test2058.java


 Based on my understanding, XSDHelper.isXSD(Type) should return 'true' if the 
 supplied Type object has been defined in the Scope from which the XSDHelper 
 was constructed.  In turn, I expect that 'false' will be returned, for a Type 
 object NOT defined in the Scope.  In some testing I have performed, I'm 
 seeing that 'true' is always returned, even if the Type is defined outside 
 the Scope being questioned.  I will attach a sample.

-- 
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]



Re: Why there are two different ways for tuscany generating WSDL from java (java2wsdl)

2008-03-06 Thread kelvin goodson
On 05/03/2008, Scott Kurz [EMAIL PROTECTED] wrote:


 I didn't follow all of the discussion about removing SDO from the Tuscany
 charter... but if SDO is no
 longer a special part of the Tuscany project then what would happen to the
 W2J/J2W tools built around
 SDO support?


The WSDL/WSDL tools are currently in the SCA code base, so I don't imagine
that would change as a result of the creation of a SDO specific project.

Kelvin.


Re: Tuscany participation at Google Summer of Code (GSoC) 2008

2008-03-06 Thread kelvin goodson
One possibility in the SDO domain that I have heard a request for recently
from more than one source is an ECMAScript/JavaScript implementation of
SDO.  This could be started by a GSoC activity.  I opened a Wish List item
for it a few days ago as TUSCANY-2065. I don't have deep skills in this
area,  and the concept is therefore somewhat nebulous to me,  but I'd like
to see it happen.

Kelvin.

On 01/03/2008, Luciano Resende [EMAIL PROTECTED] wrote:

 Apache Software Foundation is participating in Google Summer of Code
 program [1] as a mentoring organization. I think this is a good
 opportunity for us and I'd like to use this thread to discuss possible
 innovative and challenging projects that could attract the students
 participating on the program. Maybe we could start be defining some
 themes, and then projects around this themes, then, once we have a
 couple of projects, we could use wiki to create a small description of
 the project.

 Possible themes :

Tuscany Extensions (new bindings and implementations)
Web 2.0

 Thoughts ?

 [1] http://code.google.com/soc/2008/
 [2] http://wiki.apache.org/general/SummerOfCode2008

 --
 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: [VOTE] Community is more important than code

2008-03-05 Thread kelvin goodson
I believe it's important when entering a community to try as best you can to
adopt its culture.  I believe both things are important.  I can't say in
general I've deliberated long enough to come to a personal conclusion about
which is more important,  but in no light hearted fashion I am happy to
salute the Apache flag and give my ...

+1

Kelvin

On 03/03/2008, Jean-Sebastien Delfino [EMAIL PROTECTED] wrote:

 ant elder wrote:
  After all this time in incubation we've all learnt to understand this
 but I
  think it may be useful reaffirm it now with a vote. So please all vote
 to
  show you understand and agree with the long standing Apache motto that
  community is more important than code.
 
  +1 from me.
 
 ...ant
 


 I agree with the Apache motto that community is more important than
 code but why are we asked to vote on a motto out of the blue? Can you
 give more context?

 --

 Jean-Sebastien


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




[jira] Updated: (TUSCANY-2062) WSDL2Java code generation fails on WSDL with multiple namespace imports

2008-03-05 Thread Kelvin Goodson (JIRA)

 [ 
https://issues.apache.org/jira/browse/TUSCANY-2062?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kelvin Goodson updated TUSCANY-2062:


Component/s: (was: Java SDO Tools)
 Java SCA Tools

 WSDL2Java code generation fails on WSDL with multiple namespace imports
 ---

 Key: TUSCANY-2062
 URL: https://issues.apache.org/jira/browse/TUSCANY-2062
 Project: Tuscany
  Issue Type: Bug
  Components: Java SCA Tools
Affects Versions: Java-SCA-1.0.1
 Environment: Runtime Deployment is Solaris/Websphere 6.1 however this 
 is a code generation bug
Reporter: David Woolley
Assignee: Raymond Feng
 Attachments: AdminServiceV2.wsdl, AuthenticationServiceV2.wsdl, 
 ServiceV2Common.xsd, TUSCANY-2062.zip


 As per summary. WSDLs and associated schemas will be attached.

-- 
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]



[jira] Created: (TUSCANY-2065) An ECMAScript version of SDO

2008-03-05 Thread Kelvin Goodson (JIRA)
An ECMAScript version of SDO


 Key: TUSCANY-2065
 URL: https://issues.apache.org/jira/browse/TUSCANY-2065
 Project: Tuscany
  Issue Type: Wish
Reporter: Kelvin Goodson




-- 
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]



[jira] Updated: (TUSCANY-2065) An ECMAScript version of SDO

2008-03-05 Thread Kelvin Goodson (JIRA)

 [ 
https://issues.apache.org/jira/browse/TUSCANY-2065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kelvin Goodson updated TUSCANY-2065:


Component/s: Java SDO Implementation

 An ECMAScript version of SDO
 

 Key: TUSCANY-2065
 URL: https://issues.apache.org/jira/browse/TUSCANY-2065
 Project: Tuscany
  Issue Type: Wish
  Components: Java SDO Implementation
Reporter: Kelvin Goodson



-- 
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]



[jira] Resolved: (TUSCANY-2031) Error encountered when trying to use dynamic Data APIs and SDO code-generated APIs at the same time

2008-03-04 Thread Kelvin Goodson (JIRA)

 [ 
https://issues.apache.org/jira/browse/TUSCANY-2031?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kelvin Goodson resolved TUSCANY-2031.
-

Resolution: Invalid

Suspect user error as per comment above.

 Error encountered when trying to use dynamic Data APIs and SDO code-generated 
 APIs at the same time
 ---

 Key: TUSCANY-2031
 URL: https://issues.apache.org/jira/browse/TUSCANY-2031
 Project: Tuscany
  Issue Type: Bug
  Components: Java SDO Implementation
Affects Versions: Java-SDO-beta1
 Environment: Windows XP, JDK 1.6
Reporter: Joseph Nguyen
 Fix For: Java-SDO-Next

   Original Estimate: 96h
  Remaining Estimate: 96h

 Can use generated codes from SDO generator to create DataObject(s) and XML 
 data.  Once the data has been created, error encountered when trying to use 
 dynamic Data APIs to read in to create DataObject(s).  Below shows the 
 details of error.
 Exception in thread main java.lang.ClassCastException: 
 org.eclipse.emf.ecore.xml.type.impl.AnyTypeImpl
 at 
 org.apache.tuscany.sdo.helper.XMLDocumentImpl.getRootObject(XMLDocumentImpl.java:320)
 at tbd.TBD.getRootObjectFromXMLDoc(TBD.java:73)
 at tbd.TBD.main(TBD.java:497)

-- 
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]



[jira] Commented: (TUSCANY-2031) Error encountered when trying to use dynamic Data APIs and SDO code-generated APIs at the same time

2008-03-04 Thread Kelvin Goodson (JIRA)

[ 
https://issues.apache.org/jira/browse/TUSCANY-2031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12575008#action_12575008
 ] 

Kelvin Goodson commented on TUSCANY-2031:
-

Hello Joseph.  I'm sorry that I didn't spot this one before.  I need to see a 
bit more of your code.   I don't have the beta1 source to hand at the moment to 
check in detail,  but the first thing that seems clear is that any occurrence 
of AnyTypeImpl indicates that the Type system for the document that is being 
read is not registered.  You'll need to have registered your type system in 
some way.  It's not clear whether you want to use the dynamic API on instances 
of DataObject,  or to use the dynamic API on instances of your generated 
classes.  Either is possible.  In the first case you will need to use the 
schema that you used for generating the static classes, and provide it as an 
InputStream to helperContext.getTypeHelper().define(...) and in the second case 
you would need to do something like 
MyGenFactory.INSTANCE.register(helperContext). This makes the Types available 
so that when you do helperContext.getXMLHelper().load(...) the load operation 
can look up the Types referenced in the XML document's elements,  and create 
instances of the appropriate classes.  I suspect this is user error.  So I am 
going to close this JIRA as such.  If you are still having troubles please mail 
the tuscany-user mailing list where we'll be able to help you out.

 Error encountered when trying to use dynamic Data APIs and SDO code-generated 
 APIs at the same time
 ---

 Key: TUSCANY-2031
 URL: https://issues.apache.org/jira/browse/TUSCANY-2031
 Project: Tuscany
  Issue Type: Bug
  Components: Java SDO Implementation
Affects Versions: Java-SDO-beta1
 Environment: Windows XP, JDK 1.6
Reporter: Joseph Nguyen
 Fix For: Java-SDO-Next

   Original Estimate: 96h
  Remaining Estimate: 96h

 Can use generated codes from SDO generator to create DataObject(s) and XML 
 data.  Once the data has been created, error encountered when trying to use 
 dynamic Data APIs to read in to create DataObject(s).  Below shows the 
 details of error.
 Exception in thread main java.lang.ClassCastException: 
 org.eclipse.emf.ecore.xml.type.impl.AnyTypeImpl
 at 
 org.apache.tuscany.sdo.helper.XMLDocumentImpl.getRootObject(XMLDocumentImpl.java:320)
 at tbd.TBD.getRootObjectFromXMLDoc(TBD.java:73)
 at tbd.TBD.main(TBD.java:497)

-- 
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]



[jira] Commented: (TUSCANY-2058) The method XSDHelper.isXSD(Type) is returning invalid information

2008-03-04 Thread Kelvin Goodson (JIRA)

[ 
https://issues.apache.org/jira/browse/TUSCANY-2058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12575016#action_12575016
 ] 

Kelvin Goodson commented on TUSCANY-2058:
-

This makes me wonder whether the spec has been a bit loose in its wording here 
and missed an opportunity.  We keep our annotations that carry this extra 
metadata on the Type instance itself, so every xsdHelper would have access to 
the infomation.  I think it's worth opening this up as a spec issue. 

the actual contents of the Spec do not completely preclude the behaviour we are 
seeing ...

IsXSD() can be used to tell if the XSDHelper has information about a Type. -- 
and,  for the duration of the isXSD(method), it does,  by virtue of the 
supplied argument.

It's the JavaDoc that's the main issue.  It says ...

Indicates if this helper contains XSD information for the specified type.

Which again is very loose, and probably wrong, since a set of helpers 
congregate around a scope for Types,  so an xsdHelper would have access to 
types that had been defined by itself,  and by the TypeHelper belonging to that 
scope.  Hence the fact that is has information about that type is not the 
discriminator that determines the return value.

I would suggest the behaviour we are seeing is the logical behaviour.

 The method XSDHelper.isXSD(Type) is returning invalid information
 -

 Key: TUSCANY-2058
 URL: https://issues.apache.org/jira/browse/TUSCANY-2058
 Project: Tuscany
  Issue Type: Bug
  Components: Java SDO Implementation
Affects Versions: Java-SDO-1.0
 Environment: n/a
Reporter: David T. Adcox
 Fix For: Java-SDO-Next

 Attachments: Test2058.java


 Based on my understanding, XSDHelper.isXSD(Type) should return 'true' if the 
 supplied Type object has been defined in the Scope from which the XSDHelper 
 was constructed.  In turn, I expect that 'false' will be returned, for a Type 
 object NOT defined in the Scope.  In some testing I have performed, I'm 
 seeing that 'true' is always returned, even if the Type is defined outside 
 the Scope being questioned.  I will attach a sample.

-- 
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]



[VOTE] (Restarting the vote to ...) Change Tuscany Charter to remove SDO reference

2008-03-03 Thread kelvin goodson
As requested in [1] I am restarting this vote 

Please vote to alter the wording of the existing draft Tuscany charter as
discussed in

http://mail-archives.apache.org/mod_mbox/ws-tuscany-dev/200802.mbox/[EMAIL 
PROTECTED]

to the following 


WHEREAS, the Board of Directors deems it to be in the best
 interests of the Foundation and consistent with the Foundation's
 purpose to establish a Projectt Management Committee charged with the
creation
 and maintenance of open-source software for distribution at no charge
 to the public, that simplifies the development, deployment and management
 of distributed applications built as compositions of service components.
 These components may be implemented with a range of technologies and
 connected using a variety of communication protocols. This software will
 implement relevant open standards including, but not limited to, the
 SCA standard defined by the OASIS OpenCSA member section, and related
 technologies.

NOW, THEREFORE, BE IT RESOLVED, that a Project Management
 Committee (PMC), to be known as the Apache Tuscany Project,
 be and hereby is established pursuant to Bylaws of the
 Foundation; and be it further

RESOLVED, that the Apache Tuscany Project be and hereby is
 responsible for the creation and maintenance of software
 related to Apache Tuscany;
 and be it further

RESOLVED, that the office of Vice President, Apache Tuscany be
 and hereby is created, the person holding such office to
 serve at the direction of the Board of Directors as the chair
 of the Apache Tuscany Project, and to have primary responsibility
 for management of the projects within the scope of
 responsibility of the Apache Tuscany Project; and be it further

RESOLVED, that the persons listed immediately below be and
 hereby are appointed to serve as the initial members of the
 Apache Tuscany Project:

 Adriano Crestaniadrianocrestani at apache dot org
 Andy Grove   agrove at apache dot org
 Andrew Borley   ajborley at apache dot org
 ant elder   antelder at apache dot org
 Brady Johnson  bjohnson at apache dot org
 Frank Budinsky frankb at apache dot org
 Ignacio Silva-Lepe  isilval at apache dot org
 Jean-Sebastien Delfino   jsdelfino at apache dot org
 kelvin goodson   kelvingoodson at apache dot org
 Luciano Resende   lresende at apache dot org
 Mike Edwards   edwardsmj at apache dot org
 Pete Robbinsrobbinspg at apache dot org
 Raymond Feng  rfeng at apache dot org
 Simon Laws  slaws at apache dot org
 Simon Nash  nash at apache dot org
 Venkata Krishnan  svkrish at apache dot org

NOW, THEREFORE, BE IT FURTHER RESOLVED, that Ant Elder
 be appointed to the office of Vice President, Apache Tuscany, to
 serve in accordance with and subject to the direction of the
 Board of Directors and the Bylaws of the Foundation until
 death, resignation, retirement, removal or disqualification,
 or until a successor is appointed; and be it further

RESOLVED, that the Apache Tuscany Project be and hereby
 is tasked with the migration and rationalization of the Apache
 Incubator Tuscany podling; and be it further

RESOLVED, that all responsibilities pertaining to the Apache
 Incubator Tuscany podling encumbered upon the Apache Incubator
 Project are hereafter discharged.




=

The wording of the existing draft charter was taken from
http://mail-archives.apache.org/mod_mbox/incubator-general/200710.mbox/[EMAIL 
PROTECTED]

Be sure to note when looking at that posting that it consists of a previous
version + a modification at the end of the posting.

The changes are ...
This software will implement relevant open standards including, but not
limited to, the SCA and SDO standards defined by the OASIS OpenCSA member
section.
becomes ...
This software will implement relevant open standards including, but not
limited to, the SCA standard defined by the OASIS OpenCSA member section,
and related technologies.

[1]
http://mail-archives.apache.org/mod_mbox/ws-tuscany-dev/200802.mbox/[EMAIL 
PROTECTED]


Re: [VOTE] Change Tuscany Charter to remove SDO reference

2008-03-03 Thread kelvin goodson
I have restarted this vote as requested.

Kelvin.


On 29/02/2008, Jean-Sebastien Delfino [EMAIL PROTECTED] wrote:

 kelvin goodson wrote:
  Please vote to alter the wording of the existing draft Tuscany charter
 as
  discussed in
 
 
 http://mail-archives.apache.org/mod_mbox/ws-tuscany-dev/200802.mbox/[EMAIL 
 PROTECTED]
 
  to the following 
 
  WHEREAS, the Board of Directors deems it to be in the best
   interests of the Foundation and consistent with the Foundation's
   purpose to establish a Projectt Management Committee charged with the
  creation
   and maintenance of open-source software for distribution at no charge
   to the public, that simplifies the development, deployment and
 management
   of distributed applications built as compositions of service
 components.
   These components may be implemented with a range of technologies and
   connected using a variety of communication protocols. This software
 will
   implement relevant open standards including, but not limited to, the
   SCA standard defined by the OASIS OpenCSA member section, and related
   technologies.
 
  NOW, THEREFORE, BE IT RESOLVED, that a Project Management
   Committee (PMC), to be known as the Apache Tuscany Project,
   be and hereby is established pursuant to Bylaws of the
   Foundation; and be it further
 
  RESOLVED, that the Apache Tuscany Project be and hereby is
   responsible for the creation and maintenance of software
   related to Apache Tuscany;
   and be it further
 
  RESOLVED, that the office of Vice President, Apache Tuscany be
   and hereby is created, the person holding such office to
   serve at the direction of the Board of Directors as the chair
   of the Apache Tuscany Project, and to have primary responsibility
   for management of the projects within the scope of
   responsibility of the Apache Tuscany Project; and be it further
 
  RESOLVED, that the persons listed immediately below be and
   hereby are appointed to serve as the initial members of the
   Apache Tuscany Project:
 
   Adriano Crestaniadrianocrestani at apache dot org
   Andrew Borley   ajborley at apache dot org
   ant elder   antelder at apache dot org
   Brady Johnson  bjohnson at apache dot org
   Frank Budinsky frankb at apache dot org
   Ignacio Silva-Lepe  isilval at apache dot org
   Jean-Sebastien Delfino   jsdelfino at apache dot org
   kelvin goodson   kelvingoodson at apache dot org
   Luciano Resende   lresende at apache dot org
   Mike Edwards   edwardsmj at apache dot org
   Pete Robbinsrobbinspg at apache dot org
   Raymond Feng  rfeng at apache dot org
   Simon Laws  slaws at apache dot org
   Simon Nash  nash at apache dot org
   Venkata Krishnan  svkrish at apache dot org
   Mark Combellack   mcombellack at apache dot org
 
  NOW, THEREFORE, BE IT FURTHER RESOLVED, that Ant Elder
   be appointed to the office of Vice President, Apache Tuscany, to
   serve in accordance with and subject to the direction of the
   Board of Directors and the Bylaws of the Foundation until
   death, resignation, retirement, removal or disqualification,
   or until a successor is appointed; and be it further
 
  RESOLVED, that the Apache Tuscany Project be and hereby
   is tasked with the migration and rationalization of the Apache
   Incubator Tuscany podling; and be it further
 
  RESOLVED, that all responsibilities pertaining to the Apache
   Incubator Tuscany podling encumbered upon the Apache Incubator
   Project are hereafter discharged.
 


 +1 from me to remove the SDO reference (and Thanks for your answers and
 clarifications in the related DISCUSS thread [1]).

 However, this VOTE thread introduces other unrelated changes to the
 charter. Would you mind restarting a new VOTE thread for the SDO change
 alone? I think it'll be easier to track things if we vote on individual
 changes separately.

 Thanks.

 [1] http://marc.info/?t=12036982511r=1w=2
 --

 Jean-Sebastien


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




Re: [DISCUSS] altering the Tuscany Charter in relation to SDO Java

2008-03-03 Thread kelvin goodson
Sorry Venkat,  I didn't explicitly respond to your posting,  but I hope the
answers I gave to Sebastien's similar line of questioning makes it clear.
Please let me know if not.

Kelvin.

On 28/02/2008, Venkata Krishnan [EMAIL PROTECTED] wrote:

 This software will implement relevant open standards including, but not
 limited to, the
   SCA standard defined by the OASIS OpenCSA member section, and related
   technologies.


 When we say including but not limited to I understand that it would very
 well contain SDO and others implicitly.  Or, does this have a different
 interprettation ?

 - Venkat


 On Thu, Feb 28, 2008 at 10:00 PM, Jean-Sebastien Delfino 
 [EMAIL PROTECTED] wrote:

  kelvin goodson wrote:
   Implicit in this rewording is the understanding within the Tuscany
  community
   that there would be one Apache home for SDO Java development.   When
  this
   thread is referenced in proposal for the new project, or discussions
  around
   it,  it must be clear to the wider Apache community that the Tuscany
   community accepts that.  Without this clear acceptance I fear the new
   project will face further periods of delay whilst questions are asked
  about
   the Tuscany communities intentions with regards to SDO Java
 development.
  
   So the answer to your question is conditional.
   If the new project is accepted an an incubator 
  
   - does not require Tuscany to implement SDO anymore --- yes
   - and still allows Tuscany to implement SDO   --- no
   - and still allows Tuscany to use SDO or any other related technology?
  ---
   yes
  
   if the project is not accepted as an incubator ...
  
   - does not require Tuscany to implement SDO anymore --- yes
   - and still allows Tuscany to implement SDO   --- yes
   - and still allows Tuscany to use SDO or any other related technology?
  ---
   yes
  
 
  I'm trying to understand how to vote, or if I should vote, on your other
  thread. Maybe I'm missing something. There is an SDO implementation in
  Tuscany at the moment. SDO is a related technology worked on in
  OpenCSA too. Why would we want to remove it from the charter?
 
  --
  Jean-Sebastien
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



Re: [Java SDO] Need help in completing release management for SDO 1.1-incubating

2008-02-29 Thread kelvin goodson
Amita,
   such a shame when you are so nearly there,  however,  I am happy to pick
it up from here.  Many thanks for  getting it so far.
Kelvin.

On 29/02/2008, Amita Vadhavkar [EMAIL PROTECTED] wrote:

 Hi All,
 I will not be able to continue doing the release management activities
 from
 now on for the ongoing SDO release.
 It will be really great if somebody can pick the thread and complete what
 is
 remaining in the release.

 Regards,

 Amita



Re: [VOTE] Change Tuscany Charter to remove SDO reference

2008-02-28 Thread kelvin goodson
The wording of the existing draft charter was taken from
http://mail-archives.apache.org/mod_mbox/incubator-general/200710.mbox/[EMAIL 
PROTECTED]

Be sure to note when looking at that posting that it consists of a previous
version + a modification at the end of the posting.

The changes are ...
1) This software will implement relevant open standards including, but not
limited to, the SCA and SDO standards defined by the OASIS OpenCSA member
section.
becomes ...
This software will implement relevant open standards including, but not
limited to, the SCA standard defined by the OASIS OpenCSA member section,
and related technologies.

2) Andy Grove removed as initial member as per his request to step down from
PPMC
3) Mark Combellack added as member by virtue of PPMC membership

Kelvin.


On 28/02/2008, Simon Nash [EMAIL PROTECTED] wrote:

 kelvin goodson wrote:
  Please vote to alter the wording of the existing draft Tuscany charter
 as
  discussed in
 
 
 http://mail-archives.apache.org/mod_mbox/ws-tuscany-dev/200802.mbox/[EMAIL 
 PROTECTED]
 
  to the following 
 
  WHEREAS, the Board of Directors deems it to be in the best
   interests of the Foundation and consistent with the Foundation's
   purpose to establish a Projectt Management Committee charged with the
  creation
   and maintenance of open-source software for distribution at no charge
   to the public, that simplifies the development, deployment and
 management
   of distributed applications built as compositions of service
 components.
   These components may be implemented with a range of technologies and
   connected using a variety of communication protocols. This software
 will
   implement relevant open standards including, but not limited to, the
   SCA standard defined by the OASIS OpenCSA member section, and related
   technologies.
 
  NOW, THEREFORE, BE IT RESOLVED, that a Project Management
   Committee (PMC), to be known as the Apache Tuscany Project,
   be and hereby is established pursuant to Bylaws of the
   Foundation; and be it further
 
  RESOLVED, that the Apache Tuscany Project be and hereby is
   responsible for the creation and maintenance of software
   related to Apache Tuscany;
   and be it further
 
  RESOLVED, that the office of Vice President, Apache Tuscany be
   and hereby is created, the person holding such office to
   serve at the direction of the Board of Directors as the chair
   of the Apache Tuscany Project, and to have primary responsibility
   for management of the projects within the scope of
   responsibility of the Apache Tuscany Project; and be it further
 
  RESOLVED, that the persons listed immediately below be and
   hereby are appointed to serve as the initial members of the
   Apache Tuscany Project:
 
   Adriano Crestaniadrianocrestani at apache dot org
   Andrew Borley   ajborley at apache dot org
   ant elder   antelder at apache dot org
   Brady Johnson  bjohnson at apache dot org
   Frank Budinsky frankb at apache dot org
   Ignacio Silva-Lepe  isilval at apache dot org
   Jean-Sebastien Delfino   jsdelfino at apache dot org
   kelvin goodson   kelvingoodson at apache dot org
   Luciano Resende   lresende at apache dot org
   Mike Edwards   edwardsmj at apache dot org
   Pete Robbinsrobbinspg at apache dot org
   Raymond Feng  rfeng at apache dot org
   Simon Laws  slaws at apache dot org
   Simon Nash  nash at apache dot org
   Venkata Krishnan  svkrish at apache dot org
   Mark Combellack   mcombellack at apache dot org
 
  NOW, THEREFORE, BE IT FURTHER RESOLVED, that Ant Elder
   be appointed to the office of Vice President, Apache Tuscany, to
   serve in accordance with and subject to the direction of the
   Board of Directors and the Bylaws of the Foundation until
   death, resignation, retirement, removal or disqualification,
   or until a successor is appointed; and be it further
 
  RESOLVED, that the Apache Tuscany Project be and hereby
   is tasked with the migration and rationalization of the Apache
   Incubator Tuscany podling; and be it further
 
  RESOLVED, that all responsibilities pertaining to the Apache
   Incubator Tuscany podling encumbered upon the Apache Incubator
   Project are hereafter discharged.
 

 Please can you highlight all the changes that are in this proposed
 new text, or point to the current version so that I can do a
 comparison.  Thanks.

Simon


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




Re: [DISCUSS] altering the Tuscany Charter in relation to SDO Java

2008-02-28 Thread kelvin goodson
This is about creating the healthiest Apache environment for fostering
creative ongoing SDO Java development.

The feedback from Apache members to the proposal I put forward for a new
project, was that it was too tightly scoped around JSR 235.

In order to broaden the scope of the new project proposal, and yet not split
the pool of potential Apache contributors to this technology, I am asking
the Tuscany community if it is prepared to drop the explicit reference to
SDO.  This would seem to be a necessary step before going back to the Apache
community with a broader scoped proposal for the new project,  since it is
clear that we would get objections on the basis that the pool of potential
contributors would be split across the two Apache projects.

So as I mentioned before,  implicit in this change to the charter is the
understanding that if another Apache other project is established with an
explicit remit for SDO Java development,  then we would work towards
ensuring that new  development happened in that new project.

I believe I need to be able to point to the changed draft charter, and to
point to discussions that demonstrate a willingness on the part of the
Tuscany community to be prepared to act in the spirit of these discussions,
if the new project is to stand a chance of being accepted into incubation.

Kelvin.


On 28/02/2008, Jean-Sebastien Delfino [EMAIL PROTECTED] wrote:

 kelvin goodson wrote:
  Implicit in this rewording is the understanding within the Tuscany
 community
  that there would be one Apache home for SDO Java development.   When
 this
  thread is referenced in proposal for the new project, or discussions
 around
  it,  it must be clear to the wider Apache community that the Tuscany
  community accepts that.  Without this clear acceptance I fear the new
  project will face further periods of delay whilst questions are asked
 about
  the Tuscany communities intentions with regards to SDO Java development.
 
  So the answer to your question is conditional.
  If the new project is accepted an an incubator 
 
  - does not require Tuscany to implement SDO anymore --- yes
  - and still allows Tuscany to implement SDO   --- no
  - and still allows Tuscany to use SDO or any other related technology?
 ---
  yes
 
  if the project is not accepted as an incubator ...
 
  - does not require Tuscany to implement SDO anymore --- yes
  - and still allows Tuscany to implement SDO   --- yes
  - and still allows Tuscany to use SDO or any other related technology?
 ---
  yes
 


 I'm trying to understand how to vote, or if I should vote, on your other
 thread. Maybe I'm missing something. There is an SDO implementation in
 Tuscany at the moment. SDO is a related technology worked on in
 OpenCSA too. Why would we want to remove it from the charter?


 --

 Jean-Sebastien

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




Re: [DISCUSS] altering the Tuscany Charter in relation to SDO Java

2008-02-26 Thread kelvin goodson
Implicit in this rewording is the understanding within the Tuscany community
that there would be one Apache home for SDO Java development.   When this
thread is referenced in proposal for the new project, or discussions around
it,  it must be clear to the wider Apache community that the Tuscany
community accepts that.  Without this clear acceptance I fear the new
project will face further periods of delay whilst questions are asked about
the Tuscany communities intentions with regards to SDO Java development.

So the answer to your question is conditional.
If the new project is accepted an an incubator 

- does not require Tuscany to implement SDO anymore --- yes
- and still allows Tuscany to implement SDO   --- no
- and still allows Tuscany to use SDO or any other related technology?   ---
yes

if the project is not accepted as an incubator ...

- does not require Tuscany to implement SDO anymore --- yes
- and still allows Tuscany to implement SDO   --- yes
- and still allows Tuscany to use SDO or any other related technology?   ---
yes

Kelvin.

On 25/02/2008, Jean-Sebastien Delfino [EMAIL PROTECTED] wrote:

 kelvin goodson wrote:
  There's been a discussion thread going for a while [1] in the Tuscany
  community with regards to shifting the Apache home for SDO Java work to
 a
  new project.  This has been going on in parallel to the discussion on
 the
  incubator general list on establishing a new project,  originally aimed
 to
  be tightly scoped to JSR 235  (see [2] to jump into that thread at a
  location particularly relevant for this posting).
 
  I'd like to try to move the Tuscany side of the discussion along to some
  kind of conclusion.   In view of that aim,  I'd like to suggest that we
 take
  a fresh look at the current state of the wording for the Tuscany
 charter,
  if that's what it's known as, that we arrived at during the graduation
 vote
  [3].
 
  I suggest 
 
   ...establish a Project Management Committee charged with the creation
   and maintenance of open-source software for distribution at no charge
   to the public, that simplifies the development, deployment and
 management
   of distributed applications built as compositions of service
 components.
   These components may be implemented with a range of technologies and
   connected using a variety of communication protocols. This software
 will
   implement relevant open standards including, but not limited to, the
   SCA standard defined by the OASIS OpenCSA member section, and related
   technologies.
 
  The only edit here is that the current blessed version ends with ...
  but not limited to, the SCA and SDO standards defined by the OASIS
 OpenCSA
  member section
 
  I urge you to give your attention to this in the near future please;
 making
  this alteration would seem to be a necessary,  but not sufficient,
 element
  for altering the proposal for the new project.
 
  Kelvin.
 
  [1]
 
 http://mail-archives.apache.org/mod_mbox/ws-tuscany-user/200802.mbox/browser
  [2]
 
 http://mail-archives.apache.org/mod_mbox/incubator-general/200802.mbox/[EMAIL 
 PROTECTED]
  [3]
 
 http://mail-archives.apache.org/mod_mbox/incubator-general/200710.mbox/[EMAIL 
 PROTECTED]
 


 Trying to make sure I understand. Does that mean that the new charter:
 - does not require Tuscany to implement SDO anymore
 - and still allows Tuscany to implement SDO
 - and still allows Tuscany to use SDO or any other related technology?

 --

 Jean-Sebastien


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




[VOTE] Change Tuscany Charter to remove SDO reference

2008-02-26 Thread kelvin goodson
Please vote to alter the wording of the existing draft Tuscany charter as
discussed in

http://mail-archives.apache.org/mod_mbox/ws-tuscany-dev/200802.mbox/[EMAIL 
PROTECTED]

to the following 

WHEREAS, the Board of Directors deems it to be in the best
 interests of the Foundation and consistent with the Foundation's
 purpose to establish a Projectt Management Committee charged with the
creation
 and maintenance of open-source software for distribution at no charge
 to the public, that simplifies the development, deployment and management
 of distributed applications built as compositions of service components.
 These components may be implemented with a range of technologies and
 connected using a variety of communication protocols. This software will
 implement relevant open standards including, but not limited to, the
 SCA standard defined by the OASIS OpenCSA member section, and related
 technologies.

NOW, THEREFORE, BE IT RESOLVED, that a Project Management
 Committee (PMC), to be known as the Apache Tuscany Project,
 be and hereby is established pursuant to Bylaws of the
 Foundation; and be it further

RESOLVED, that the Apache Tuscany Project be and hereby is
 responsible for the creation and maintenance of software
 related to Apache Tuscany;
 and be it further

RESOLVED, that the office of Vice President, Apache Tuscany be
 and hereby is created, the person holding such office to
 serve at the direction of the Board of Directors as the chair
 of the Apache Tuscany Project, and to have primary responsibility
 for management of the projects within the scope of
 responsibility of the Apache Tuscany Project; and be it further

RESOLVED, that the persons listed immediately below be and
 hereby are appointed to serve as the initial members of the
 Apache Tuscany Project:

 Adriano Crestaniadrianocrestani at apache dot org
 Andrew Borley   ajborley at apache dot org
 ant elder   antelder at apache dot org
 Brady Johnson  bjohnson at apache dot org
 Frank Budinsky frankb at apache dot org
 Ignacio Silva-Lepe  isilval at apache dot org
 Jean-Sebastien Delfino   jsdelfino at apache dot org
 kelvin goodson   kelvingoodson at apache dot org
 Luciano Resende   lresende at apache dot org
 Mike Edwards   edwardsmj at apache dot org
 Pete Robbinsrobbinspg at apache dot org
 Raymond Feng  rfeng at apache dot org
 Simon Laws  slaws at apache dot org
 Simon Nash  nash at apache dot org
 Venkata Krishnan  svkrish at apache dot org
 Mark Combellack   mcombellack at apache dot org

NOW, THEREFORE, BE IT FURTHER RESOLVED, that Ant Elder
 be appointed to the office of Vice President, Apache Tuscany, to
 serve in accordance with and subject to the direction of the
 Board of Directors and the Bylaws of the Foundation until
 death, resignation, retirement, removal or disqualification,
 or until a successor is appointed; and be it further

RESOLVED, that the Apache Tuscany Project be and hereby
 is tasked with the migration and rationalization of the Apache
 Incubator Tuscany podling; and be it further

RESOLVED, that all responsibilities pertaining to the Apache
 Incubator Tuscany podling encumbered upon the Apache Incubator
 Project are hereafter discharged.


[DISCUSS] altering the Tuscany Charter in relation to SDO Java

2008-02-22 Thread kelvin goodson
There's been a discussion thread going for a while [1] in the Tuscany
community with regards to shifting the Apache home for SDO Java work to a
new project.  This has been going on in parallel to the discussion on the
incubator general list on establishing a new project,  originally aimed to
be tightly scoped to JSR 235  (see [2] to jump into that thread at a
location particularly relevant for this posting).

I'd like to try to move the Tuscany side of the discussion along to some
kind of conclusion.   In view of that aim,  I'd like to suggest that we take
a fresh look at the current state of the wording for the Tuscany charter,
if that's what it's known as, that we arrived at during the graduation vote
[3].

I suggest 

 ...establish a Project Management Committee charged with the creation
 and maintenance of open-source software for distribution at no charge
 to the public, that simplifies the development, deployment and management
 of distributed applications built as compositions of service components.
 These components may be implemented with a range of technologies and
 connected using a variety of communication protocols. This software will
 implement relevant open standards including, but not limited to, the
 SCA standard defined by the OASIS OpenCSA member section, and related
 technologies.

The only edit here is that the current blessed version ends with ...
but not limited to, the SCA and SDO standards defined by the OASIS OpenCSA
member section

I urge you to give your attention to this in the near future please; making
this alteration would seem to be a necessary,  but not sufficient, element
for altering the proposal for the new project.

Kelvin.

[1]
http://mail-archives.apache.org/mod_mbox/ws-tuscany-user/200802.mbox/browser
[2]
http://mail-archives.apache.org/mod_mbox/incubator-general/200802.mbox/[EMAIL 
PROTECTED]
[3]
http://mail-archives.apache.org/mod_mbox/incubator-general/200710.mbox/[EMAIL 
PROTECTED]


Re: How to use SDO in tuscany sca?

2008-02-20 Thread kelvin goodson
There has been a few occasions in the SDO spec meetings where issues
associated with raising exceptions have been resolved in favour of not
requiring the implementer to incur the performance overhead of exception
translation or decoration. There are no exceptions defined by the SDO API,
and only runtime exceptions can surface through the interface.

In this situation the schema has been written in error such that the type
was specified incorrectly, and therefore when assigning an instance of the
intended SDO Type to a Property of the erroneous Type then the expected
result is a ClassCastException.

We can discuss the merits of catching and rethrowing decorated or translated
exceptions in general,  but this is widespread through Tuscany's SDO (and I
would imagine also through other implementations given the spec
discussions), and would result I am sure in performance degradation.

Regards, Kelvin.

On 20/02/2008, Simon Nash [EMAIL PROTECTED] wrote:

 See inline.

   Simon

 wang feng wrote:
  It's OK,Thanks Raymond.
 
  Thanks,
  wangfeng
 
 
  On 2008-02-20, Raymond Feng [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I debugged your test case and it turned out the problem is in your test
 case. There is a dangling type reference in helloworld.wsdl:
 
  wsdl:types
 schema elementFormDefault=qualified targetNamespace=
 http://helloworld; xmlns=http://www.w3.org/2001/XMLSchema;
 
 element name=getGreetings
 
 complexType
 
 sequence
 
 element name=name type=xsd:Name/
 
 /sequence
 
 /complexType
 
  /element
 
  It should be: element name=name type=tns:Name/.
 
  After fixing the issue, I can run it successfully with the 
  import.sdostatement.
 
 Can we track this as a JIRA?  A simple user error like this should not
 produce a ClassCastException deep in EMF.

   Simon

  Thanks,
 
  Raymond
 
  - Original Message -
  From: wang feng [EMAIL PROTECTED]
  To: tuscany-dev@ws.apache.org
  Sent: Tuesday, February 19, 2008 5:04 PM
  Subject: Re: Re: How to use SDO in tuscany sca?
 
 
  I add the element 'import.sdo' in the composite,but the sample throws
 another exception.
 
  Exception in thread main java.lang.ClassCastException: The value of
 type 'class org.apache.tuscany.sdo.impl.DynamicDataObjectImpl' must be of
 type 'class java.lang.String'
  at
 org.eclipse.emf.ecore.impl.EStructuralFeatureImpl$InternalSettingDelegateSingleDataUnsettableStatic.validate
 (EStructuralFeatureImpl.java:2195)
  at
 org.eclipse.emf.ecore.impl.EStructuralFeatureImpl$InternalSettingDelegateSingleDataUnsettable.dynamicSet
 (EStructuralFeatureImpl.java:2116)
  at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicSet(
 BasicEObjectImpl.java:709)
  at org.apache.tuscany.sdo.impl.DynamicDataObjectImpl.eDynamicSet(
 DynamicDataObjectImpl.java:160)
  at org.apache.tuscany.sdo.impl.DataObjectImpl.eSet(DataObjectImpl.java
 :1468)
  at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(
 BasicEObjectImpl.java:654)
  at org.apache.tuscany.sdo.impl.DataObjectImpl.set(DataObjectImpl.java
 :146)
  at org.apache.tuscany.sdo.impl.DataObjectImpl.set(DataObjectImpl.java
 :106)
  at org.apache.tuscany.sca.databinding.sdo.SDOWrapperHandler.setChild(
 SDOWrapperHandler.java:71)
  at
 org.apache.tuscany.sca.core.databinding.transformers.Input2InputTransformer.transform
 (Input2InputTransformer.java:131)
  at
 org.apache.tuscany.sca.core.databinding.transformers.Input2InputTransformer.transform
 (Input2InputTransformer.java:1)
  at org.apache.tuscany.sca.databinding.impl.MediatorImpl.mediate(
 MediatorImpl.java:73)
  at
 org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.transform
 (DataTransformationInterceptor.java:175)
  at
 org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke
 (DataTransformationInterceptor.java:72)
  at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(
 JDKInvocationHandler.java:261)
  at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(
 JDKInvocationHandler.java:149)
  at $Proxy5.getGreetings(Unknown Source)
  at helloworld.HelloWorldClient.test(HelloWorldClient.java:53)
  at helloworld.HelloWorldClient.main(HelloWorldClient.java:39)
 
  Is something wrong? Where can I found a sample whith dynamic SDO?
 
  Thanks,
  wangfeng
 
 
  On 2008-02-19, Scott Kurz [EMAIL PROTECTED] wrote:
 
  Wang,
 
  I'm guessing the problem is probably that you need to register your
  app types with the appropriate context established by the Tuscany
  runtime.
 
  Tuscany typically does this automatically, now, for static SDO.  For
  dynamic SDO (i.e. DataObject), you would currently put something like
  this in your SCDL ( *.composite) file:
 
  composite ...
xmlns:dbsdo=
 http://tuscany.apache.org/xmlns/sca/databinding/sdo/1.0;

 
 dbsdo:import.sdo location=wsdl/helloworld.wsdl/
 
  (I looked in your zip and you don't seem to use the types in the XSD,
  so I pointed to the WSDL 

[jira] Updated: (TUSCANY-1079) Possible error in XSDSerialization tests

2008-02-20 Thread Kelvin Goodson (JIRA)

 [ 
https://issues.apache.org/jira/browse/TUSCANY-1079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kelvin Goodson updated TUSCANY-1079:


Fix Version/s: (was: Java-SDO-1.1)
   Java-SDO-CTS-Next

 Possible error in XSDSerialization tests
 

 Key: TUSCANY-1079
 URL: https://issues.apache.org/jira/browse/TUSCANY-1079
 Project: Tuscany
  Issue Type: Bug
  Components: Java SDO Community Test Suite
Affects Versions: Java-SDO-Next
Reporter: Andy Grove
 Fix For: Java-SDO-CTS-Next


 The current test cases are expecting 2 types to be created from the following 
 schema but does not contain assertions about what those types should look 
 like. I would expect this schema to create only one type 
 (http://www.example.com/simple#Quote) and one open content property 
 (stockQuote) of that type. What other type should be created?
 Thanks,
 Andy.
 xsd:schema 
   targetNamespace=http://www.example.com/simple;
   xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
   xmlns:simple=http://www.example.com/simple; 
   
xsd:element name=stockQuote type=simple:Quote/
xsd:complexType name=Quote
xsd:sequence
   xsd:element name=symbol type=xsd:string/
   xsd:element name=companyName type=xsd:string/
   xsd:element name=price type=xsd:decimal/
   xsd:element name=open1 type=xsd:decimal/
   xsd:element name=high type=xsd:decimal/
   xsd:element name=low type=xsd:decimal/
   xsd:element name=volume type=xsd:double/
   xsd:element name=change1 type=xsd:double/
   xsd:element name=quotes type=simple:Quote minOccurs=0 
 maxOccurs=unbounded/
/xsd:sequence
/xsd:complexType
 /xsd:schema

-- 
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]



[jira] Updated: (TUSCANY-829) Investigate integration of RogueWave tests

2008-02-20 Thread Kelvin Goodson (JIRA)

 [ 
https://issues.apache.org/jira/browse/TUSCANY-829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kelvin Goodson updated TUSCANY-829:
---

Fix Version/s: (was: Java-SDO-1.1)
   Java-SDO-CTS-Next

 Investigate integration of RogueWave tests
 --

 Key: TUSCANY-829
 URL: https://issues.apache.org/jira/browse/TUSCANY-829
 Project: Tuscany
  Issue Type: Test
  Components: Java SDO Community Test Suite
Reporter: Kelvin Goodson
 Fix For: Java-SDO-CTS-Next

 Attachments: jira-829.zip, sdo.zip, testdata.zip


 Investigation of bringing RogueWave tests into the SDO Compliance Test Suite 
 environment.

-- 
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]



Re: svn commit: r629397 - /incubator/tuscany/branches/sdo-1.1-incubating/distribution/src/main/release/RELEASE_NOTES

2008-02-20 Thread kelvin goodson
oops,  I see you have removed them from the notes,  sorry,  however,  it's
better that they are now tidied up in JIRA too   ;-)

On 20/02/2008, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Author: amita
 Date: Wed Feb 20 01:49:40 2008
 New Revision: 629397

 URL: http://svn.apache.org/viewvc?rev=629397view=rev
 Log:
 remove any CTS JIRA

 Modified:
 incubator/tuscany/branches/sdo-1.1-incubating
 /distribution/src/main/release/RELEASE_NOTES

 Modified: incubator/tuscany/branches/sdo-1.1-incubating
 /distribution/src/main/release/RELEASE_NOTES
 URL:
 http://svn.apache.org/viewvc/incubator/tuscany/branches/sdo-1.1-incubating/distribution/src/main/release/RELEASE_NOTES?rev=629397r1=629396r2=629397view=diff

 ==
 --- 
 incubator/tuscany/branches/sdo-1.1-incubating/distribution/src/main/release/RELEASE_NOTES
 (original)
 +++ 
 incubator/tuscany/branches/sdo-1.1-incubating/distribution/src/main/release/RELEASE_NOTES
 Wed Feb 20 01:49:40 2008
 @@ -56,7 +56,6 @@
 TUSCANY-1527Allow for custom data binding of DataObjects in a
 Swing UI
 Improvement
 TUSCANY-193 Fix eclipse warnings for sdo/tools
 -   TUSCANY-1048SDO CTS. Contribute Paramatized Test Cases, and
 application server test harness
 TUSCANY-1063Improve diagnostics running XSD2JavaGenerator
 against bad schema
 TUSCANY-1283Better organization of the interfaces and classes
 in the SDO Java project
 TUSCANY-1399Generate SDO test classes using maven-sdo-plugin



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




[jira] Updated: (TUSCANY-1272) CrudWithChangeHistory test case fails as it's not finding the deleted object in the changeSummary

2008-02-20 Thread Kelvin Goodson (JIRA)

 [ 
https://issues.apache.org/jira/browse/TUSCANY-1272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kelvin Goodson updated TUSCANY-1272:


Component/s: (was: Java DAS RDB)
 Java SDO Implementation

Was assigned to wrong component

 CrudWithChangeHistory test case fails as it's not finding the deleted object 
 in the changeSummary
 -

 Key: TUSCANY-1272
 URL: https://issues.apache.org/jira/browse/TUSCANY-1272
 Project: Tuscany
  Issue Type: Bug
  Components: Java SDO Implementation
Affects Versions: Java-DAS-Next
Reporter: Luciano Resende
Assignee: Luciano Resende
 Fix For: Java-SDO-1.1


 Looks like DAS is not finding the deleted object in the changeSummary to 
 remove from the DB
 testDeleteAndCreate(org.apache.tuscany.das.rdb.test.CrudWithChangeHistory)  
 Time elapsed: 0.266 sec   FAILURE!
 junit.framework.AssertionFailedError
 at junit.framework.Assert.fail(Assert.java:47)
 at junit.framework.Assert.assertTrue(Assert.java:20)
 at junit.framework.Assert.assertFalse(Assert.java:34)
 at junit.framework.Assert.assertFalse(Assert.java:41)
 at 
 org.apache.tuscany.das.rdb.test.CrudWithChangeHistory.testDeleteAndCreate(CrudWithChangeHistory.java:83)
 at 
 org.apache.tuscany.das.rdb.test.CrudWithChangeHistory.testDeleteAndCreate(CrudWithChangeHistory.java:83)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at junit.framework.TestCase.runTest(TestCase.java:154)
 at junit.framework.TestCase.runBare(TestCase.java:127)
 at junit.framework.TestResult$1.protect(TestResult.java:106)
 at junit.framework.TestResult.runProtected(TestResult.java:124)
 at junit.framework.TestResult.run(TestResult.java:109)
 at junit.framework.TestCase.run(TestCase.java:118)
 at junit.framework.TestSuite.runTest(TestSuite.java:208)
 at junit.framework.TestSuite.run(TestSuite.java:203)
 at junit.framework.TestSuite.runTest(TestSuite.java:208)
 at junit.framework.TestSuite.run(TestSuite.java:203)
 at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
 at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
 at junit.framework.TestResult.runProtected(TestResult.java:124)
 at junit.extensions.TestSetup.run(TestSetup.java:23)
 at junit.framework.TestSuite.runTest(TestSuite.java:208)
 at junit.framework.TestSuite.run(TestSuite.java:203)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at 
 org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
 at 
 org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
 at 
 org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
 at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at 
 org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
 at 
 org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)

-- 
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]



[jira] Resolved: (TUSCANY-1063) Improve diagnostics running XSD2JavaGenerator against bad schema

2008-02-14 Thread Kelvin Goodson (JIRA)

 [ 
https://issues.apache.org/jira/browse/TUSCANY-1063?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kelvin Goodson resolved TUSCANY-1063.
-

Resolution: Fixed

Added print stack trace for any Exception (note one mod for this JIRA was 
inadvertently committed under TUSCANY-1293)
Also added error report for case where input file results in no metadata (not 
easy to catch case where some metadata is in error).

 Improve diagnostics running XSD2JavaGenerator against bad schema
 

 Key: TUSCANY-1063
 URL: https://issues.apache.org/jira/browse/TUSCANY-1063
 Project: Tuscany
  Issue Type: Improvement
  Components: Java SDO Tools
Affects Versions: Java-SCA-M2
Reporter: Scott Kurz
Priority: Minor
 Fix For: Java-SDO-Next


 I gave an invalid XSD file to the XSD2JavaGenerator and had to use the 
 debugger to figure out the problem.
 It might be nice to do a printStackTrace() on any exception before throwing 
 out of main().
 Also it might be good to print out simple error messages in the cases that:
  a) the usage was correct but the specified file can't be read
  b) the file can be read but there is no valid schema found
 As a sample of the latter here is my invalid schema 
 xsd:schema xmlns:tns=http://helloworld; 
 xmlns:xsd=http://www.w3.org/2001/XMLSchema; elementFormDefault=qualified 
 targetNamespace=http://helloworld;
  complexType name=Person
 sequence
 element name=firstName type=string/
 element name=lastName type=string/
 /sequence
  /complexType
 /xsd:schema

-- 
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]



[jira] Commented: (TUSCANY-1293) SDO does not work with OSGi

2008-02-13 Thread Kelvin Goodson (JIRA)

[ 
https://issues.apache.org/jira/browse/TUSCANY-1293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12568499#action_12568499
 ] 

Kelvin Goodson commented on TUSCANY-1293:
-

The patch seems to have fixed the continuum build issues.   
http://vmbuild.apache.org/continuum/buildResult.action?buildId=49832projectId=37

Amita,  please can you confirm you see the build as fixed.

 SDO does not work with OSGi
 ---

 Key: TUSCANY-1293
 URL: https://issues.apache.org/jira/browse/TUSCANY-1293
 Project: Tuscany
  Issue Type: Bug
  Components: Java SDO Implementation
Affects Versions: Java-SDO-beta1
 Environment: OS X Eclipse 3.3 M7
Reporter: Bryan Hunt
Priority: Blocker
 Fix For: Java-SDO-Next

 Attachments: sdo-osgi-export-patch.txt, sdo-osgi.txt


 When I execute:
 XSDHelper.INSTANCE.define(schema, null);
 I end up with a NullPointerException.  I've tracked down root cause ...
 The static initializer of the HelperProvider executes this code:
   provider = getInstance(HelperProvider.class.getClassLoader());
 which ends up calling:
   HelperProvider provider = loadImplementation(cl, implName);
 implName is null so
 if (implName == null) {
 implName = getImplementationName(cl);
 }
 ends up calling
   implName = getImplementationName(cl);
 which ends up calling:
   InputStream is = cl.getResourceAsStream(SERVICE_RESOURCE_NAME);
 where SERVICE_RESORUCE_NAME = 
 META-INF/services/commonj.sdo.impl.HelperProvider
 getResourceAsStream() return null because META-INF/services does not exist in 
 the API bundle.  It exists in the IMPL bundle and since you are using the 
 class loader from the API bundle, it won't work.  
 You can set
 -Dcommonj.sdo.impl.HelperProvider=org.apache.tuscany.sdo.helper.HelperProviderImpl
 to get around the above problem, but as soon as 
   return (HelperProvider) cl.loadClass(implName).newInstance();
 executes, you get a CalssNotFoundException.  Again, this is because you are 
 trying to load a class outside the bundle with the wrong class loader.
  tried modifying the API manifest by hand to add
 Eclipse-BuddyPolicy: dependent
 and
 Eclipse-BuddyPolicy: global
 Either of those buddy policies will get past the class loader problem 
 (although I believe this is specific to eclipse and won't work for OSGi in 
 general), but when HelperProvider is initializing, you get the following 
 exception:
 java.lang.ExceptionInInitializerError
 at org.apache.tuscany.sdo.impl.AttributeImpl.clinit(AttributeImpl.java:126)
 at 
 org.apache.tuscany.sdo.impl.SDOFactoryImpl.createAttribute(SDOFactoryImpl.java:239)
 at org.apache.tuscany.sdo.impl.ClassImpl.clinit(ClassImpl.java:68)
 at 
 org.apache.tuscany.sdo.impl.SDOFactoryImpl$SDOEcoreFactory.createEClass(SDOFactoryImpl.java:76)
 at 
 org.apache.tuscany.sdo.impl.SDOPackageImpl.createEClass(SDOPackageImpl.java:622)
 at 
 org.apache.tuscany.sdo.impl.SDOPackageImpl.createPackageContents(SDOPackageImpl.java:550)
 at org.apache.tuscany.sdo.impl.SDOPackageImpl.init(SDOPackageImpl.java:259)
 at org.apache.tuscany.sdo.SDOPackage.clinit(SDOPackage.java:76)
 at sun.misc.Unsafe.ensureClassInitialized(Native Method)
 at 
 sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
 at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
 at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917)
 at java.lang.reflect.Field.getFieldAccessor(Field.java:898)
 at java.lang.reflect.Field.get(Field.java:357)
 at org.apache.tuscany.sdo.util.SDOUtil.registerStaticTypes(SDOUtil.java:196)
 at 
 org.apache.tuscany.sdo.model.impl.ModelFactoryImpl.init(ModelFactoryImpl.java:731)
 at org.apache.tuscany.sdo.model.ModelFactory.clinit(ModelFactory.java:41)
 at 
 org.apache.tuscany.sdo.helper.TypeHelperImpl.getBuiltInModels(TypeHelperImpl.java:61)
 at org.apache.tuscany.sdo.helper.TypeHelperImpl.init(TypeHelperImpl.java:79)
 at 
 org.apache.tuscany.sdo.helper.HelperContextImpl.init(HelperContextImpl.java:46)
 at 
 org.apache.tuscany.sdo.helper.HelperProviderImpl.createDefaultHelpers(HelperProviderImpl.java:38)
 at 
 org.apache.tuscany.sdo.rtlib.helper.HelperProviderBase.init(HelperProviderBase.java:78)
 at 
 org.apache.tuscany.sdo.helper.HelperProviderImpl.init(HelperProviderImpl.java:31)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at 
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 at 
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
 at java.lang.Class.newInstance0(Class.java:350)
 at java.lang.Class.newInstance(Class.java:303)
 at commonj.sdo.impl.HelperProvider.loadImplementation

[jira] Commented: (TUSCANY-1293) SDO does not work with OSGi

2008-02-12 Thread Kelvin Goodson (JIRA)

[ 
https://issues.apache.org/jira/browse/TUSCANY-1293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12568126#action_12568126
 ] 

Kelvin Goodson commented on TUSCANY-1293:
-

I have applied your 2nd patch,  after seeing a clean build in my own 
environment.  I will now seek a continuum build

 SDO does not work with OSGi
 ---

 Key: TUSCANY-1293
 URL: https://issues.apache.org/jira/browse/TUSCANY-1293
 Project: Tuscany
  Issue Type: Bug
  Components: Java SDO Implementation
Affects Versions: Java-SDO-beta1
 Environment: OS X Eclipse 3.3 M7
Reporter: Bryan Hunt
Priority: Blocker
 Fix For: Java-SDO-Next

 Attachments: sdo-osgi-export-patch.txt, sdo-osgi.txt


 When I execute:
 XSDHelper.INSTANCE.define(schema, null);
 I end up with a NullPointerException.  I've tracked down root cause ...
 The static initializer of the HelperProvider executes this code:
   provider = getInstance(HelperProvider.class.getClassLoader());
 which ends up calling:
   HelperProvider provider = loadImplementation(cl, implName);
 implName is null so
 if (implName == null) {
 implName = getImplementationName(cl);
 }
 ends up calling
   implName = getImplementationName(cl);
 which ends up calling:
   InputStream is = cl.getResourceAsStream(SERVICE_RESOURCE_NAME);
 where SERVICE_RESORUCE_NAME = 
 META-INF/services/commonj.sdo.impl.HelperProvider
 getResourceAsStream() return null because META-INF/services does not exist in 
 the API bundle.  It exists in the IMPL bundle and since you are using the 
 class loader from the API bundle, it won't work.  
 You can set
 -Dcommonj.sdo.impl.HelperProvider=org.apache.tuscany.sdo.helper.HelperProviderImpl
 to get around the above problem, but as soon as 
   return (HelperProvider) cl.loadClass(implName).newInstance();
 executes, you get a CalssNotFoundException.  Again, this is because you are 
 trying to load a class outside the bundle with the wrong class loader.
  tried modifying the API manifest by hand to add
 Eclipse-BuddyPolicy: dependent
 and
 Eclipse-BuddyPolicy: global
 Either of those buddy policies will get past the class loader problem 
 (although I believe this is specific to eclipse and won't work for OSGi in 
 general), but when HelperProvider is initializing, you get the following 
 exception:
 java.lang.ExceptionInInitializerError
 at org.apache.tuscany.sdo.impl.AttributeImpl.clinit(AttributeImpl.java:126)
 at 
 org.apache.tuscany.sdo.impl.SDOFactoryImpl.createAttribute(SDOFactoryImpl.java:239)
 at org.apache.tuscany.sdo.impl.ClassImpl.clinit(ClassImpl.java:68)
 at 
 org.apache.tuscany.sdo.impl.SDOFactoryImpl$SDOEcoreFactory.createEClass(SDOFactoryImpl.java:76)
 at 
 org.apache.tuscany.sdo.impl.SDOPackageImpl.createEClass(SDOPackageImpl.java:622)
 at 
 org.apache.tuscany.sdo.impl.SDOPackageImpl.createPackageContents(SDOPackageImpl.java:550)
 at org.apache.tuscany.sdo.impl.SDOPackageImpl.init(SDOPackageImpl.java:259)
 at org.apache.tuscany.sdo.SDOPackage.clinit(SDOPackage.java:76)
 at sun.misc.Unsafe.ensureClassInitialized(Native Method)
 at 
 sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
 at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
 at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917)
 at java.lang.reflect.Field.getFieldAccessor(Field.java:898)
 at java.lang.reflect.Field.get(Field.java:357)
 at org.apache.tuscany.sdo.util.SDOUtil.registerStaticTypes(SDOUtil.java:196)
 at 
 org.apache.tuscany.sdo.model.impl.ModelFactoryImpl.init(ModelFactoryImpl.java:731)
 at org.apache.tuscany.sdo.model.ModelFactory.clinit(ModelFactory.java:41)
 at 
 org.apache.tuscany.sdo.helper.TypeHelperImpl.getBuiltInModels(TypeHelperImpl.java:61)
 at org.apache.tuscany.sdo.helper.TypeHelperImpl.init(TypeHelperImpl.java:79)
 at 
 org.apache.tuscany.sdo.helper.HelperContextImpl.init(HelperContextImpl.java:46)
 at 
 org.apache.tuscany.sdo.helper.HelperProviderImpl.createDefaultHelpers(HelperProviderImpl.java:38)
 at 
 org.apache.tuscany.sdo.rtlib.helper.HelperProviderBase.init(HelperProviderBase.java:78)
 at 
 org.apache.tuscany.sdo.helper.HelperProviderImpl.init(HelperProviderImpl.java:31)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at 
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 at 
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
 at java.lang.Class.newInstance0(Class.java:350)
 at java.lang.Class.newInstance(Class.java:303)
 at commonj.sdo.impl.HelperProvider.loadImplementation(HelperProvider.java:157)
 at commonj.sdo.impl.HelperProvider.getInstance(HelperProvider.java

Re: svn commit: r620763 - in /incubator/tuscany/java/sdo: impl/ impl/src/main/java/org/apache/tuscany/sdo/osgi/ impl/src/main/resources/META-INF/ impl/src/test/java/org/apache/tuscany/sdo/test/osgi/ i

2008-02-12 Thread kelvin goodson
This commit seems to be causing problems in continuum and elsewhere,  but
not in my env.  See comments in the JIRA (1293) Investigating.


On 12/02/2008, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Author: kelvingoodson
 Date: Tue Feb 12 03:13:53 2008
 New Revision: 620763

 URL: http://svn.apache.org/viewvc?rev=620763view=rev
 Log:
 Fix for TUSCANY-1293

 Added:

 incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/osgi/
 
 incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/osgi/SdoBundleActivator.java
 (with props)

 
 incubator/tuscany/java/sdo/impl/src/test/java/org/apache/tuscany/sdo/test/osgi/
 
 incubator/tuscany/java/sdo/impl/src/test/java/org/apache/tuscany/sdo/test/osgi/ClassLoaderTestCase.java
 (with props)
 
 incubator/tuscany/java/sdo/impl/src/test/java/org/apache/tuscany/sdo/test/osgi/OSGiTestCase.java
 (with props)
 
 incubator/tuscany/java/sdo/impl/src/test/java/org/apache/tuscany/sdo/test/osgi/TestBundleActivator.java
 (with props)
 incubator/tuscany/java/sdo/impl/src/test/resources/osgi/
 incubator/tuscany/java/sdo/impl/src/test/resources/osgi/sdo.impl.mf

 incubator/tuscany/java/sdo/impl/src/test/resources/osgi/sdo.osgi.test.mf
 Modified:
 incubator/tuscany/java/sdo/impl/pom.xml

 incubator/tuscany/java/sdo/impl/src/main/resources/META-INF/MANIFEST.MF
 incubator/tuscany/java/sdo/lib/src/main/resources/META-INF/MANIFEST.MF
 incubator/tuscany/java/sdo/sdo-api/pom.xml

 
 incubator/tuscany/java/sdo/sdo-api/src/main/java/commonj/sdo/impl/HelperProvider.java

 Modified: incubator/tuscany/java/sdo/impl/pom.xml
 URL:
 http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/impl/pom.xml?rev=620763r1=620762r2=620763view=diff

 ==
 --- incubator/tuscany/java/sdo/impl/pom.xml (original)
 +++ incubator/tuscany/java/sdo/impl/pom.xml Tue Feb 12 03:13:53 2008
 @@ -103,6 +103,13 @@
  version3.2.1/version
  /dependency

 +!-- dependencies for OSGi support --
 +dependency
 +groupIdorg.apache.felix/groupId
 +artifactIdorg.apache.felix.main/artifactId
 +version1.0.1/version
 +/dependency
 +
 !-- dependencies for test cases --
  dependency
  groupIdjunit/groupId

 Added:
 incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/osgi/SdoBundleActivator.java
 URL:
 http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/osgi/SdoBundleActivator.java?rev=620763view=auto

 ==
 ---
 incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/osgi/SdoBundleActivator.java
 (added)
 +++
 incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/osgi/SdoBundleActivator.java
 Tue Feb 12 03:13:53 2008
 @@ -0,0 +1,22 @@
 +package org.apache.tuscany.sdo.osgi;
 +
 +import org.osgi.framework.BundleActivator;
 +import org.osgi.framework.BundleContext;
 +
 +import commonj.sdo.impl.HelperProvider;
 +
 +public class SdoBundleActivator implements BundleActivator {
 +
 +
 +   public void start(BundleContext bundleContext) throws Exception {
 +
 +   HelperProvider.setDefaultInstance(this.getClass
 ().getClassLoader());
 +
 +   }
 +
 +   public void stop(BundleContext bundleContext) throws Exception {
 +
 +   }
 +
 +
 +}

 Propchange:
 incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/osgi/SdoBundleActivator.java

 --
 svn:eol-style = native

 Propchange:
 incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/osgi/SdoBundleActivator.java

 --
 svn:keywords = Rev Date

 Modified:
 incubator/tuscany/java/sdo/impl/src/main/resources/META-INF/MANIFEST.MF
 URL:
 http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/impl/src/main/resources/META-INF/MANIFEST.MF?rev=620763r1=620762r2=620763view=diff

 ==
 ---
 incubator/tuscany/java/sdo/impl/src/main/resources/META-INF/MANIFEST.MF
 (original)
 +++
 incubator/tuscany/java/sdo/impl/src/main/resources/META-INF/MANIFEST.MF Tue
 Feb 12 03:13:53 2008
 @@ -11,15 +11,19 @@
 Bundle-SymbolicName: org.apache.tuscany.sdo.impl
 Bundle-Version: 1.0.0
 Bundle-Vendor: Apache Software Foundation
 -Require-Bundle: org.eclipse.emf.common,
 +Require-Bundle-FIXME: org.eclipse.emf.common,
   org.eclipse.emf.ecore,
   org.eclipse.emf.ecore.change,
   org.eclipse.emf.ecore.xmi,
   org.eclipse.xsd,
   org.apache.tuscany.sdo.spec;visibility:=reexport
 +Import-Package: org.osgi.framework
 Export-Package: commonj.sdo.impl,
   org.apache.tuscany.sdo,
   org.apache.tuscany.sdo.helper,
   

[jira] Commented: (TUSCANY-257) recently added file Interface2JavaGenerator.java is not compatible with JDK 1.4

2008-02-12 Thread Kelvin Goodson (JIRA)

[ 
https://issues.apache.org/jira/browse/TUSCANY-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12568064#action_12568064
 ] 

Kelvin Goodson commented on TUSCANY-257:


Thanks Amita,  I took a scan of the patch file and it appears good.  The only 
thing I spotted is that we need a new java_1_4 maven profile that does not 
include the new project.

 recently added file Interface2JavaGenerator.java is not compatible with JDK 
 1.4
 ---

 Key: TUSCANY-257
 URL: https://issues.apache.org/jira/browse/TUSCANY-257
 Project: Tuscany
  Issue Type: Bug
  Components: Java SDO Tools
 Environment: all
Reporter: Paul Golick
 Fix For: Java-SDO-Next

 Attachments: 257.patch, newFiles.jar, 
 patchInterface2JavaGenerator.txt, patchUpdated.txt


 Interface2JavaGenerator.java uses java.lang.reflect.ParameterizedType and 
 java.lang.reflect.Type that were added in Java 5 for generics.  It appears 
 that the portion of Interface2JavaGenerator that uses ParameterizedType and 
 Type is not needed for Java 1.4 classes.

-- 
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]



[jira] Resolved: (TUSCANY-1293) SDO does not work with OSGi

2008-02-12 Thread Kelvin Goodson (JIRA)

 [ 
https://issues.apache.org/jira/browse/TUSCANY-1293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kelvin Goodson resolved TUSCANY-1293.
-

Resolution: Fixed

Thanks for the patch Rajini.

 SDO does not work with OSGi
 ---

 Key: TUSCANY-1293
 URL: https://issues.apache.org/jira/browse/TUSCANY-1293
 Project: Tuscany
  Issue Type: Bug
  Components: Java SDO Implementation
Affects Versions: Java-SDO-beta1
 Environment: OS X Eclipse 3.3 M7
Reporter: Bryan Hunt
Priority: Blocker
 Fix For: Java-SDO-Next

 Attachments: sdo-osgi.txt


 When I execute:
 XSDHelper.INSTANCE.define(schema, null);
 I end up with a NullPointerException.  I've tracked down root cause ...
 The static initializer of the HelperProvider executes this code:
   provider = getInstance(HelperProvider.class.getClassLoader());
 which ends up calling:
   HelperProvider provider = loadImplementation(cl, implName);
 implName is null so
 if (implName == null) {
 implName = getImplementationName(cl);
 }
 ends up calling
   implName = getImplementationName(cl);
 which ends up calling:
   InputStream is = cl.getResourceAsStream(SERVICE_RESOURCE_NAME);
 where SERVICE_RESORUCE_NAME = 
 META-INF/services/commonj.sdo.impl.HelperProvider
 getResourceAsStream() return null because META-INF/services does not exist in 
 the API bundle.  It exists in the IMPL bundle and since you are using the 
 class loader from the API bundle, it won't work.  
 You can set
 -Dcommonj.sdo.impl.HelperProvider=org.apache.tuscany.sdo.helper.HelperProviderImpl
 to get around the above problem, but as soon as 
   return (HelperProvider) cl.loadClass(implName).newInstance();
 executes, you get a CalssNotFoundException.  Again, this is because you are 
 trying to load a class outside the bundle with the wrong class loader.
  tried modifying the API manifest by hand to add
 Eclipse-BuddyPolicy: dependent
 and
 Eclipse-BuddyPolicy: global
 Either of those buddy policies will get past the class loader problem 
 (although I believe this is specific to eclipse and won't work for OSGi in 
 general), but when HelperProvider is initializing, you get the following 
 exception:
 java.lang.ExceptionInInitializerError
 at org.apache.tuscany.sdo.impl.AttributeImpl.clinit(AttributeImpl.java:126)
 at 
 org.apache.tuscany.sdo.impl.SDOFactoryImpl.createAttribute(SDOFactoryImpl.java:239)
 at org.apache.tuscany.sdo.impl.ClassImpl.clinit(ClassImpl.java:68)
 at 
 org.apache.tuscany.sdo.impl.SDOFactoryImpl$SDOEcoreFactory.createEClass(SDOFactoryImpl.java:76)
 at 
 org.apache.tuscany.sdo.impl.SDOPackageImpl.createEClass(SDOPackageImpl.java:622)
 at 
 org.apache.tuscany.sdo.impl.SDOPackageImpl.createPackageContents(SDOPackageImpl.java:550)
 at org.apache.tuscany.sdo.impl.SDOPackageImpl.init(SDOPackageImpl.java:259)
 at org.apache.tuscany.sdo.SDOPackage.clinit(SDOPackage.java:76)
 at sun.misc.Unsafe.ensureClassInitialized(Native Method)
 at 
 sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
 at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
 at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917)
 at java.lang.reflect.Field.getFieldAccessor(Field.java:898)
 at java.lang.reflect.Field.get(Field.java:357)
 at org.apache.tuscany.sdo.util.SDOUtil.registerStaticTypes(SDOUtil.java:196)
 at 
 org.apache.tuscany.sdo.model.impl.ModelFactoryImpl.init(ModelFactoryImpl.java:731)
 at org.apache.tuscany.sdo.model.ModelFactory.clinit(ModelFactory.java:41)
 at 
 org.apache.tuscany.sdo.helper.TypeHelperImpl.getBuiltInModels(TypeHelperImpl.java:61)
 at org.apache.tuscany.sdo.helper.TypeHelperImpl.init(TypeHelperImpl.java:79)
 at 
 org.apache.tuscany.sdo.helper.HelperContextImpl.init(HelperContextImpl.java:46)
 at 
 org.apache.tuscany.sdo.helper.HelperProviderImpl.createDefaultHelpers(HelperProviderImpl.java:38)
 at 
 org.apache.tuscany.sdo.rtlib.helper.HelperProviderBase.init(HelperProviderBase.java:78)
 at 
 org.apache.tuscany.sdo.helper.HelperProviderImpl.init(HelperProviderImpl.java:31)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at 
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 at 
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
 at java.lang.Class.newInstance0(Class.java:350)
 at java.lang.Class.newInstance(Class.java:303)
 at commonj.sdo.impl.HelperProvider.loadImplementation(HelperProvider.java:157)
 at commonj.sdo.impl.HelperProvider.getInstance(HelperProvider.java:126)
 at commonj.sdo.impl.HelperProvider.clinit(HelperProvider.java:69)
 at commonj.sdo.helper.XSDHelper.clinit(XSDHelper.java:195

[jira] Commented: (TUSCANY-1293) SDO does not work with OSGi

2008-02-12 Thread Kelvin Goodson (JIRA)

[ 
https://issues.apache.org/jira/browse/TUSCANY-1293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12568083#action_12568083
 ] 

Kelvin Goodson commented on TUSCANY-1293:
-

Amita,   I get clean build from a clean extraction.  Looking at runSDOTests()  
for your run there ought to be 106 outputs to system.out of TestFalluire 
instances.  Can you take a look at these, and attach to the JIRA please?

 SDO does not work with OSGi
 ---

 Key: TUSCANY-1293
 URL: https://issues.apache.org/jira/browse/TUSCANY-1293
 Project: Tuscany
  Issue Type: Bug
  Components: Java SDO Implementation
Affects Versions: Java-SDO-beta1
 Environment: OS X Eclipse 3.3 M7
Reporter: Bryan Hunt
Priority: Blocker
 Fix For: Java-SDO-Next

 Attachments: sdo-osgi.txt


 When I execute:
 XSDHelper.INSTANCE.define(schema, null);
 I end up with a NullPointerException.  I've tracked down root cause ...
 The static initializer of the HelperProvider executes this code:
   provider = getInstance(HelperProvider.class.getClassLoader());
 which ends up calling:
   HelperProvider provider = loadImplementation(cl, implName);
 implName is null so
 if (implName == null) {
 implName = getImplementationName(cl);
 }
 ends up calling
   implName = getImplementationName(cl);
 which ends up calling:
   InputStream is = cl.getResourceAsStream(SERVICE_RESOURCE_NAME);
 where SERVICE_RESORUCE_NAME = 
 META-INF/services/commonj.sdo.impl.HelperProvider
 getResourceAsStream() return null because META-INF/services does not exist in 
 the API bundle.  It exists in the IMPL bundle and since you are using the 
 class loader from the API bundle, it won't work.  
 You can set
 -Dcommonj.sdo.impl.HelperProvider=org.apache.tuscany.sdo.helper.HelperProviderImpl
 to get around the above problem, but as soon as 
   return (HelperProvider) cl.loadClass(implName).newInstance();
 executes, you get a CalssNotFoundException.  Again, this is because you are 
 trying to load a class outside the bundle with the wrong class loader.
  tried modifying the API manifest by hand to add
 Eclipse-BuddyPolicy: dependent
 and
 Eclipse-BuddyPolicy: global
 Either of those buddy policies will get past the class loader problem 
 (although I believe this is specific to eclipse and won't work for OSGi in 
 general), but when HelperProvider is initializing, you get the following 
 exception:
 java.lang.ExceptionInInitializerError
 at org.apache.tuscany.sdo.impl.AttributeImpl.clinit(AttributeImpl.java:126)
 at 
 org.apache.tuscany.sdo.impl.SDOFactoryImpl.createAttribute(SDOFactoryImpl.java:239)
 at org.apache.tuscany.sdo.impl.ClassImpl.clinit(ClassImpl.java:68)
 at 
 org.apache.tuscany.sdo.impl.SDOFactoryImpl$SDOEcoreFactory.createEClass(SDOFactoryImpl.java:76)
 at 
 org.apache.tuscany.sdo.impl.SDOPackageImpl.createEClass(SDOPackageImpl.java:622)
 at 
 org.apache.tuscany.sdo.impl.SDOPackageImpl.createPackageContents(SDOPackageImpl.java:550)
 at org.apache.tuscany.sdo.impl.SDOPackageImpl.init(SDOPackageImpl.java:259)
 at org.apache.tuscany.sdo.SDOPackage.clinit(SDOPackage.java:76)
 at sun.misc.Unsafe.ensureClassInitialized(Native Method)
 at 
 sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
 at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
 at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917)
 at java.lang.reflect.Field.getFieldAccessor(Field.java:898)
 at java.lang.reflect.Field.get(Field.java:357)
 at org.apache.tuscany.sdo.util.SDOUtil.registerStaticTypes(SDOUtil.java:196)
 at 
 org.apache.tuscany.sdo.model.impl.ModelFactoryImpl.init(ModelFactoryImpl.java:731)
 at org.apache.tuscany.sdo.model.ModelFactory.clinit(ModelFactory.java:41)
 at 
 org.apache.tuscany.sdo.helper.TypeHelperImpl.getBuiltInModels(TypeHelperImpl.java:61)
 at org.apache.tuscany.sdo.helper.TypeHelperImpl.init(TypeHelperImpl.java:79)
 at 
 org.apache.tuscany.sdo.helper.HelperContextImpl.init(HelperContextImpl.java:46)
 at 
 org.apache.tuscany.sdo.helper.HelperProviderImpl.createDefaultHelpers(HelperProviderImpl.java:38)
 at 
 org.apache.tuscany.sdo.rtlib.helper.HelperProviderBase.init(HelperProviderBase.java:78)
 at 
 org.apache.tuscany.sdo.helper.HelperProviderImpl.init(HelperProviderImpl.java:31)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at 
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 at 
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
 at java.lang.Class.newInstance0(Class.java:350)
 at java.lang.Class.newInstance(Class.java:303)
 at commonj.sdo.impl.HelperProvider.loadImplementation

[jira] Commented: (TUSCANY-1293) SDO does not work with OSGi

2008-02-11 Thread Kelvin Goodson (JIRA)

[ 
https://issues.apache.org/jira/browse/TUSCANY-1293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12567667#action_12567667
 ] 

Kelvin Goodson commented on TUSCANY-1293:
-

Rajini,
  sorry to take so long to get to this,  and thanks for the patch.  I'm working 
towards getting thsi in for the next release.  I note a couple of occasions in 
the tests where an exception is caught,  and then either output is made to the 
System.out,  or the exception is ignored.  Could you help me understand if in 
either of these cases the symptom is truly benign please?  If so i will add a 
comment to the code.  If not then I'll change to let the exception surface 
through the test infrastructure.

First is on OSGITestCase ...

 // Start all the installed bundles
 for (int i = 0; i  bundles.size(); i++) {
 Bundle bundle = (Bundle)bundles.get(i);
 try {
bundle.start();
} catch (Exception e) {
e.printStackTrace();
System.out.println(Could not start bundle  + 
bundle);
}
 }


second is in ClassLoaderTestCase  (I think I can see this is benign,  but could 
do with confirmation)

for (int i = 0; i  parentLoaders.length; i++) {
try {
return 
parentLoaders[i].loadClass(className);   
} catch (Exception e) {
}
}


 SDO does not work with OSGi
 ---

 Key: TUSCANY-1293
 URL: https://issues.apache.org/jira/browse/TUSCANY-1293
 Project: Tuscany
  Issue Type: Bug
  Components: Java SDO Implementation
Affects Versions: Java-SDO-beta1
 Environment: OS X Eclipse 3.3 M7
Reporter: Bryan Hunt
Priority: Blocker
 Fix For: Java-SDO-Next

 Attachments: sdo-osgi.txt


 When I execute:
 XSDHelper.INSTANCE.define(schema, null);
 I end up with a NullPointerException.  I've tracked down root cause ...
 The static initializer of the HelperProvider executes this code:
   provider = getInstance(HelperProvider.class.getClassLoader());
 which ends up calling:
   HelperProvider provider = loadImplementation(cl, implName);
 implName is null so
 if (implName == null) {
 implName = getImplementationName(cl);
 }
 ends up calling
   implName = getImplementationName(cl);
 which ends up calling:
   InputStream is = cl.getResourceAsStream(SERVICE_RESOURCE_NAME);
 where SERVICE_RESORUCE_NAME = 
 META-INF/services/commonj.sdo.impl.HelperProvider
 getResourceAsStream() return null because META-INF/services does not exist in 
 the API bundle.  It exists in the IMPL bundle and since you are using the 
 class loader from the API bundle, it won't work.  
 You can set
 -Dcommonj.sdo.impl.HelperProvider=org.apache.tuscany.sdo.helper.HelperProviderImpl
 to get around the above problem, but as soon as 
   return (HelperProvider) cl.loadClass(implName).newInstance();
 executes, you get a CalssNotFoundException.  Again, this is because you are 
 trying to load a class outside the bundle with the wrong class loader.
  tried modifying the API manifest by hand to add
 Eclipse-BuddyPolicy: dependent
 and
 Eclipse-BuddyPolicy: global
 Either of those buddy policies will get past the class loader problem 
 (although I believe this is specific to eclipse and won't work for OSGi in 
 general), but when HelperProvider is initializing, you get the following 
 exception:
 java.lang.ExceptionInInitializerError
 at org.apache.tuscany.sdo.impl.AttributeImpl.clinit(AttributeImpl.java:126)
 at 
 org.apache.tuscany.sdo.impl.SDOFactoryImpl.createAttribute(SDOFactoryImpl.java:239)
 at org.apache.tuscany.sdo.impl.ClassImpl.clinit(ClassImpl.java:68)
 at 
 org.apache.tuscany.sdo.impl.SDOFactoryImpl$SDOEcoreFactory.createEClass(SDOFactoryImpl.java:76)
 at 
 org.apache.tuscany.sdo.impl.SDOPackageImpl.createEClass(SDOPackageImpl.java:622)
 at 
 org.apache.tuscany.sdo.impl.SDOPackageImpl.createPackageContents(SDOPackageImpl.java:550)
 at org.apache.tuscany.sdo.impl.SDOPackageImpl.init(SDOPackageImpl.java:259)
 at org.apache.tuscany.sdo.SDOPackage.clinit(SDOPackage.java:76)
 at sun.misc.Unsafe.ensureClassInitialized(Native Method)
 at 
 sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
 at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
 at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917)
 at java.lang.reflect.Field.getFieldAccessor(Field.java:898)
 at java.lang.reflect.Field.get(Field.java:357

[jira] Updated: (TUSCANY-1688) XSD2JavaGenerator throws IOException:Access is denied with complexType named Con

2008-02-11 Thread Kelvin Goodson (JIRA)

 [ 
https://issues.apache.org/jira/browse/TUSCANY-1688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kelvin Goodson updated TUSCANY-1688:



I did a check for EMF bugs raised for this issue,  but couldn't find one.  Do 
you know if this issue has been addressed in EMF?

 XSD2JavaGenerator throws IOException:Access is denied with complexType named 
 Con
 --

 Key: TUSCANY-1688
 URL: https://issues.apache.org/jira/browse/TUSCANY-1688
 Project: Tuscany
  Issue Type: Bug
  Components: Java SDO Tools
Affects Versions: Java-SDO-Next
 Environment: Windows XP SP2 w/Sun JDK 1.4.2_11
Reporter: Ron Gavlin
 Fix For: Java-SDO-Next


 I have an XML Schema that contains a complexType named Con. The following 
 error output is displayed to stdout:
  Generating Con
  Generating Java interface test.Con
  Generating /TargetProject/test/Con.java
  Examining old /TargetProject/test/Con.java
 org.eclipse.emf.common.util.WrappedException: java.io.IOException: Access is 
 denied
 at 
 org.eclipse.emf.codegen.ecore.generator.AbstractGeneratorAdapter.generateJava 
 (AbstractGeneratorAdapter.java:1046)
 at 
 org.eclipse.emf.codegen.ecore.genmodel.generator.GenClassGeneratorAdapter.generateInterface
  (GenClassGeneratorAdapter.java:123)
 at 
 org.eclipse.emf.codegen.ecore.genmodel.generator.GenClassGeneratorAdapter.generateModel
  (GenClassGeneratorAdapter.java:106)
 at 
 org.eclipse.emf.codegen.ecore.genmodel.generator.GenBaseGeneratorAdapter.doGenerate
  (GenBaseGeneratorAdapter.java:214)
 at org.eclipse.emf.codegen.ecore.generator.AbstractGeneratorAdapter.generate 
 (AbstractGeneratorAdapter.java:275)
 at org.eclipse.emf.codegen.ecore.generator.Generator.generate 
 (Generator.java:600)
 at org.eclipse.emf.codegen.ecore.generator.Generator.generate 
 (Generator.java:512)
 at org.apache.tuscany.sdo.generate.JavaGenerator.generateFromGenModel 
 (JavaGenerator.java:515)
 ...
 It seems as if the type name 'Con' conflicts with the operating system's 
 console device named 'Con'. The code first checks to see if the file exists 
 to decide if a merge is required. The code seems to incorrectly find the 
 file/device named 'Con' and then tries to access it in error. I suspect this 
 is an Eclipse EMF problem.

-- 
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]



[jira] Updated: (TUSCANY-1689) XSD2JavaGenerator generates non-compilable FactoryImpl class with complexType named Descriptor

2008-02-11 Thread Kelvin Goodson (JIRA)

 [ 
https://issues.apache.org/jira/browse/TUSCANY-1689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kelvin Goodson updated TUSCANY-1689:



I did a check for EMF bugs raised for this issue,  but couldn't find one.  Do 
you know if this issue has been addressed in EMF?

 XSD2JavaGenerator generates non-compilable FactoryImpl class with complexType 
 named Descriptor
 

 Key: TUSCANY-1689
 URL: https://issues.apache.org/jira/browse/TUSCANY-1689
 Project: Tuscany
  Issue Type: Bug
  Components: Java SDO Tools
 Environment: Windows XP SP2 w/Sun JDK 1.4.2_11
Reporter: Ron Gavlin
 Fix For: Java-SDO-Next


 I have a schema with a complexType named Descriptor. 
 The generated FactoryImpl.java class includes the following code which does 
 not compile because the return type 
 org.eclipse.emf.ecore.EPackage.Descriptor is not compatible with 
 Factory.createDescriptor() with return type myNamespace.Descriptor:
 public Descriptor createDescriptor()
 {
   DescriptorImpl descriptor = new DescriptorImpl();
   return descriptor;
 }
 I suspect this is an EMF bug but I am reporting it here.

-- 
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]



[jira] Commented: (TUSCANY-1831) Make SDOPackageRegistryDelegator pluggable

2008-02-11 Thread Kelvin Goodson (JIRA)

[ 
https://issues.apache.org/jira/browse/TUSCANY-1831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12567578#action_12567578
 ] 

Kelvin Goodson commented on TUSCANY-1831:
-

I guess we could parallel the way that the default HelperProvider 
implementation is made pluggable in the SDO API project's HelperProvider class, 
 where the default impl is looked up by PROPERTY_NAME.

 Make SDOPackageRegistryDelegator pluggable
 --

 Key: TUSCANY-1831
 URL: https://issues.apache.org/jira/browse/TUSCANY-1831
 Project: Tuscany
  Issue Type: Improvement
  Components: Java SDO Implementation
Affects Versions: Java-SDO-Next
Reporter: Ron Gavlin
 Fix For: Java-SDO-Next


 The current SDOPackageRegistryDelegator implementation assumes that a 
 standard, hierarchical classloader structure is present in the hosting 
 environment. BEA WebLogic, for example, uses an unusual change aware 
 classloading scheme which does not meet the expectations of the 
 SDOPackageRegistryDelegator. Prior to Tuscany SDO 1.0, I was able to 
 work-around this former EMF problem by setting the EMF JVM property 
 org.eclipse.emf.ecore.EPackage.Registry.INSTANCE. In Tuscany SDO 1.0, this 
 setting is no longer relevant. I would like to be able to plugin my own 
 SDOPackageRegistryDelegator implementation that provides a 
 non-classloader-aware registry, knowing full well the limitations of of this 
 implementation.

-- 
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]



[SDO Java] Reminder: IRC chat on release contents, 9AM PST, 5PM GMT

2008-02-08 Thread kelvin goodson
The chat will take as input the fruits of Amita's and my recent labours
documented at ...
http://cwiki.apache.org/confluence/display/TUSCANYWIKI/SDO+Java+Project

and give you a chance to adjust the priorities we placed on issues, and to
say where you can contribute to help make this a useful release to the
community.

Kelvin.


[jira] Updated: (TUSCANY-182) Investigate how to best represent 0..n relationships requiring a keyed access in models

2008-02-08 Thread Kelvin Goodson (JIRA)

 [ 
https://issues.apache.org/jira/browse/TUSCANY-182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kelvin Goodson updated TUSCANY-182:
---

Component/s: Java SCA Assembly Model

There's too much assumed context in this JIRA description for me to begin to 
have an idea of how to address this without some expansion of the topic.  I'm 
adding the SCA Assembly model as an additional component to bring this back 
onto the SCA radar for some input.  If this is not the right SCA component,  
please advise what it should be.

 Investigate how to best represent 0..n relationships requiring a keyed access 
 in models
 ---

 Key: TUSCANY-182
 URL: https://issues.apache.org/jira/browse/TUSCANY-182
 Project: Tuscany
  Issue Type: Improvement
  Components: Java SCA Assembly Model, Java SDO Implementation
Reporter: Jean-Sebastien Delfino
Assignee: Frank Budinsky
 Fix For: Java-SDO-Next


 Some of the 0..n relationships in the SCA assembly model should provide a 
 keyed access (e.g get a component by name in a composite).
 We need to investigate the best pattern (which we may want to also implement 
 in our codegenerator) to provide this function:
 - a list with a get(key) method
 - a map (but the map should preserve the sequence of elements)
 We'll have to balance ease of use for adding to and navigating the 
 relationship, ability to implement integrity constraints on the relationship, 
 relationship with best model implementation practices as well as the SDO 
 spectification, and footprint + performance.
 We also need to investigate if there is a way to automatically derive the 
 introduction of this keyed access to a relationship from XSD metadata 
 (xsd:key for example).

-- 
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]



[Cross Subproject Discussion] options for SDO Java in Apache

2008-02-06 Thread kelvin goodson
[I'm cross posting to tuscany-dev and tuscany-user again, to be sure all the
Tuscany community sees this.  Please usereply rather than reply-all so
that we keep responses to the user list,  to help make following the thread
easier and continue to reach the wider audience]

Some of you may be aware that I'm involved taking SDO Java through the Java
Community Process (JSR 235) to achieve standardisation for SDO Java. One of
the things that this standardisation requires is that a reference
implementation (RI) and technology compatibility kit (TCK) be produced
alongside the specification document.

To satisfy the RI and TCK requirement we've been constructing a proposal to
Apache to create a new incubator podling [1] to do RI and TCK development of
JSRs related to SDO. To date the proposal suggests that development of the
RI would be best done separately from Apache Tuscany,  primarily because
developing an RI requires an environment that can focus on the Java
interface as specified, and in Tuscany we do cross language SDO, SOA and we
encourage innovation outside the spec.

I did some digging and questioning to find out if developing a JSR RI in
Apache was feasible,  and it is,  there are examples.  However, from the
feedback were getting to the proposal it's clear we should be thinking more
creatively about how the Tuscany SDO Java community and its aims overlaps
with the aims of the new proposal.

This has got me thinking now that perhaps we could have a discussion about
whether we, the Tuscany community, might like to take the opportunity to be
part of establishing a common home for SDO Java development in Apache.

A significant thing to consider is that, if you take a look at the proposal
[1] you'll see that  as part of the JSR agreement,  the responsibility for
creation of the RI belongs to BEA, and the RI would be created using an
initial donation of code from BEA of an SDO implementation. The RI would not
be based on the current Tuscany SDO Java. So at this point Apache has two
implementations, Tuscany's EMF based implementation,  and the new code base
seeded by BEA.

I'd like to try to understand how the Tuscany community feels about all the
aspects of transferring the general responsibility for developing SDO in
Apache to a common SDO project.  What do you think we, as part of the wider
Apache community, would do with our two implementations?  How much do you
care about what technology underpins an implementation?  Would you come and
be a community member in the new project?

[1] http://wiki.apache.org/incubator/NoNameYetProposal

Regards, Kelvin.


Re: Graduation next steps

2008-02-06 Thread kelvin goodson
I like to be able to look at a JIRA and readily find the discussion relating
to it, so I find having technical discussion as a series of comments in the
JIRA helpful. In this pattern it makes sense to copy JIRA comments to the
dev list, as it forms the substance of our technical communication.  I know
this is great for the person who's already deeply involved,  but might not
be so great for those who are on the fringes looking in.

It takes extra effort to play out discussion relating to a JIRA on the dev
list directly, wait for the discussion to appear in a mailing list archive,
and then insert a reference to the archive of that discussion in the JIRA.
But that's what I do in order to be able to have a central point for
referencing an issue,  and yet to create the best chance that a wide
audience will take part in the discussion.

I like the way in an svn commit you can write TUSCANY- as free text,
and end up with the commit log comment being automatically added to the
subversion commits pane of the JIRA.  Is there any way we could do something
similar so that we could automatically create pointers to mailing list
discussions in JIRAs.

Kelvin.

On 06/02/2008, ant elder [EMAIL PROTECTED] wrote:

 On Feb 4, 2008 8:06 PM, Simon Nash [EMAIL PROTECTED] wrote:

 snip

  - route the JIRA traffic out of the dev list as suggested by Matthieu
  
  I understand that this traffic can get a bit overwhelming at times, but
  I'd like to make the case that it does have value for new developers
  (though not for users).  One of the best ways to start down the path to
  becoming a contributor and committer is through writing or fixing JIRAs.
  Having the JIRA traffic appear on the dev list helps people to see what
  JIRAs others are writing and can encourage new contributors to jump in
  with a comment or a fix, or to write other JIRAs themselves.
 

 I'm quite sympathetic to that view but also see the problem of the dev
 list
 flooded by JIRA activity so I'm now leaning to having the JIRA activity
 sent
 to the commit list where it would still available to anyone interested.
 Anyone else have comments or preferences?

...ant



Re: Graduation next steps

2008-02-06 Thread kelvin goodson
My top 3 in
http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Graduation+Next+Stepsare
 11,12,13,19,22,32/33,38 and 18 but modified to have a policy of being
vocal early when no-one has the bandwidth to address an incoming JIRA.  I
know that's not 3,  but hey!

I can't see on the wiki page the suggestion to post a weekly JIRA delta
digest that I think I saw somewhere in the discussion and rather liked,  but
that might not be too hard to do.  It might contain lists of Recently
Created, Recently Resolved,  unresolved with top votes, etc.  I already get
an automatic digest mailed to me by the JIRA system for unresolved SDO
Jiras,  so if the queries can be built,  then I guess the report would only
a matter of concatenating a few tables from those incoming subscription
reports.

Kelvin.

On 06/02/2008, ant elder [EMAIL PROTECTED] wrote:

 On Jan 31, 2008 1:41 PM, ant elder [EMAIL PROTECTED] wrote:

  I'd like to get some discussion going on what we want to do for
 graduating
  to an Apache TLP.
 
  The attempt back in November raised issues about diversity and since
 then
  it feels like we've just been waiting around hoping diversity would
 improve.
  We were unlikely then and we are almost there, would it help to have a
  target to aim for so we can be a bit more proactive? How about trying
 again
  at the April or May board meeting which would give us a two or three
 full
  months from now? Having a few months would give us some time to work on
  turning some of the contributors we already have into committers and to
 get
  other committers added to the PPMC, but a few months is also near enough
 to
  keep us focused. If we're seen to be working on this it may also
 encourage
  some of the contributors we have to be more active and so easier to make
  committers.
 
  There's a lot i think the project could do to encourage others to
  participate, here's a few things I can think of -
 
  We have a lot of downloads and real users, we need to try to get more of
  these people engaged and contributing, things that may help are:
 
  - better documentation, whats there is a bit sparse and our website has
  started to fall behind and there's quite a few extensions with no or out
  dated documentation
  - more publicity about what each new Tuscany release can do, we have
 lots
  of new stuff in 1.1 but the only place we say that is in the release
  notes. The Tuscany blog is a little neglected these days
  - post to user list as each bit of new function is completed to try to
  engage users and to show them their comments can make a real difference
 to
  what gets in the next release
  - more timely action on JIRAs, we're getting quite a back log, if we're
  quick to look at JIRAs it might encourage users to help debug and
 provide
  patches
 
  Once a user does start contributing I think there are things we could do
  better on the the dev list to make it easier and to encourage
 participation:
 
  - just generally improve the ML traffic which is at an all time low, if
 we
  the active developers don't discuss much then new contributors likely
 wont
  either
  - one reason ML traffic could be down is that discussion is going on
  off-list instead, is there? Is it really necessary? Lets make a real
 effort
  to keep all discussion on the dev list.
  - more timely replies in discussions. if someone replies to a thread
 often
  it ends up with people waiting for a follow-up reply, if that follow-up
  takes ages to come the discussion can stall and people loose interest
 and
  move on to something else.
  - we may need to provide more active help to contributors when they make
  suggestions, not just ask if they'd implement it but at least provide
 lots
  of detail about how they could do it or even step up and help code even
 if
  we may not think its the most useful thing
 
  What do others think, would any of those things help? Any other
  suggestions that could help improve our diversity? Does aiming for the
 April
  board meet sound ok or too soon or too far?
 
 ...ant
 
 
 I've gone through everything suggested so far in this thread and added all
 the points to a wiki page -

 http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Graduation+Next+Steps
 .
 I've probably missed some and there are some duplicate points, feel free
 to
 edit the page.

 So what to do with this? Some of the points are a bit vague, some we may
 not
 all agree with, some are easy for one person to action if we agree, others
 need more of a group effort.

 Documentation


 How about trying to prioritize this by people posting their top three, see
 if there's much overlap with whats posted and trying to resolve those
 first?



[jira] Updated: (TUSCANY-1514) DataHelperImpl.toDate will report a NullPointerException

2008-02-05 Thread Kelvin Goodson (JIRA)

 [ 
https://issues.apache.org/jira/browse/TUSCANY-1514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kelvin Goodson updated TUSCANY-1514:


Component/s: (was: Java DAS RDB)
 Java SDO Implementation

This JIRA was in a hybrid state with a DAS component and a target release of 
SDO.  So as there seems to be a fix already made to SDO I'm changing the 
component to SDO and will  alert the DAS folks to this.

 DataHelperImpl.toDate  will report a NullPointerException
 -

 Key: TUSCANY-1514
 URL: https://issues.apache.org/jira/browse/TUSCANY-1514
 Project: Tuscany
  Issue Type: Bug
  Components: Java SDO Implementation
Affects Versions: Java-SDO-beta1
Reporter: Leo Li
 Fix For: Java-SDO-Next


 Hi All , 
   when I  read the data from a table , there is a Datetime field in the 
 table , if the datetime field'value is null , the SDO will produce a 
 NullPointException , Maybe this is a bug , and How to fixed it  ? 
  
 Exception content as follow : 
  
 12:02:21,015 [main] ERROR [DasService]
 java.lang.NullPointerException
  at
 org.apache.tuscany.sdo.helper.DataHelperImpl.toDate(DataHelperImpl.java:48)
  at
 org.apache.tuscany.sdo.model.impl.ModelFactoryImpl.createDateFromString(Mode
 lFactoryImpl.java:1931)
  at
 org.apache.tuscany.sdo.model.impl.ModelFactoryImpl.createFromString(ModelFac
 toryImpl.java:224)
  at
 org.apache.tuscany.sdo.impl.FactoryBase$SDOEFactoryImpl.createFromString(Fac
 toryBase.java:270)
  at
 org.eclipse.emf.ecore.util.EcoreUtil.createFromString(EcoreUtil.java:2982)
  at
 org.eclipse.emf.ecore.change.impl.FeatureChangeImpl.getValue(FeatureChangeIm
 pl.java:428)
  at
 org.apache.tuscany.sdo.impl.ChangeSummarySettingImpl.getValue(ChangeSummaryS
 ettingImpl.java:89)
  at
 org.apache.tuscany.das.rdb.util.DataObjectUtil.restoreAttributeValues(DataOb
 jectUtil.java:74)
  at
 org.apache.tuscany.das.rdb.util.DataObjectUtil.getRestoredCopy(DataObjectUti
 l.java:41)
  at
 org.apache.tuscany.das.rdb.impl.DeleteOperation.init(DeleteOperation.java:
 34)
  at
 org.apache.tuscany.das.rdb.impl.ChangeFactory.createDeleteOperation(ChangeFa
 ctory.java:77)
  at
 org.apache.tuscany.das.rdb.impl.ChangeSummarizer.createChange(ChangeSummariz
 er.java:103)
  at
 org.apache.tuscany.das.rdb.impl.ChangeSummarizer.loadChanges(ChangeSummarize
 r.java:80)
  at
 org.apache.tuscany.das.rdb.impl.ApplyChangesCommandImpl.execute(ApplyChanges
 CommandImpl.java:64)
  at org.apache.tuscany.das.rdb.impl.DASImpl.applyChanges(DASImpl.java:310)

-- 
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]



[SDO Java] IRC chat on release contents

2008-02-04 Thread kelvin goodson
This is a follow-up invitation for you to influence the current SDO Java
release content that Amita is managing.  We tried having an IRC slot in
Amita's working day (actually starting at 9:30PM her time; summary posted
at [1]),  but didn't get participation,  which may have been due to the
early start from a US West Coast perspective, so I will host another session
on Friday afternoon UK time, precise time to be confirmed,  but I would
suggest 5PM GMT / 9AM PST.  Please post if you plan to attend,  or would
attend if the time were different.

I'm cross posting to tuscany-user and tuscany-dev here,  but please respond
to tuscany-user only, as I assume all who are subscribed to tuscany-dev are
also subscribed to tuscany-user.

We will use the usual Tuscany IRC channel  on server irc.freenode.net,
channel #Tuscany

Kelvin.

[1]
http://mail-archives.apache.org/mod_mbox/ws-tuscany-user/200802.mbox/browser


Re: Distribution structure

2008-02-02 Thread Kelvin Goodson



Looks fine to me


On 1 Feb 2008, at 16:09, Mike Edwards  
[EMAIL PROTECTED] wrote:



+1

Simon Laws wrote:

I'm looking at copying the 1.1 release artifacts up onto the new
distribution infrastructure at
www.apache.org/dist/incubator/
We need to make a decision about how this will be structured. As a  
default I

assume we stick pretty much with what we have already (see
http://archive.apache.org/dist/incubator/tuscany/)
tuscany
 native (was cpp)
 java/
das/
sca/
sdo/
If people are happy I'll go in and create the bits necessary for  
the new

java release, i.e.
tuscany/java/sca/1.1-incubating
Let me know.
Regards
Simon


-
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]



[SDO Java] next steps in preparing a release

2008-01-30 Thread kelvin goodson
I had an instant messaging chat with Amita, covering issues of release
management, including

license compliance, cutting tags/branches, sample programs, using the
distribution project,  building and deploying a release candidate, pgp
signing, maven staging repositories

appended is the transcript

Kelvin.

9:11:55 AM: Amita A Vadhavkar:is there something else i can do for the
release - like create branch, tag, distribution etc?
9:12:17 AM: kelvin_goodson: sure, lets spend some time thinking it through,
then I'll post a summary to the list
9:13:31 AM: kelvin_goodson: so as soon as you take a branch then theres
double fixing to do, so that's best done once the function is in (I spent
lots of yesterday getting my event notification function done and I'm poised
to commit it)
9:13:59 AM: kelvin_goodson: so there are guidelines somewhere we ought to
look through -- (note after chat:
http://incubator.apache.org/guides/releasemanagement.html)
9:14:11 AM: kelvin_goodson: what are the key points ...
9:14:48 AM: kelvin_goodson: Every downloadable artifact should have license
information that gives the downloader a clear picture of the licensed
content of that artifact
9:15:11 AM: kelvin_goodson: this is true for source archive,  binary archive
and maven downloadable artifacts
9:15:19 AM: kelvin_goodson: we should be OK from previous releases for this
9:15:32 AM: kelvin_goodson: in maven artifacts, the license must be in the
manifest of the jar
9:16:05 AM: kelvin_goodson: the samples could perhaps do with some checking
for spelling mistakes in the commentary that is output
9:16:17 AM: kelvin_goodson: have you run the samples?
9:16:21 AM: Amita A Vadhavkar: yes
9:16:31 AM: kelvin_goodson: I spent quite a bit of time on those in the last
release,  but could have spent more
9:16:44 AM: Amita A Vadhavkar: i will check then in detail now
9:16:46 AM: kelvin_goodson: Can you see ways to improve them?
9:16:48 AM: kelvin_goodson: thanks
9:16:52 AM: Amita A Vadhavkar: yes will do
9:17:12 AM: kelvin_goodson: Are you familiar with the distribution project
9:17:25 AM: kelvin_goodson: it is used to build the source and binary
artifacts
9:17:43 AM: Amita A Vadhavkar: partially, have done some work in DAS on it-
create assembly pom etc
9:17:47 AM: kelvin_goodson: in the poms for that project it specifies files
that should go through a variable substitution filter
9:17:49 AM: kelvin_goodson: good
9:18:09 AM: kelvin_goodson: so,  there will be variables to ensure they are
the correct value when we cut a branch/tag
9:18:22 AM: kelvin_goodson: the release process should be ...
9:18:50 AM: kelvin_goodson: export source from tag to local build structure
9:19:02 AM: Amita A Vadhavkar: ?
9:19:05 AM: kelvin_goodson: build right through to source / binary artifacts
9:19:15 AM: kelvin_goodson: will come back to your ?
9:19:48 AM: kelvin_goodson: take the source artifact and act as if you were
someone who had downloaded the source distro and wanted to build the binary
from it
9:20:11 AM: kelvin_goodson: rebuild everything right through to source /
binary from just the source distro
9:20:19 AM: kelvin_goodson: now going back to your ?
9:20:51 AM: kelvin_goodson: export is an svn command that checks out source
into a plain source hierarchy,  with no .svn folders etc
9:20:56 AM: kelvin_goodson: is that what you were asking?
9:21:21 AM: Amita A Vadhavkar: let me ask one by one
9:21:25 AM: kelvin_goodson: go ahead
9:21:48 AM: Amita A Vadhavkar: 1) how do we create a branch?
9:22:02 AM: kelvin_goodson: svn copy URL1 URL2
9:22:36 AM: kelvin_goodson: You can do this with tortoise repository
explorer
9:22:46 AM: kelvin_goodson: or command line svn
9:22:52 AM: kelvin_goodson: which would be something like
9:23:28 AM: Amita A Vadhavkar: yes saw that
9:23:40 AM: Amita A Vadhavkar: so creating branch means creating tag too?
9:24:02 AM: kelvin_goodson: svn copy
https://svn.apa/tuscany/java/sdohttps://svn.apa.../tuscany/branches/java/sdo/1.1-incubatingor
whatever the pattern is
9:24:13 AM: kelvin_goodson: a tag is just a copy of the source that is under
the tags folder
9:24:30 AM: kelvin_goodson: svn recognises a path with tags in if i
understand correctly
9:25:10 AM: kelvin_goodson: so in the past, because there has been little
activity in the trunk when I have been trying to stabilize the build I have
not created a branch
9:25:35 AM: kelvin_goodson: I have gone straight to a tag at a late stage
and then made minor changes (i.e. pom versions without SNAPSHOT qualifier)
in the tag
9:25:46 AM: kelvin_goodson: svn warns you when you are editing files in a
tag
9:25:51 AM: kelvin_goodson: but doens't stop you (the tag must be considered
immutable once a release has been made,  and must match the source distro)
9:25:54 AM: Amita A Vadhavkar: ok
9:26:09 AM: Amita A Vadhavkar: so when we freeze on JIRAs I can do the same
9:26:40 AM: kelvin_goodson: there may not be a need to freeze on JIRAs,
but we can take a JIRA cut and say thats what gets into the release

Re: SVN props

2008-01-29 Thread kelvin goodson
Having seen the version from sebb I note there's just a [miscellany]
introducer required.  I'll fix it.

Kelvin.

On 29/01/2008, kelvin goodson [EMAIL PROTECTED] wrote:

 Substituting the contents of this file into my config file causes the
 error

 svn: C:\Documents and Settings\Administrator\Application
 Data\Subversion\config:4: Section header expected

 when using svn command line version ...
 svn, version 1.4.5 (r25188)
compiled Aug 22 2007, 20:56:15

 or TortoiseSVN 1.4.4, Build 9706 - 32 Bit , 2007/06/09 09:44:02

 so for some reason I don't think it likes encountering enable-auto-props
 = yes as a first functional line

 Kelvin.

 On 29/01/2008, ant elder [EMAIL PROTECTED] wrote:
 
  Just as an fyi follow on from TUSCANY-2019 does everyone know they can
  (and
  should) have their SVN configured to automatically set SVN properties
  like
  eol-style? We've a template file for this at
  https://svn.apache.org/repos/asf/incubator/tuscany/java/etc/svn-props,
  if
  you're on Windows your subversion config file might be somewhere like:
  C:\Documents and Settings\Administrator\Application
  Data\Subversion\config.
 
 
 ...ant
 




Re: SVN props

2008-01-29 Thread kelvin goodson
Substituting the contents of this file into my config file causes the error

svn: C:\Documents and Settings\Administrator\Application
Data\Subversion\config:4: Section header expected

when using svn command line version ...
svn, version 1.4.5 (r25188)
   compiled Aug 22 2007, 20:56:15

or TortoiseSVN 1.4.4, Build 9706 - 32 Bit , 2007/06/09 09:44:02

so for some reason I don't think it likes encountering enable-auto-props =
yes as a first functional line

Kelvin.

On 29/01/2008, ant elder [EMAIL PROTECTED] wrote:

 Just as an fyi follow on from TUSCANY-2019 does everyone know they can
 (and
 should) have their SVN configured to automatically set SVN properties like
 eol-style? We've a template file for this at
 https://svn.apache.org/repos/asf/incubator/tuscany/java/etc/svn-props, if
 you're on Windows your subversion config file might be somewhere like:
 C:\Documents and Settings\Administrator\Application
 Data\Subversion\config.


...ant



[jira] Updated: (TUSCANY-1293) SDO does not work with OSGi

2008-01-28 Thread Kelvin Goodson (JIRA)

 [ 
https://issues.apache.org/jira/browse/TUSCANY-1293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kelvin Goodson updated TUSCANY-1293:


Patch Info: [Patch Available]

 SDO does not work with OSGi
 ---

 Key: TUSCANY-1293
 URL: https://issues.apache.org/jira/browse/TUSCANY-1293
 Project: Tuscany
  Issue Type: Bug
  Components: Java SDO Implementation
Affects Versions: Java-SDO-beta1
 Environment: OS X Eclipse 3.3 M7
Reporter: Bryan Hunt
Priority: Blocker
 Fix For: Java-SDO-Next

 Attachments: sdo-osgi.txt


 When I execute:
 XSDHelper.INSTANCE.define(schema, null);
 I end up with a NullPointerException.  I've tracked down root cause ...
 The static initializer of the HelperProvider executes this code:
   provider = getInstance(HelperProvider.class.getClassLoader());
 which ends up calling:
   HelperProvider provider = loadImplementation(cl, implName);
 implName is null so
 if (implName == null) {
 implName = getImplementationName(cl);
 }
 ends up calling
   implName = getImplementationName(cl);
 which ends up calling:
   InputStream is = cl.getResourceAsStream(SERVICE_RESOURCE_NAME);
 where SERVICE_RESORUCE_NAME = 
 META-INF/services/commonj.sdo.impl.HelperProvider
 getResourceAsStream() return null because META-INF/services does not exist in 
 the API bundle.  It exists in the IMPL bundle and since you are using the 
 class loader from the API bundle, it won't work.  
 You can set
 -Dcommonj.sdo.impl.HelperProvider=org.apache.tuscany.sdo.helper.HelperProviderImpl
 to get around the above problem, but as soon as 
   return (HelperProvider) cl.loadClass(implName).newInstance();
 executes, you get a CalssNotFoundException.  Again, this is because you are 
 trying to load a class outside the bundle with the wrong class loader.
  tried modifying the API manifest by hand to add
 Eclipse-BuddyPolicy: dependent
 and
 Eclipse-BuddyPolicy: global
 Either of those buddy policies will get past the class loader problem 
 (although I believe this is specific to eclipse and won't work for OSGi in 
 general), but when HelperProvider is initializing, you get the following 
 exception:
 java.lang.ExceptionInInitializerError
 at org.apache.tuscany.sdo.impl.AttributeImpl.clinit(AttributeImpl.java:126)
 at 
 org.apache.tuscany.sdo.impl.SDOFactoryImpl.createAttribute(SDOFactoryImpl.java:239)
 at org.apache.tuscany.sdo.impl.ClassImpl.clinit(ClassImpl.java:68)
 at 
 org.apache.tuscany.sdo.impl.SDOFactoryImpl$SDOEcoreFactory.createEClass(SDOFactoryImpl.java:76)
 at 
 org.apache.tuscany.sdo.impl.SDOPackageImpl.createEClass(SDOPackageImpl.java:622)
 at 
 org.apache.tuscany.sdo.impl.SDOPackageImpl.createPackageContents(SDOPackageImpl.java:550)
 at org.apache.tuscany.sdo.impl.SDOPackageImpl.init(SDOPackageImpl.java:259)
 at org.apache.tuscany.sdo.SDOPackage.clinit(SDOPackage.java:76)
 at sun.misc.Unsafe.ensureClassInitialized(Native Method)
 at 
 sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
 at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
 at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917)
 at java.lang.reflect.Field.getFieldAccessor(Field.java:898)
 at java.lang.reflect.Field.get(Field.java:357)
 at org.apache.tuscany.sdo.util.SDOUtil.registerStaticTypes(SDOUtil.java:196)
 at 
 org.apache.tuscany.sdo.model.impl.ModelFactoryImpl.init(ModelFactoryImpl.java:731)
 at org.apache.tuscany.sdo.model.ModelFactory.clinit(ModelFactory.java:41)
 at 
 org.apache.tuscany.sdo.helper.TypeHelperImpl.getBuiltInModels(TypeHelperImpl.java:61)
 at org.apache.tuscany.sdo.helper.TypeHelperImpl.init(TypeHelperImpl.java:79)
 at 
 org.apache.tuscany.sdo.helper.HelperContextImpl.init(HelperContextImpl.java:46)
 at 
 org.apache.tuscany.sdo.helper.HelperProviderImpl.createDefaultHelpers(HelperProviderImpl.java:38)
 at 
 org.apache.tuscany.sdo.rtlib.helper.HelperProviderBase.init(HelperProviderBase.java:78)
 at 
 org.apache.tuscany.sdo.helper.HelperProviderImpl.init(HelperProviderImpl.java:31)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at 
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 at 
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
 at java.lang.Class.newInstance0(Class.java:350)
 at java.lang.Class.newInstance(Class.java:303)
 at commonj.sdo.impl.HelperProvider.loadImplementation(HelperProvider.java:157)
 at commonj.sdo.impl.HelperProvider.getInstance(HelperProvider.java:126)
 at commonj.sdo.impl.HelperProvider.clinit(HelperProvider.java:69)
 at commonj.sdo.helper.XSDHelper.clinit(XSDHelper.java:195

[jira] Commented: (TUSCANY-1483) Static SDO generator: problem with elements named internal*

2008-01-24 Thread Kelvin Goodson (JIRA)

[ 
https://issues.apache.org/jira/browse/TUSCANY-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12561997#action_12561997
 ] 

Kelvin Goodson commented on TUSCANY-1483:
-

Your most recent patch ( 1483-withTestCaseInToolsTest.patch ) looks good by 
visual inspection.  I haven't applied it to a test environment.   Please feel 
free to commit it, and I'll check the commit log and run the tests after.

Kelvin.

 Static SDO generator: problem with elements named internal*
 ---

 Key: TUSCANY-1483
 URL: https://issues.apache.org/jira/browse/TUSCANY-1483
 Project: Tuscany
  Issue Type: Improvement
  Components: Java SDO Tools
Affects Versions: Java-SDO-beta1
Reporter: Daniel Peter
Priority: Minor
 Fix For: Java-SDO-Next

 Attachments: 1483-withTestCase.patch, 
 1483-withTestCaseInToolsTest.patch, 1483.patch, test1483.xsd


 Hi,
 I run into a problem with the static generated SDOs, when having a xsd with 
 the following two elements:
 xsd:element name=abc type=xsd:integer /
 xsd:element name=internalAbc type=xsd:integer /
 In the generated Impl class this leads twice to the same constant 
 INTERNAL_ABC.
 The xsd elements might simply be renamed in order to avoid this clash, but 
 there might be situations where this is not possible. 
 The generator could use a different, less probable prefix (e.g. ___INTERNAL_).
 Thanks, Daniel.

-- 
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]



[jira] Commented: (TUSCANY-2009) Java SDO's EqualityHelper doesn't compare Bytes values correctly

2008-01-22 Thread Kelvin Goodson (JIRA)

[ 
https://issues.apache.org/jira/browse/TUSCANY-2009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12561304#action_12561304
 ] 

Kelvin Goodson commented on TUSCANY-2009:
-

I'm surprised that the Ecore equality helper doesn't handle this.  If my 
understanding is correct then Ecore could check the 
eAttribute.getEAttributeType().getInstanceClass().isArray() and then use 
Arrays.equals() for all arrays.  Maybe there's a fix in a later version of EMF?

This is our only array of primitives type, so we can special case it. We should 
check for type Bytes and use java.util.Arrays.equals(arg1,arg2) in our impl of 
haveEqualAttribute

 Java SDO's EqualityHelper doesn't compare Bytes values correctly
 

 Key: TUSCANY-2009
 URL: https://issues.apache.org/jira/browse/TUSCANY-2009
 Project: Tuscany
  Issue Type: Bug
  Components: Java SDO Implementation
Affects Versions: Java-SDO-1.0
 Environment: n/a
Reporter: David T. Adcox
 Fix For: Java-SDO-Next

 Attachments: Test2009.java


 Comparison of two Bytes values fails when it should succeed.  The test for 
 equality passes through the EqualityHelperImpl.equal method.  In that method, 
 the test is passed to EcoreUtil.haveEqualAttribute(EObject, EObject, 
 EAttribute).  For a simple type, it defers to java's '==' operator.  So, two 
 different object arrays are being compared, not for their contents, but 
 rather if they are the same object.  Attached is a test case which 
 demonstrates this issue.

-- 
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]



[jira] Resolved: (TUSCANY-1026) Java SDO Overview page on Web site has out of date information on samples

2008-01-22 Thread Kelvin Goodson (JIRA)

 [ 
https://issues.apache.org/jira/browse/TUSCANY-1026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kelvin Goodson resolved TUSCANY-1026.
-

Resolution: Invalid

The passage of time has made this JIRA invalid.  Improvements will be made to 
the website structure, but this specific issue has disappeared.

 Java SDO Overview page on Web site has out of date information on samples
 -

 Key: TUSCANY-1026
 URL: https://issues.apache.org/jira/browse/TUSCANY-1026
 Project: Tuscany
  Issue Type: Bug
  Components: Website
Affects Versions: Java-SCA-M2
 Environment: all
Reporter: Simon Nash
 Fix For: Java-SDO-Next


 The file java_sdo_overview.xml has a section at the end entitiled 
 Test/Example programs.  This section is out of date and needs to be updated 
 to reflect the current state of the SDO Java  technology samples and the 
 Tuscany Java sample applications.  The latter are described in 
 java-projects.html#Running the Samples.

-- 
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]



Re: [Java SDO] Tuscany SDO Java 1.1-incubating

2008-01-18 Thread kelvin goodson
On 18/01/2008, Amita Vadhavkar [EMAIL PROTECTED] wrote:

 Assuming name of the release as Tuscany SDO Java 1.1-incubating and
 keeping
 ref. to the
 old mail thread -
 http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg27168.html.
 I am starting a new thread now.

 Web Site documentation:- I could gather a few places where small updates
 can
 be done. Please give your comments
 if these seem fine or need something more/something else.

 1) why on http://incubator.apache.org/tuscany/sdo-java-get-involved.htmlwe
 have -
 Open CSA (SCA Standards)


This is confusing and needs investigating.  I think you are talking about
the transition from ...
http://incubator.apache.org/tuscany/sdo-java.html
to
http://incubator.apache.org/tuscany/sdo-java-get-involved.html

In which case the Get Involved is a link from the general menu and
therefore  is general to Tuscany.  However,  the page is entitled SDO Java
Get Involved,  yet seems identical to the Get Involved page from the
Tuscany Home page's Community menu apart from the fact that this page is
entitled Getting Involved: Apache Tuscany.  I'm sure we used to have our
own SDO Java getting involved page,  and I think it has accidentally been
overwritten at some stage.  I guess we need to look at the wiki change
history and see if we can recover it.

2) changes in
 http://incubator.apache.org/tuscany/tuscany-sdo-java-faq.htmlfor
 new features, improvements


I'm a bit confused here.  I think maybe you have two separate ideas that
have been merged perhaps.  I don't think we want to detail new features on
the FAQ page.

TUSCANY-1468 - Use HelperContext for scope in Tuscany API
 TUSCANY-1128 - Support attribute and element with same name
 TUSCANY-1359 - New SDOUtil: Upper and lower bound on properties where
 'isMany' is true
 CTS TUSCANY-1230 - Improvements to TypeConversionTest


Something I meant to mention in regards to your other posting is that the
CTS is not part of an SDO Java release.  We haven't ever  released the
CTS,  since  it's never yet seemed to make sense to do so.  SDO implementers
who want to use the CTS can download the source.  I think what we want to do
here is a respin of the kind of release we have done before,  for the SDO
Java runtime.

Is there anything else from
 http://cwiki.apache.org/confluence/display/TUSCANYWIKI/SDO+Java+Project
 that can be added to it? Also do the above mentioned JIRAs useful as part
 of
 FAQ, or mention in Release Notes will
 be sufficient?


I see now.  Yes, release notes are definitely the place for this.

3) http://incubator.apache.org/tuscany/tuscany-sdo-java-faq.html page does
 not have menu


 Good point

4) http://incubator.apache.org/tuscany/sdo-project-code-structure.html no
 menu , old structure


you are right,  we need to add a section for the lib project and the
tools-test project

5) http://incubator.apache.org/tuscany/getting-source.html no menu and old
 structure


 again, yes, this doesn't reflect the move of the api project into the main
sdo trunk

6) developer guide - should we refer to
 http://incubator.apache.org/tuscany/sca-java-development-guide.html and
 make SDO Dev Guide more complete?


 I think ideally we would incorporate some of the new content from the sca
guide into an sdo guide.  If the SCA guide is built up by wiki include
directives, there may be scope for including generic chunks into out own
guide.

7) http://incubator.apache.org/tuscany/sdo-java-user-guide.html again no
 menu
 can refer to http://incubator.apache.org/tuscany/sca-java-user-guide.html

 8) TUSCANY-1026
 Also, why

 https://svn.apache.org/repos/asf/incubator/tuscany/java/sdo/distribution/src/main/release/bin/samples/sampleProgramContents.html
 opens the html page without browser rendering it as html? (like shows all
 html tags etc.)


I think this is a firefox issue.  It's fine in IE. Not sure why it's wrong
in firefox though.

Can we provide this link in
 http://incubator.apache.org/tuscany/sdo-java-user-guide.html


This looks like a useful rework of some of the content that I  think is
already in the site.  It certainly was at one time.

9) TUSCANY-1531
 From this - comment #1 - Some pages are only available on the left menu on
 this page : http://incubator.apache.org/tuscany/developing-sdo-java.html
 It should probably be listed/visible from :
 http://incubator.apache.org/tuscany/sdo-java-documentation-menu.html as
 it's
 one of the pages with more contents on it.
 looks like is fixed.


great

And with 7) we can fix comment #2 - User guide has wrong styles :
 http://incubator.apache.org/tuscany/sdo-java-user-guide.html


fine

Thanks Amita for this useful review.  I'll pick some of these things up.
Can you let me know which you plan to do and which you would like me to do?
Anyone else watching this thread is of course more than welcome to pitch in
too.

Kelvin.

Regards,
 Amita



Re: [Java SDO] What should we be attacking?

2008-01-16 Thread kelvin goodson
Hi Amita,
  looking at the size of the list of fixed JIRAs and the balance of
improvements/New features to bug fixes I would have thought this would
warrant a title of Tuscany SDO Java 1.1-incubating
I'll respond about the pending JIRAs a bit later.

Kelvin.


On 16/01/2008, Amita Vadhavkar [EMAIL PROTECTED] wrote:

 Have a couple of question about release -

 What will be the name of the Java SDO release?

 After checking Java-SDO-Next and Java-SDO-CTS-Next from ASF-JIRA and
 referring to
 http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg25868.html
 I have tried to gather a list of all JIRAs (Fixed, Open,...) at -
 http://cwiki.apache.org/confluence/display/TUSCANYWIKI/SDO+Java+Project

 Also, referring again to -
 http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg25868.html,

 Below are in-progress JIRAs-
TUSCANY-1360
TUSCANY-1483
TUSCANY-1293

 Are there any other in-progress JIRAs?

 So we are left with below ones -

 
 Simple Starters
 ===
 TUSCANY-1178DynamicTypesFromSchemaTestCase expecting *Object types to
 be
 created
 TUSCANY-1263XMLEqualityChecker too strict
 TUSCANY-1659SDO DateConversion test cases fail under linux

 Particular Skills JIRAs
 =
 For anyone with JavaJet experience there's

 For someone with maven build experience there
 TUSCANY-257 recently added file Interface2JavaGenerator.java is not
 compatible with JDK 1.4

 For someone with Grobu-Utils and maven skills there's ...
 TUSCANY-1182Add multi-threaded test case for data object creation

 Someone with Axis2 skills
 TUSCANY-1038SDO databinding for Axis2
   (This may be better done within the Axis2 project)

 Biting off something a bit Bigger
 
 For somebody wanting something a bit bigger to take on there's

 TUSCANY-1192Preserve demand created global properties
 TUSCANY-1361New Util: Validation
 TUSCANY-1021CopyHelper and EqualityHelper should handle ChangeSummary
 TUSCANY-1817Improve SDO test infrastructure to re-use/re-execute most
 dynamic tests as static tests

 Is anybody working on any from the above list? Also please take a look at
 the cwiki link above to see if any other JIRAs from
 there are of interest and can be made part of the release. Any other
 issues/features missed so far in above which can be
 included?


 ===
 Regards,
 Amita

 On Jan 16, 2008 1:47 PM, kelvin goodson [EMAIL PROTECTED] wrote:

  Hey Amita,
   that's great!  I guess collating the state of the fixed and unfixed
  JIRAs,  and producing a definitive list of what's going to be in and out
  is
  the first step.  I think the states and marked fix levels  on the JIRAs
  are
  all as they should be,  so that should be a relatively smooth operation.
  I'll try to find pointers to the best reference information later in the
  day
  and post them.
 
  Kelvin.
 
  On 16/01/2008, Amita Vadhavkar [EMAIL PROTECTED] wrote:
  
   Hi,
   I would like to do Release Management activities for this SDO release.
  It
   will be a good learning
   for me. Appreciate your help.
  
   Regards,
   Amita
  
   On Jan 15, 2008 6:42 PM, kelvin goodson [EMAIL PROTECTED]
  wrote:
  
It's high time we spun this release.  There are various patches
 still
  to
apply I know,  although I haven't done the ground work recently to
   collate
all the info.  Is there anyone out there who might be prepared to be
release
manager for this?  I'd be happy to provide guidance.
   
Kelvin.
   
On 20/11/2007, kelvin goodson [EMAIL PROTECTED] wrote:

 What should we be concentrating our efforts on in SDO Java.  I
  posted
 a while back to suggest we think about the content of a next
  release.
 We've had a few fixes go in recently,  but I'd like to see more
 consideration of release content before we crank the handle.  It
  would
 be great to see a balance of new features and bug fixes.


 For my part I want to get back to ...
 TUSCANY-1527Allow for custom data binding of DataObjects in a
   Swing
UI
 TUSCANY-1493Snapshot mapping framework to convert DataObjects
 to
   and
 from Java objects
 as soon as I can.  And I believe that at least 1527 can move
 beyond
 proof of concept in my sandbox,  and become part of the trunk.

 I've been taking a pass through the SDO java JIRA backlog,  and
  seeing
 from my perspective what's simple / tricky / big / high priority
  etc,
 etc.  Of course simplicity is in the eye of the beholder,  for
 example, I don't view the OSGi topic as simple as I don't have
 experience there,  but someone out there may find it so; if so
  please
 speak up. The same goes for priority, etc. As you might imagine,
 in
  my
 estimation there are no simple high priority JIRAs

[jira] Commented: (TUSCANY-1483) Static SDO generator: problem with elements named internal*

2008-01-15 Thread Kelvin Goodson (JIRA)

[ 
https://issues.apache.org/jira/browse/TUSCANY-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12559045#action_12559045
 ] 

Kelvin Goodson commented on TUSCANY-1483:
-

Amita,  thanks for looking at this.  A while back we moved nearly all of our 
generated class test cases out of the tools project into the tools-test 
project.  The reason for this is that generating classes in a build requires 
use of the plugin project,  but the plugin project relies on the tools project, 
so we couldn't add a test scope dependency of the tools project on the plugin 
one,  as there would then be circular dependencies.  The outcome is that we 
have an extra project,  with dependencies on both tools and plugin,  where 
nearly all the testing goes on.  The only test I left in the tools project 
itself was one that looked at package names,  and for that I bypassed the 
plugin.  The reason for this was that I could inspect runtime artifacts to 
ensure the behaviour,  instead of having into inspect files or jars if I had 
done the test using the plugin.

The upshot of this is that I think the behaviour in question for this JIRA is 
better tested in the tools-test project, where we can just add the schema to a 
stanza in the pom.xml,  and exercise the generated classes in a small test 
program.

 Static SDO generator: problem with elements named internal*
 ---

 Key: TUSCANY-1483
 URL: https://issues.apache.org/jira/browse/TUSCANY-1483
 Project: Tuscany
  Issue Type: Improvement
  Components: Java SDO Tools
Affects Versions: Java-SDO-beta1
Reporter: Daniel Peter
Priority: Minor
 Fix For: Java-SDO-Next

 Attachments: 1483-withTestCase.patch, 1483.patch, test1483.xsd


 Hi,
 I run into a problem with the static generated SDOs, when having a xsd with 
 the following two elements:
 xsd:element name=abc type=xsd:integer /
 xsd:element name=internalAbc type=xsd:integer /
 In the generated Impl class this leads twice to the same constant 
 INTERNAL_ABC.
 The xsd elements might simply be renamed in order to avoid this clash, but 
 there might be situations where this is not possible. 
 The generator could use a different, less probable prefix (e.g. ___INTERNAL_).
 Thanks, Daniel.

-- 
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]



Re: [Java SDO] What should we be attacking?

2008-01-15 Thread kelvin goodson
It's high time we spun this release.  There are various patches still to
apply I know,  although I haven't done the ground work recently to collate
all the info.  Is there anyone out there who might be prepared to be release
manager for this?  I'd be happy to provide guidance.

Kelvin.

On 20/11/2007, kelvin goodson [EMAIL PROTECTED] wrote:

 What should we be concentrating our efforts on in SDO Java.  I posted
 a while back to suggest we think about the content of a next release.
 We've had a few fixes go in recently,  but I'd like to see more
 consideration of release content before we crank the handle.  It would
 be great to see a balance of new features and bug fixes.


 For my part I want to get back to ...
 TUSCANY-1527Allow for custom data binding of DataObjects in a Swing UI
 TUSCANY-1493Snapshot mapping framework to convert DataObjects to and
 from Java objects
 as soon as I can.  And I believe that at least 1527 can move beyond
 proof of concept in my sandbox,  and become part of the trunk.

 I've been taking a pass through the SDO java JIRA backlog,  and seeing
 from my perspective what's simple / tricky / big / high priority etc,
 etc.  Of course simplicity is in the eye of the beholder,  for
 example, I don't view the OSGi topic as simple as I don't have
 experience there,  but someone out there may find it so; if so please
 speak up. The same goes for priority, etc. As you might imagine, in my
 estimation there are no simple high priority JIRAs left,  but there
 are a few simple medium priority ones, or simple low priority ones
 that would be good to just get out of the way.

 These are 

 Simple Starters
 ===
 TUSCANY-1360New SDOUtil: Getting the enumeration facet
 TUSCANY-1178DynamicTypesFromSchemaTestCase expecting *Object types to
 be created
 TUSCANY-1263XMLEqualityChecker too strict
 TUSCANY-1359New SDOUtil: Upper and lower bound on properties where
 'isMany' is true
 TUSCANY-1384SequenceAddOpenTest.setUp() needs to check if type exists
 before creating it
 TUSCANY-1545Change default XML encoding to UTF-8.
 TUSCANY-1659SDO DateConversion test cases fail under linux


 Particular Skills JIRAs
 =
 For anyone with JavaJet experience there's

 TUSCANY-1483Static SDO generator: problem with elements named
 internal*
 which would be simple

 For someone with maven build experience there
 TUSCANY-257 recently added file Interface2JavaGenerator.java is not
 compatible with JDK 1.4

 For someone with Grobu-Utils and maven skills there's ...
 TUSCANY-1182Add multi-threaded test case for data object creation

 Someone with Axis2 skills
 TUSCANY-1038SDO databinding for Axis2
(This may be better done within the Axis2 project)

 OSGi Skills
 TUSCANY-1293SDO does not work with OSGi


 Biting off something a bit Bigger
 
 For somebody wanting something a bit bigger to take on there's

 TUSCANY-1192Preserve demand created global properties
 TUSCANY-1361New Util: Validation
 TUSCANY-1021CopyHelper and EqualityHelper should handle ChangeSummary
 TUSCANY-1817Improve SDO test infrastructure to re-use/re-execute most
 dynamic tests as static tests


 This isn't a full list, and I may post more soon.  Please feel free to
 disagree with my assessment and speak up with your own priorities.
 Better still step forward to help fix something.  I'd be only too
 pleased to help you understand what's required.

 Kelvin.



Re: [SDO] SDO generator

2008-01-11 Thread kelvin goodson
Amita,  that sounds great thanks.  It would be good to have more people
understanding this stuff.  I'm happy with javajet setup to help if you need
it.  There's an FAQ in the SDO Java part of the website for getting started
that you may have already found.

Kelvin.

On 11/01/2008, Amita Vadhavkar [EMAIL PROTECTED] wrote:

 Hi,
 I was just scanning through SDO for the things I was trying in 2007 and
 came
 across JIRA-1483. David has already
 provided the patch and test xsd. I would like to give it a try using
 javajet
 and apply it.

 Old discussion -
 http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg26269.html
 Suggestions?
 Regards,
 Amita



Re: [Java SDO] What should we be attacking?

2008-01-11 Thread kelvin goodson
Hi Rajini,

   thanks for this.  Our problem is that because the SDO spec says we must
support Java 1.4,  and versions of EMF from 2.3 and beyond require Java 5,
we are blocked from advancing beyond EMF 2.2.3.  Your Bugzilla doesn't
mention the version of EMF,  but sadly I'm pretty sure there's no scope for
us getting a fix on top of 2.2.3,  so I think we will have to go on with the
solution you have provided indefinitely.

Kelvin.

On 11/01/2008, Rajini Sivaram [EMAIL PROTECTED] wrote:

 Kelvin,

 Following on from the notes from John Conlon (

 http://www.eclipse.org/newsportal/article.php?id=29577group=eclipse.tools.emf#29577
 )
 and Jeff McAffer (
 http://www.mail-archive.com/[EMAIL PROTECTED]/msg00673.html), I have
 opened an EMF Bugzilla (
 https://bugs.eclipse.org/bugs/show_bug.cgi?id=215010)
 to remove the dependency of EMF on the Eclipse runtime.

 You could apply the patch as is, and remove the code that modifies the
 manifest entries in the EMF jars when the issue is resolved.


 Thank you...

 Regards,

 Rajini


 On 1/9/08, kelvin goodson [EMAIL PROTECTED] wrote:
 
  Rajini,   I think you are right.  I'll apply the patch as is,  and we
 can
  tackle the issue of Felix as a community if and when specific the need
  arises.
  Regards, Kelvin.
 
  On 08/01/2008, Rajini Sivaram [EMAIL PROTECTED] wrote:
  
   Kelvin,
  
   http://issues.apache.org/jira/browse/TUSCANY-1293 contains the patch
  that
   enables SDO to run under OSGi. At the moment, the OSGi manifest
 entries
  in
   EMF jars and the OSGi bundle activator have a dependency on Eclipse
   runtime
   (and hence on Equinox). Since Tuscany SCA is tested under Apache Felix
   OSGi
   runtime (and Felix is easily available from a public maven
 repository),
   the
   tests in the patch for TUSCANY-1293 are also run under Apache Felix.
  These
   tests modify the manifest entries of the EMF jars before installing
 them
   under Felix. The patch should work for Equinox without any changes to
  EMF.
  
   It would be good if a cleaner solution could be implemented for SDO to
  run
   under Felix without modifying EMF. This is the response I got from Ed
   Merks
   on the EMF newsgroup:
  
  
   *This question probably really should be directed to the Apache
  folks.  At
   Eclipse I can just provide a version intended to run with the Equinox
   runtime so the Tuscany folks probably ought to make a version that
 works
   well with Felix.  Have you asked them about this?  I'd be curious what
   they
   say...
   *
  
   For now, it may be best to apply the patch which enables SDO to run
  under
   Equinox without modifying EMF, and with Felix with modified EMF jars.
 If
   there is a wider interest in running SDO under Felix, an alternative
 may
   be
   needed. Redistributing EMF with SDO with different manifest entries
   doesn't
   seem a good option.
  
   Suggestions?
  
  
  
   Thank you...
  
   Regards,
  
   Rajini
  
  
   On 1/4/08, kelvin goodson [EMAIL PROTECTED] wrote:
  
Hi Rajini,
  Now that the New Year has arrived, do you think you'll be able to
  take
   a
look at this?
Thanks, Kelvin.
   
   
On 11/12/2007, Rajini Sivaram [EMAIL PROTECTED] wrote:

 Kelvin,

 I am busy until Christmas with the SCA-OSGi work, but I will try
 and
look
 at
 the OSGi-enablement of SDO early in the new year. At the moment I
   can't
 promise anything, but from the notes that you produced about
classloading,
 and the code and comments from Bert, I think there is enough
   information
 to
 prototype an implementation. I will update the list in the new
 year
after
 I
 take a more detailed look.


 Thank you...

 Regards,

 Rajini

 On 12/10/07, kelvin goodson [EMAIL PROTECTED] wrote:
 
  I'd kind of hoped to be in a position to have a release before
 the
   end
 of
  the year. The JIRA query [1] shows that we have 34 JIRAs in
  resolved
 state
  with a fix version of SDO-Next, but I think it would be good to
  get
the
  OSGi
  issues dealt with before a release.  Thoughts?
 
  Kelvin.
 
  [1]
 
 

   
  
 
 https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=truepid=12310210status=5status=6component=12311542component=12310660component=12310973component=12310802fixfor=12312262resolution=1sorter/field=issuekeysorter/order=DESCsorter/field=componentssorter/order=ASCsorter/field=updatedsorter/order=DESC
 
 
  On 29/11/2007, kelvin goodson [EMAIL PROTECTED] wrote:
  
   David,
  thanks for the fixes.  I'll apply them as soon as I can get
  to
   them.  I've been away unwell for most of the last weeks so I
  have
some
   catching up to do.  Anything you can do to reduce the JIRA
  backlog
   further would be great, thanks.
  
   Kelvin.
  
   On 29/11/2007, David Adcox [EMAIL PROTECTED] wrote:
Kelvin

[jira] Resolved: (TUSCANY-1935) Conversion of Bytes to/from String properties is not functioning correctly.

2008-01-10 Thread Kelvin Goodson (JIRA)

 [ 
https://issues.apache.org/jira/browse/TUSCANY-1935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kelvin Goodson resolved TUSCANY-1935.
-

Resolution: Fixed

Patch applied, thanks David.

 Conversion of Bytes to/from String properties is not functioning correctly.
 ---

 Key: TUSCANY-1935
 URL: https://issues.apache.org/jira/browse/TUSCANY-1935
 Project: Tuscany
  Issue Type: Bug
  Components: Java SDO Implementation
Affects Versions: Java-SDO-1.0
 Environment: n/a
Reporter: David T. Adcox
 Fix For: Java-SDO-Next

 Attachments: 1935.patch, 1935WithTestAugmentation.patch, Test1935.java


 According to the SDO for Java specification v. 2.1.0, conversion of string 
 properties to byte arrays and from byte array properties to string is a 
 supported conversion type.  This is confirmed on page 138 of the spec.  
 Additionally, sections 8.1.4 and 8.1.5 describe the behavior of such 
 conversions.  When an attempt is made to perform one of the following 
 functions, though, a ClassCastException is thrown:
  dataObj.getBytes(stringPropName);
  dataObj.set(stringPropName, byteArrayValue);
  dataObj.set(byteArrayPropName, stringValue);
 The dataObj.getString(byteArrayPropName) method seems to be functioning 
 correctly.

-- 
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]



Re: [SDO] questions about support for Enumeration facet

2008-01-10 Thread kelvin goodson
Amita,
   thanks for the patches.  I've had a good look,  but still haven't made up
my mind which way to go.  First off is I think that you should not have
different test cases in your patches.  I believe the test case should always
test for 3 enumerations,  and the patch using the commons.sdo#Strings type
approach should be shown to fail.  This is my preferred approach if it can
be made to work.  I was digging down to see if this is an EMF bug,  but have
not proved it yet.  I was hoping to show that EcoreUtil's encoding for
Strings to String is not always the inverse of it's own String to Strings
mapping,  but we don't seem to use EcoreUtil for both directions of the
mapping.  I may adopt the alternative patsh as a tactical approach,  and
mark the code to keep a handle on the issue,  but I'd like to investigate a
bit further before I make that choice.

Kelvin.

On 10/01/2008, Amita Vadhavkar [EMAIL PROTECTED] wrote:

 Please see the 2 patches attached to JIRA-1360 and give comments.

 Regards,
 Amita

 On Jan 1, 2008 4:11 PM, Amita Vadhavkar [EMAIL PROTECTED] wrote:

  Hi Kelvin,
  Yes , below is the change I tried to see to make a Property of type
  Strings, in DataObjectUtil -
 
protected static Property getGlobalProperty(HelperContext hc, String
  uri, String name)
{
  Property property;
  if (ExtendedMetaData.ANNOTATION_URI.equals(uri)) {
if (minExclusive.equals(name) ||...
enumeration.equals(name) ||
pattern.equals(name))
{
if(enumeration.equals(name) || pattern.equals(name)) {
property = SDOUtil.createOpenContentProperty(hc, uri,
 name,
  ((ModelFactoryImpl)ModelFactory.INSTANCE).getStrings());
} else {
property = SDOUtil.createOpenContentProperty(hc, uri,
 name,
  ((ModelFactoryImpl)ModelFactory.INSTANCE).getString());
}
}
else
{
  property = null;
}
  }
  else
  {
property = hc.getTypeHelper().getOpenContentProperty(uri, name);
if (property == null)
{
  property = SDOUtil.createOpenContentProperty(hc, uri, name,
  ((ModelFactoryImpl)ModelFactory.INSTANCE).getString());
}
  }
  return property;
}
 
  Regards,
  Amita
 
 
  On Dec 21, 2007 4:31 PM, kelvin goodson [EMAIL PROTECTED] 
  wrote:
 
   Amita,
I'm a little unclear what you have changed.  Have you altered the
   enumeration facet Property type to commonj.sdo.{Strings}?
   Regards, Kelvin.
  
   On 21/12/2007, Amita Vadhavkar [EMAIL PROTECTED]  wrote:
   
This looks quite easy with one small difference in the behavior -
   
For enum like below -
simpleType name=ExampleRating
restriction base=string
enumeration value=/
enumeration value=Good/
enumeration value=Bad/
/restriction
/simpleType
   
1) below returns size as 3 i.e. conuts for the null value
  if(metaObject instanceof EDataTypeImpl){
  System.out.println(metaObject instance of EDataTypeImpl);
  if( property.getName().equals(enumeration)) {
  System.out.println
   
  
 (((EDataTypeImpl)metaObject).getExtendedMetaData().getEnumerationFacet());
  List enumVals =
   
  
 ((EDataTypeImpl)metaObject).getExtendedMetaData().getEnumerationFacet();
  System.out.println(enum size from
   **EMF**+enumVals.size());
  }
  }
   
2) whereas below returns size as 2, i.e. does not count for null
result = SDOUtil.createFromString (getInstanceProperty(type,
enumeration).getType(), type.get(getInstanceProperty(type,
enumeration)).toString());
System.out.println(Frank:enumeration+result+, result
type:+result.getClass().getName()+, size-+ ((java.util.ArrayList
)result).size());
   
in 2) the EMF call is made to EcoreUtil.createFromString
((EDataType)dataType,
literal);
and assumed that DataObjectUtil.getGlobalProperty() checks for enum
   and
does
SDOUtil.createOpenContentProperty() for Strings.
   
Suggestions?
   
Regards,
Amita
   
On Dec 17, 2007 4:10 PM, kelvin goodson [EMAIL PROTECTED]
   wrote:
   
 Amita,

   I think Frank's note in this thread is key to the solution,  in
   that
the
 line ...
 return SDOUtil.createFromString(property.getType(), value);
 will create a List if the type of the Property is set to 
 commonj.sdo{Strings}


 Regards, Kelvin.


 On 14/12/2007, Amita Vadhavkar [EMAIL PROTECTED] wrote:
 
  Tried to do little more analysis to see what is the way to reach
  ExtendedMetadata from DataObjectUtil. Please see the findings
   below.
 
  DataObjectUtil.getMetaObjectInstanceProperty (EModelElement,
   Property)
 can
  be
  reached from
  AttributeImpl(EAttributeImpl), ClassImpl(EClassImpl),
  DataTypeImpl(EDataTypeImpl), ReferenceImpl(EReferenceImpl

Re: [Java SDO] What should we be attacking?

2008-01-09 Thread kelvin goodson
Rajini,   I think you are right.  I'll apply the patch as is,  and we can
tackle the issue of Felix as a community if and when specific the need
arises.
Regards, Kelvin.

On 08/01/2008, Rajini Sivaram [EMAIL PROTECTED] wrote:

 Kelvin,

 http://issues.apache.org/jira/browse/TUSCANY-1293 contains the patch that
 enables SDO to run under OSGi. At the moment, the OSGi manifest entries in
 EMF jars and the OSGi bundle activator have a dependency on Eclipse
 runtime
 (and hence on Equinox). Since Tuscany SCA is tested under Apache Felix
 OSGi
 runtime (and Felix is easily available from a public maven repository),
 the
 tests in the patch for TUSCANY-1293 are also run under Apache Felix. These
 tests modify the manifest entries of the EMF jars before installing them
 under Felix. The patch should work for Equinox without any changes to EMF.

 It would be good if a cleaner solution could be implemented for SDO to run
 under Felix without modifying EMF. This is the response I got from Ed
 Merks
 on the EMF newsgroup:


 *This question probably really should be directed to the Apache folks.  At
 Eclipse I can just provide a version intended to run with the Equinox
 runtime so the Tuscany folks probably ought to make a version that works
 well with Felix.  Have you asked them about this?  I'd be curious what
 they
 say...
 *

 For now, it may be best to apply the patch which enables SDO to run under
 Equinox without modifying EMF, and with Felix with modified EMF jars. If
 there is a wider interest in running SDO under Felix, an alternative may
 be
 needed. Redistributing EMF with SDO with different manifest entries
 doesn't
 seem a good option.

 Suggestions?



 Thank you...

 Regards,

 Rajini


 On 1/4/08, kelvin goodson [EMAIL PROTECTED] wrote:

  Hi Rajini,
Now that the New Year has arrived, do you think you'll be able to take
 a
  look at this?
  Thanks, Kelvin.
 
 
  On 11/12/2007, Rajini Sivaram [EMAIL PROTECTED] wrote:
  
   Kelvin,
  
   I am busy until Christmas with the SCA-OSGi work, but I will try and
  look
   at
   the OSGi-enablement of SDO early in the new year. At the moment I
 can't
   promise anything, but from the notes that you produced about
  classloading,
   and the code and comments from Bert, I think there is enough
 information
   to
   prototype an implementation. I will update the list in the new year
  after
   I
   take a more detailed look.
  
  
   Thank you...
  
   Regards,
  
   Rajini
  
   On 12/10/07, kelvin goodson [EMAIL PROTECTED] wrote:
   
I'd kind of hoped to be in a position to have a release before the
 end
   of
the year. The JIRA query [1] shows that we have 34 JIRAs in resolved
   state
with a fix version of SDO-Next, but I think it would be good to get
  the
OSGi
issues dealt with before a release.  Thoughts?
   
Kelvin.
   
[1]
   
   
  
 
 https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=truepid=12310210status=5status=6component=12311542component=12310660component=12310973component=12310802fixfor=12312262resolution=1sorter/field=issuekeysorter/order=DESCsorter/field=componentssorter/order=ASCsorter/field=updatedsorter/order=DESC
   
   
On 29/11/2007, kelvin goodson [EMAIL PROTECTED] wrote:

 David,
thanks for the fixes.  I'll apply them as soon as I can get to
 them.  I've been away unwell for most of the last weeks so I have
  some
 catching up to do.  Anything you can do to reduce the JIRA backlog
 further would be great, thanks.

 Kelvin.

 On 29/11/2007, David Adcox [EMAIL PROTECTED] wrote:
  Kelvin,
 
  I have some free cycles, so I'd like to help knock some things
 off
  this list for you.  I've gone ahead and contributed a patch for
   1483.
  I'll address 1545 as well.  I believe that 1384 is already done.
 
  On Nov 20, 2007 6:36 AM, kelvin goodson 
 [EMAIL PROTECTED]
  
 wrote:
   What should we be concentrating our efforts on in SDO Java.  I
posted
   a while back to suggest we think about the content of a next
release.
   We've had a few fixes go in recently,  but I'd like to see
 more
   consideration of release content before we crank the
 handle.  It
would
   be great to see a balance of new features and bug fixes.
  
  
   For my part I want to get back to ...
   TUSCANY-1527Allow for custom data binding of DataObjects
 in
  a
 Swing UI
   TUSCANY-1493Snapshot mapping framework to convert
  DataObjects
   to
 and
   from Java objects
   as soon as I can.  And I believe that at least 1527 can move
   beyond
   proof of concept in my sandbox,  and become part of the trunk.
  
   I've been taking a pass through the SDO java JIRA
 backlog,  and
seeing
   from my perspective what's simple / tricky / big / high
 priority
etc,
   etc.  Of course simplicity is in the eye of the beholder,  for
   example, I don't view

Re: [Java SDO] What should we be attacking?

2008-01-04 Thread kelvin goodson
Hi Rajini,
   Now that the New Year has arrived, do you think you'll be able to take a
look at this?
Thanks, Kelvin.


On 11/12/2007, Rajini Sivaram [EMAIL PROTECTED] wrote:

 Kelvin,

 I am busy until Christmas with the SCA-OSGi work, but I will try and look
 at
 the OSGi-enablement of SDO early in the new year. At the moment I can't
 promise anything, but from the notes that you produced about classloading,
 and the code and comments from Bert, I think there is enough information
 to
 prototype an implementation. I will update the list in the new year after
 I
 take a more detailed look.


 Thank you...

 Regards,

 Rajini

 On 12/10/07, kelvin goodson [EMAIL PROTECTED] wrote:
 
  I'd kind of hoped to be in a position to have a release before the end
 of
  the year. The JIRA query [1] shows that we have 34 JIRAs in resolved
 state
  with a fix version of SDO-Next, but I think it would be good to get the
  OSGi
  issues dealt with before a release.  Thoughts?
 
  Kelvin.
 
  [1]
 
 
 https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=truepid=12310210status=5status=6component=12311542component=12310660component=12310973component=12310802fixfor=12312262resolution=1sorter/field=issuekeysorter/order=DESCsorter/field=componentssorter/order=ASCsorter/field=updatedsorter/order=DESC
 
 
  On 29/11/2007, kelvin goodson [EMAIL PROTECTED] wrote:
  
   David,
  thanks for the fixes.  I'll apply them as soon as I can get to
   them.  I've been away unwell for most of the last weeks so I have some
   catching up to do.  Anything you can do to reduce the JIRA backlog
   further would be great, thanks.
  
   Kelvin.
  
   On 29/11/2007, David Adcox [EMAIL PROTECTED] wrote:
Kelvin,
   
I have some free cycles, so I'd like to help knock some things off
this list for you.  I've gone ahead and contributed a patch for
 1483.
I'll address 1545 as well.  I believe that 1384 is already done.
   
On Nov 20, 2007 6:36 AM, kelvin goodson [EMAIL PROTECTED]
   wrote:
 What should we be concentrating our efforts on in SDO Java.  I
  posted
 a while back to suggest we think about the content of a next
  release.
 We've had a few fixes go in recently,  but I'd like to see more
 consideration of release content before we crank the handle.  It
  would
 be great to see a balance of new features and bug fixes.


 For my part I want to get back to ...
 TUSCANY-1527Allow for custom data binding of DataObjects in a
   Swing UI
 TUSCANY-1493Snapshot mapping framework to convert DataObjects
 to
   and
 from Java objects
 as soon as I can.  And I believe that at least 1527 can move
 beyond
 proof of concept in my sandbox,  and become part of the trunk.

 I've been taking a pass through the SDO java JIRA backlog,  and
  seeing
 from my perspective what's simple / tricky / big / high priority
  etc,
 etc.  Of course simplicity is in the eye of the beholder,  for
 example, I don't view the OSGi topic as simple as I don't have
 experience there,  but someone out there may find it so; if so
  please
 speak up. The same goes for priority, etc. As you might imagine,
 in
  my
 estimation there are no simple high priority JIRAs left,  but
 there
 are a few simple medium priority ones, or simple low priority ones
 that would be good to just get out of the way.

 These are 

 Simple Starters
 ===
 TUSCANY-1360New SDOUtil: Getting the enumeration facet
 TUSCANY-1178DynamicTypesFromSchemaTestCase expecting *Object
  types
   to
 be created
 TUSCANY-1263XMLEqualityChecker too strict
 TUSCANY-1359New SDOUtil: Upper and lower bound on properties
  where
 'isMany' is true
 TUSCANY-1384SequenceAddOpenTest.setUp() needs to check if type
   exists
 before creating it
 TUSCANY-1545Change default XML encoding to UTF-8.
 TUSCANY-1659SDO DateConversion test cases fail under linux


 Particular Skills JIRAs
 =
 For anyone with JavaJet experience there's

 TUSCANY-1483Static SDO generator: problem with elements named
   internal*
 which would be simple

 For someone with maven build experience there
 TUSCANY-257 recently added file Interface2JavaGenerator.javais
   not
 compatible with JDK 1.4

 For someone with Grobu-Utils and maven skills there's ...
 TUSCANY-1182Add multi-threaded test case for data object
  creation

 Someone with Axis2 skills
 TUSCANY-1038SDO databinding for Axis2
(This may be better done within the Axis2 project)

 OSGi Skills
 TUSCANY-1293SDO does not work with OSGi


 Biting off something a bit Bigger
 
 For somebody wanting something a bit bigger to take on there's

 TUSCANY-1192Preserve demand created global properties
 TUSCANY

Re: [SDO] questions about support for Enumeration facet

2007-12-21 Thread kelvin goodson
Amita,
  I'm a little unclear what you have changed.  Have you altered the
enumeration facet Property type to commonj.sdo.{Strings}?
Regards, Kelvin.

On 21/12/2007, Amita Vadhavkar [EMAIL PROTECTED] wrote:

 This looks quite easy with one small difference in the behavior -

 For enum like below -
 simpleType name=ExampleRating
 restriction base=string
 enumeration value=/
 enumeration value=Good/
 enumeration value=Bad/
 /restriction
 /simpleType

 1) below returns size as 3 i.e. conuts for the null value
   if(metaObject instanceof EDataTypeImpl){
   System.out.println(metaObject instance of EDataTypeImpl);
   if(property.getName().equals(enumeration)) {
   System.out.println
 (((EDataTypeImpl)metaObject).getExtendedMetaData().getEnumerationFacet());
   List enumVals =
 ((EDataTypeImpl)metaObject).getExtendedMetaData().getEnumerationFacet();
   System.out.println(enum size from **EMF**+enumVals.size());
   }
   }

 2) whereas below returns size as 2, i.e. does not count for null
 result = SDOUtil.createFromString(getInstanceProperty(type,
 enumeration).getType(), type.get(getInstanceProperty(type,
 enumeration)).toString());
 System.out.println(Frank:enumeration+result+, result
 type:+result.getClass().getName()+, size-+ ((java.util.ArrayList
 )result).size());

 in 2) the EMF call is made to EcoreUtil.createFromString
 ((EDataType)dataType,
 literal);
 and assumed that DataObjectUtil.getGlobalProperty() checks for enum and
 does
 SDOUtil.createOpenContentProperty() for Strings.

 Suggestions?

 Regards,
 Amita

 On Dec 17, 2007 4:10 PM, kelvin goodson [EMAIL PROTECTED] wrote:

  Amita,
 
I think Frank's note in this thread is key to the solution,  in that
 the
  line ...
  return SDOUtil.createFromString(property.getType(), value);
  will create a List if the type of the Property is set to 
  commonj.sdo{Strings}
 
 
  Regards, Kelvin.
 
 
  On 14/12/2007, Amita Vadhavkar [EMAIL PROTECTED] wrote:
  
   Tried to do little more analysis to see what is the way to reach
   ExtendedMetadata from DataObjectUtil. Please see the findings below.
  
   DataObjectUtil.getMetaObjectInstanceProperty(EModelElement, Property)
  can
   be
   reached from
   AttributeImpl(EAttributeImpl), ClassImpl(EClassImpl),
   DataTypeImpl(EDataTypeImpl), ReferenceImpl(EReferenceImpl).
  
   Below is the inheritance for EAttributeImpl -
   java.lang.Object
 extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
 extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
 extended by org.eclipse.emf.ecore.impl.EObjectImpl
 extended by org.eclipse.emf.ecore.impl.FlatEObjectImpl
 extended by
   org.eclipse.emf.ecore.impl.EModelElementImpl**
 extended by
   org.eclipse.emf.ecore.impl.ENamedElementImpl
 extended by
   org.eclipse.emf.ecore.impl.ETypedElementImpl
 extended by
   org.eclipse.emf.ecore.impl.EStructuralFeatureImpl
 extended by
   org.eclipse.emf.ecore.impl.EAttributeImpl
  
   Below is the inheritance for EClassImpl -
   java.lang.Object
 extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
 extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
 extended by org.eclipse.emf.ecore.impl.EObjectImpl
 extended by org.eclipse.emf.ecore.impl.FlatEObjectImpl
 extended by
   org.eclipse.emf.ecore.impl.EModelElementImpl**
 extended by
   org.eclipse.emf.ecore.impl.ENamedElementImpl
 extended by
   org.eclipse.emf.ecore.impl.EClassifierImpl
 extended by
   org.eclipse.emf.ecore.impl.EClassImpl
  
   Below is the inheritance for EDataTypeImpl -
   java.lang.Object
 extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
 extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
 extended by org.eclipse.emf.ecore.impl.EObjectImpl
 extended by org.eclipse.emf.ecore.impl.FlatEObjectImpl
 extended by
   org.eclipse.emf.ecore.impl.EModelElementImpl**
 extended by
   org.eclipse.emf.ecore.impl.ENamedElementImpl
 extended by
   org.eclipse.emf.ecore.impl.EClassifierImpl
 extended by
   org.eclipse.emf.ecore.impl.EDataTypeImpl
  
   Below is the inheritance for EReferenceImpl -
   java.lang.Object
 extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
 extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
 extended by org.eclipse.emf.ecore.impl.EObjectImpl
 extended by org.eclipse.emf.ecore.impl.FlatEObjectImpl
 extended by
   org.eclipse.emf.ecore.impl.EModelElementImpl**
 extended

Re: [virus report]raising virus warning when mvn tuscany source codes

2007-12-20 Thread kelvin goodson
Hi,

   I have inspected the two svn version of the sdo files  you reference,
and both are as I would expect;  no inserted script tags etc.  I have
created md5 sum  CRC digests of the files.  If you could repeat these checks
and verify you get the same answer then I think your virus checker is
reporting a false alarm. If however you get different results,  it would
seem that your files have been altered locally or have been downloaded from
some other location that the svn repo. If you don't have a program that
generates md5sum checks you can get a windows program from microsoft [1],
and run the command fciv -md5 filename

C:\Dev\clean\sample\src\main\java\org\apache\tuscany\samples\sdofciv -md5
overview.html
//
// File Checksum Integrity Verifier version 2.05.
//
5fca4c78a97e01cd9c9d52adc0bf9163 overview.html

C:\Dev\clean\sample\src\main\java\org\apache\tuscany\samples\sdofciv -md5
sampleProgramContents.html
//
// File Checksum Integrity Verifier version 2.05.
//
3f54d5e5d541768435ef49cdda2ca788 sampleprogramcontents.html



[1] http://support.microsoft.com/kb/841290

On 20/12/2007, 王洪伟 [EMAIL PROTECTED] wrote:

 Hi,all
 This morning, I checked out tuscany java sources from apache .
 Some virus warnings raised when I mvned it.

 Detail information as follows:
 =
 扫描类型:自动防护 扫描
 事件:发现安全风险!
 威胁:W32.Pagipef.I!html

 文件:D:\maven-sca\java\sdo\sample\target\classes\org\apache\tuscany\samples\sdo\overview.html
 位置:未知存储
 计算机:DAVID
 用户:DAVID\ce
 采取的操作:清除 成功 : 拒绝访问
 发现的日期:2007年12月20日  9:23:23
 ===

 [1] http://www.tuscany.org.cn/images/9/9e/VirusReport.JPG


 Regards,

 david



Re: [virus report]raising virus warning when mvn tuscany source codes

2007-12-20 Thread kelvin goodson
I just spotted one detail in your list.  Some of the files you report are in
the target folder,  and are therefore generated as a result of running a
build on your local machine,  which might indicate that your development
tools might be creating the suspicious files.  However,  this wouldn't seem
to be the whole answer,  since others of the files are under the src
hierarchy.

Kelvin.

On 20/12/2007, kelvin goodson [EMAIL PROTECTED] wrote:

 Hi,

I have inspected the two svn version of the sdo files  you reference,
 and both are as I would expect;  no inserted script tags etc.  I have
 created md5 sum  CRC digests of the files.  If you could repeat these checks
 and verify you get the same answer then I think your virus checker is
 reporting a false alarm. If however you get different results,  it would
 seem that your files have been altered locally or have been downloaded from
 some other location that the svn repo. If you don't have a program that
 generates md5sum checks you can get a windows program from microsoft [1],
 and run the command fciv -md5 filename

 C:\Dev\clean\sample\src\main\java\org\apache\tuscany\samples\sdofciv -md5
 overview.html
 //
 // File Checksum Integrity Verifier version 2.05.
 //
 5fca4c78a97e01cd9c9d52adc0bf9163 overview.html

 C:\Dev\clean\sample\src\main\java\org\apache\tuscany\samples\sdofciv -md5
 sampleProgramContents.html
 //
 // File Checksum Integrity Verifier version 2.05.
 //
 3f54d5e5d541768435ef49cdda2ca788 sampleprogramcontents.html



 [1] http://support.microsoft.com/kb/841290

 On 20/12/2007, 王洪伟  [EMAIL PROTECTED] wrote:
 
  Hi,all
  This morning, I checked out tuscany java sources from apache .
  Some virus warnings raised when I mvned it.
 
  Detail information as follows:
  =
  扫描类型:自动防护 扫描
  事件:发现安全风险!
  威胁:W32.Pagipef.I!html
  文件:D:\maven-sca\java\sdo\sample\target\classes\org\apache\tuscany\samples\sdo\overview.html
 
  位置:未知存储
  计算机:DAVID
  用户:DAVID\ce
  采取的操作:清除 成功 : 拒绝访问
  发现的日期:2007年12月20日  9:23:23
  ===
 
  [1] http://www.tuscany.org.cn/images/9/9e/VirusReport.JPG
 
 
  Regards,
 
  david
 




Re: SDO Type Conversion Unit Test

2007-12-19 Thread kelvin goodson
that's a big gap.  I guess its not so obvious because of the java reflection
that's used to get to the methods in question.  If you could go some way to
fill in the gap that would be great.

Kelvin.

On 19/12/2007, David Adcox [EMAIL PROTECTED] wrote:

 The unit test case org.apache.tuscany.sdo.test.TypeConversionTestCase
 exercises the get() methods on a DataObject, validating
 type conversion functions.  What is missing from this test, though, is
 any conversion testing of the set() methods.  This test suite uses
 the set method to seed the primary type, but it doesn't attempt to set
 the property using an alternative type.  I was looking to add the test
 case
 I created for Tuscany-1935 and found this test hole.  Does it make
 sense to go ahead and augment TypeConversionTestCase to validate the
 setX() methods as well?

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




Re: [SDO] questions about support for Enumeration facet

2007-12-17 Thread kelvin goodson
 in DataObjectUtil.getMetaObjectInstanceProperty(),
 we
 can add a new method in SDOUtil -

 public static ListString getEnumerationFacet(Type type) {
Property enumProperty = getInstanceProperty(type, enumeration);
return DataObjectUtil.getMetaObjectInstanceProperty(type,
 enumProperty);
 }

 This way for a DataTypeImpl enum facet values will come out as a List.
 Please give suggestions.
 I can open another JIRA and fix patternFacet too in same way.

 Regards,
 Amita

 On Dec 12, 2007 3:40 PM, kelvin goodson [EMAIL PROTECTED] wrote:

  By the way, until the wiki has been used to update the websitre then the
  FAQ
  can be seen at
 
 
 http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SDO+Java+-+FAQ
 
  Kelvin.
 
  On 12/12/2007, kelvin goodson [EMAIL PROTECTED] wrote:
  
   It occurred to me that there's a bit of a knack to debugging into EMF
   code,  so I just wrote an FAQ to describe how to do this.  Comments
 are
   welcome on its clarity or accuracy.
  
   Regards, Kelvin.
  
   On 11/12/2007, kelvin goodson [EMAIL PROTECTED] wrote:
   
Amita,
   
It feels like option 1 is the easy way to do things, and option 2 is
  the
right way given the introduction of instance properties on metadata
  provided
for this purpose (but doesn't currently work).
   
Here's the results of my digging around.  Let's start with what I
  found
last since it might prove to be the answer.  It seems highly likely
 to
  be
so,  but there is more thinking to be done.  So after quite a bit of
  digging
to see how things are handled in EMF I saw the TODO in
 DataObjectUtil
  
   
  public static Object getMetaObjectInstanceProperty(EModelElement
metaObject, Property property)
  {
String value = EcoreUtil.getAnnotation(metaObject,
property.getContainingType().getURI(), property.getName ());
//TODO if (property.isMany()) ... // create list of values from
  from
string
return SDOUtil.createFromString(property.getType(), value);
  }
   
So there's a couple of things I haven't got my head round yet that
perhaps you could take a look at since I must divert my attention
 for
  a
while.  The first is that the instance Property for the Type's
  enumeration
is isMany = false.  So even if we handled the TODO we wouldn't get
 the
desired result.  The second is that we must ensure a generic string
tokenizer here,  but I'm not yet confident that the tokenizing that
 we
  want
to satisfy the current issue would be the same for all Properties.
   What I
mean by this is that for the example you give,  it starts with the
  separator
space indicating that the first literal that should be returned
 from
tokenizing is the empty string.  Would this be true for all Property
  values,
or is it the case that sometimes we would consider trimming leading
  white
space?
   
I had been going down a track of investigating storage and retrieval
  of
the enumeration facets inside EMF,  which may yet prove to be the
 way
  to fix
this issue.  The facets seem to be stored in two ways.  Once as an
annotation on the metadata artifact directly, in concatenated string
  form,
and once as a vector on the extended metadata associated with the
  eDataType
(See setEnumerationFacet(EDataType,List) of BasicExtendedMetaData.
   The bulk
of code in setEnumerationFacet is devoted to concatenating the
 string
literals and hanging the annotation on the eDataType (Type),  but
 the
  last
line then squirrels the original input vector of enumerations away
 on
  the
extended metadata.
   
Now there is a basicGetEnumerationFacet method on the nested class
EDataTypeExtendedMetaDataImpl,  which is contained in
  BasicExtendedMetaData
which has all the reverse logic for unpacking the vector of
  enumerations
from the concatenated string,  but it never gets called in the
  scenario you
described.  Given the piece of code I included above, that wouldn't
  work
anyway, given the EcoreUtil .getAnnotation returns a single String.
   
I don't have a solution yet,  but I'll think on it.  Any suggestions
  you
may have are welcome.
   
Regards, Kelvin.
   
   
   
   
   
On 11/12/2007, Amita Vadhavkar [EMAIL PROTECTED] wrote:

 Hi,
 I tried TUSCANY-1360 related to enumeration facet. Below is the
 summary of
 what was
 discussed so far and a few questions.

 
 -

 1) One way to do this is -
 public static ListString getEnumerationFacet(Type type) {
 return ExtendedMetaData.INSTANCE.getEnumerationFacet
 ((EDataType)type);
 }

 which works very straight forward and gives a list of enums

Re: [Java SDO] What should we be attacking?

2007-12-17 Thread kelvin goodson
Thanks Rajini,
   I propose we hold on until January in the hope that you will be able to
tackle this.
Many thanks, Kelvin.

On 11/12/2007, Rajini Sivaram [EMAIL PROTECTED] wrote:

 Kelvin,

 I am busy until Christmas with the SCA-OSGi work, but I will try and look
 at
 the OSGi-enablement of SDO early in the new year. At the moment I can't
 promise anything, but from the notes that you produced about classloading,
 and the code and comments from Bert, I think there is enough information
 to
 prototype an implementation. I will update the list in the new year after
 I
 take a more detailed look.


 Thank you...

 Regards,

 Rajini

 On 12/10/07, kelvin goodson [EMAIL PROTECTED] wrote:
 
  I'd kind of hoped to be in a position to have a release before the end
 of
  the year. The JIRA query [1] shows that we have 34 JIRAs in resolved
 state
  with a fix version of SDO-Next, but I think it would be good to get the
  OSGi
  issues dealt with before a release.  Thoughts?
 
  Kelvin.
 
  [1]
 
 
 https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=truepid=12310210status=5status=6component=12311542component=12310660component=12310973component=12310802fixfor=12312262resolution=1sorter/field=issuekeysorter/order=DESCsorter/field=componentssorter/order=ASCsorter/field=updatedsorter/order=DESC
 
 
  On 29/11/2007, kelvin goodson [EMAIL PROTECTED] wrote:
  
   David,
  thanks for the fixes.  I'll apply them as soon as I can get to
   them.  I've been away unwell for most of the last weeks so I have some
   catching up to do.  Anything you can do to reduce the JIRA backlog
   further would be great, thanks.
  
   Kelvin.
  
   On 29/11/2007, David Adcox [EMAIL PROTECTED] wrote:
Kelvin,
   
I have some free cycles, so I'd like to help knock some things off
this list for you.  I've gone ahead and contributed a patch for
 1483.
I'll address 1545 as well.  I believe that 1384 is already done.
   
On Nov 20, 2007 6:36 AM, kelvin goodson [EMAIL PROTECTED]
   wrote:
 What should we be concentrating our efforts on in SDO Java.  I
  posted
 a while back to suggest we think about the content of a next
  release.
 We've had a few fixes go in recently,  but I'd like to see more
 consideration of release content before we crank the handle.  It
  would
 be great to see a balance of new features and bug fixes.


 For my part I want to get back to ...
 TUSCANY-1527Allow for custom data binding of DataObjects in a
   Swing UI
 TUSCANY-1493Snapshot mapping framework to convert DataObjects
 to
   and
 from Java objects
 as soon as I can.  And I believe that at least 1527 can move
 beyond
 proof of concept in my sandbox,  and become part of the trunk.

 I've been taking a pass through the SDO java JIRA backlog,  and
  seeing
 from my perspective what's simple / tricky / big / high priority
  etc,
 etc.  Of course simplicity is in the eye of the beholder,  for
 example, I don't view the OSGi topic as simple as I don't have
 experience there,  but someone out there may find it so; if so
  please
 speak up. The same goes for priority, etc. As you might imagine,
 in
  my
 estimation there are no simple high priority JIRAs left,  but
 there
 are a few simple medium priority ones, or simple low priority ones
 that would be good to just get out of the way.

 These are 

 Simple Starters
 ===
 TUSCANY-1360New SDOUtil: Getting the enumeration facet
 TUSCANY-1178DynamicTypesFromSchemaTestCase expecting *Object
  types
   to
 be created
 TUSCANY-1263XMLEqualityChecker too strict
 TUSCANY-1359New SDOUtil: Upper and lower bound on properties
  where
 'isMany' is true
 TUSCANY-1384SequenceAddOpenTest.setUp() needs to check if type
   exists
 before creating it
 TUSCANY-1545Change default XML encoding to UTF-8.
 TUSCANY-1659SDO DateConversion test cases fail under linux


 Particular Skills JIRAs
 =
 For anyone with JavaJet experience there's

 TUSCANY-1483Static SDO generator: problem with elements named
   internal*
 which would be simple

 For someone with maven build experience there
 TUSCANY-257 recently added file Interface2JavaGenerator.javais
   not
 compatible with JDK 1.4

 For someone with Grobu-Utils and maven skills there's ...
 TUSCANY-1182Add multi-threaded test case for data object
  creation

 Someone with Axis2 skills
 TUSCANY-1038SDO databinding for Axis2
(This may be better done within the Axis2 project)

 OSGi Skills
 TUSCANY-1293SDO does not work with OSGi


 Biting off something a bit Bigger
 
 For somebody wanting something a bit bigger to take on there's

 TUSCANY-1192Preserve demand created global properties

Re: [SDO] questions about support for Enumeration facet

2007-12-12 Thread kelvin goodson
It occurred to me that there's a bit of a knack to debugging into EMF code,
so I just wrote an FAQ to describe how to do this.  Comments are welcome on
its clarity or accuracy.

Regards, Kelvin.

On 11/12/2007, kelvin goodson [EMAIL PROTECTED] wrote:

 Amita,

 It feels like option 1 is the easy way to do things, and option 2 is the
 right way given the introduction of instance properties on metadata provided
 for this purpose (but doesn't currently work).

 Here's the results of my digging around.  Let's start with what I found
 last since it might prove to be the answer.  It seems highly likely to be
 so,  but there is more thinking to be done.  So after quite a bit of digging
 to see how things are handled in EMF I saw the TODO in DataObjectUtil 

   public static Object getMetaObjectInstanceProperty(EModelElement
 metaObject, Property property)
   {
 String value = EcoreUtil.getAnnotation(metaObject,
 property.getContainingType().getURI(), property.getName ());
 //TODO if (property.isMany()) ... // create list of values from from
 string
 return SDOUtil.createFromString(property.getType(), value);
   }

 So there's a couple of things I haven't got my head round yet that perhaps
 you could take a look at since I must divert my attention for a while.  The
 first is that the instance Property for the Type's enumeration is isMany =
 false.  So even if we handled the TODO we wouldn't get the desired result.
 The second is that we must ensure a generic string tokenizer here,  but I'm
 not yet confident that the tokenizing that we want to satisfy the current
 issue would be the same for all Properties.  What I mean by this is that for
 the example you give,  it starts with the separator space indicating that
 the first literal that should be returned from tokenizing is the empty
 string.  Would this be true for all Property values, or is it the case that
 sometimes we would consider trimming leading white space?

 I had been going down a track of investigating storage and retrieval of
 the enumeration facets inside EMF,  which may yet prove to be the way to fix
 this issue.  The facets seem to be stored in two ways.  Once as an
 annotation on the metadata artifact directly, in concatenated string form,
 and once as a vector on the extended metadata associated with the eDataType
 (See setEnumerationFacet(EDataType,List) of BasicExtendedMetaData.  The bulk
 of code in setEnumerationFacet is devoted to concatenating the string
 literals and hanging the annotation on the eDataType (Type),  but the last
 line then squirrels the original input vector of enumerations away on the
 extended metadata.

 Now there is a basicGetEnumerationFacet method on the nested class
 EDataTypeExtendedMetaDataImpl,  which is contained in BasicExtendedMetaData
 which has all the reverse logic for unpacking the vector of enumerations
 from the concatenated string,  but it never gets called in the scenario you
 described.  Given the piece of code I included above, that wouldn't work
 anyway, given the EcoreUtil .getAnnotation returns a single String.

 I don't have a solution yet,  but I'll think on it.  Any suggestions you
 may have are welcome.

 Regards, Kelvin.





 On 11/12/2007, Amita Vadhavkar [EMAIL PROTECTED] wrote:
 
  Hi,
  I tried TUSCANY-1360 related to enumeration facet. Below is the summary
  of
  what was
  discussed so far and a few questions.
  -
 
  1) One way to do this is -
  public static ListString getEnumerationFacet(Type type) {
  return ExtendedMetaData.INSTANCE.getEnumerationFacet
  ((EDataType)type);
  }
 
  which works very straight forward and gives a list of enums.
 
  -
  2) Another way is -
  Do type.getInstanceProperties() and find the Property called
  enumeration.
 
  Where, getInstanceProperties() calls
  DataObjectUtil.getMetaObjectInstanceProperties(EModelElement metaObject)
  in which for the given metaObject its annotations and details of each
  annotations are traversed. Each
  Annotation Detail is mapped to EStringToStringMapEntryImpl entry like
  below
  -
 
  EStringToStringMapEntryImpl entry =
  (EStringToStringMapEntryImpl)iter.next();   //iter is Iterator over
  current
  Annotation's Details
  String propertyName = entry.getTypedKey();
 
  Property globalProperty = getGlobalProperty(hc, propertyURI,
  propertyName);
  if (globalProperty != null)
  {
 result.add(globalProperty);
  }
 
  Result is a UniqueEList which is returned at the end.
 
  Here, when entry.getTypedKey() is enumeration, entry.getTypedValue()
  gives
  a String having space separated enums
 
  e.g. for
  simpleType name=ExampleRating
  restriction base=string
  enumeration value=/
  enumeration value=Good

Re: [SDO] questions about support for Enumeration facet

2007-12-12 Thread kelvin goodson
By the way, until the wiki has been used to update the websitre then the FAQ
can be seen at

http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SDO+Java+-+FAQ

Kelvin.

On 12/12/2007, kelvin goodson [EMAIL PROTECTED] wrote:

 It occurred to me that there's a bit of a knack to debugging into EMF
 code,  so I just wrote an FAQ to describe how to do this.  Comments are
 welcome on its clarity or accuracy.

 Regards, Kelvin.

 On 11/12/2007, kelvin goodson [EMAIL PROTECTED] wrote:
 
  Amita,
 
  It feels like option 1 is the easy way to do things, and option 2 is the
  right way given the introduction of instance properties on metadata provided
  for this purpose (but doesn't currently work).
 
  Here's the results of my digging around.  Let's start with what I found
  last since it might prove to be the answer.  It seems highly likely to be
  so,  but there is more thinking to be done.  So after quite a bit of digging
  to see how things are handled in EMF I saw the TODO in DataObjectUtil 
 
public static Object getMetaObjectInstanceProperty(EModelElement
  metaObject, Property property)
{
  String value = EcoreUtil.getAnnotation(metaObject,
  property.getContainingType().getURI(), property.getName ());
  //TODO if (property.isMany()) ... // create list of values from from
  string
  return SDOUtil.createFromString(property.getType(), value);
}
 
  So there's a couple of things I haven't got my head round yet that
  perhaps you could take a look at since I must divert my attention for a
  while.  The first is that the instance Property for the Type's enumeration
  is isMany = false.  So even if we handled the TODO we wouldn't get the
  desired result.  The second is that we must ensure a generic string
  tokenizer here,  but I'm not yet confident that the tokenizing that we want
  to satisfy the current issue would be the same for all Properties.  What I
  mean by this is that for the example you give,  it starts with the separator
  space indicating that the first literal that should be returned from
  tokenizing is the empty string.  Would this be true for all Property values,
  or is it the case that sometimes we would consider trimming leading white
  space?
 
  I had been going down a track of investigating storage and retrieval of
  the enumeration facets inside EMF,  which may yet prove to be the way to fix
  this issue.  The facets seem to be stored in two ways.  Once as an
  annotation on the metadata artifact directly, in concatenated string form,
  and once as a vector on the extended metadata associated with the eDataType
  (See setEnumerationFacet(EDataType,List) of BasicExtendedMetaData.  The bulk
  of code in setEnumerationFacet is devoted to concatenating the string
  literals and hanging the annotation on the eDataType (Type),  but the last
  line then squirrels the original input vector of enumerations away on the
  extended metadata.
 
  Now there is a basicGetEnumerationFacet method on the nested class
  EDataTypeExtendedMetaDataImpl,  which is contained in BasicExtendedMetaData
  which has all the reverse logic for unpacking the vector of enumerations
  from the concatenated string,  but it never gets called in the scenario you
  described.  Given the piece of code I included above, that wouldn't work
  anyway, given the EcoreUtil .getAnnotation returns a single String.
 
  I don't have a solution yet,  but I'll think on it.  Any suggestions you
  may have are welcome.
 
  Regards, Kelvin.
 
 
 
 
 
  On 11/12/2007, Amita Vadhavkar [EMAIL PROTECTED] wrote:
  
   Hi,
   I tried TUSCANY-1360 related to enumeration facet. Below is the
   summary of
   what was
   discussed so far and a few questions.
   -
  
   1) One way to do this is -
   public static ListString getEnumerationFacet(Type type) {
   return ExtendedMetaData.INSTANCE.getEnumerationFacet
   ((EDataType)type);
   }
  
   which works very straight forward and gives a list of enums.
  
   -
   2) Another way is -
   Do type.getInstanceProperties() and find the Property called
   enumeration.
  
   Where, getInstanceProperties() calls
   DataObjectUtil.getMetaObjectInstanceProperties(EModelElement
   metaObject)
   in which for the given metaObject its annotations and details of each
   annotations are traversed. Each
   Annotation Detail is mapped to EStringToStringMapEntryImpl entry like
   below
   -
  
   EStringToStringMapEntryImpl entry =
   (EStringToStringMapEntryImpl)iter.next();   //iter is Iterator over
   current
   Annotation's Details
   String propertyName = entry.getTypedKey();
  
   Property globalProperty = getGlobalProperty(hc, propertyURI,
   propertyName);
   if (globalProperty != null)
   {
  result.add

Re: [SDO] questions about support for Enumeration facet

2007-12-11 Thread kelvin goodson
Hi Amita,

  thanks for looking at this.  I'm a bit surprised, on digging a little way
in, that the enumeration Property is isMany==false.  I'll dig a bit
further,  but I had expected to be able to find the Property named
enumeration and get a list of entries.

Kelvin.

On 11/12/2007, Amita Vadhavkar [EMAIL PROTECTED] wrote:

 Hi,
 I tried TUSCANY-1360 related to enumeration facet. Below is the summary of
 what was
 discussed so far and a few questions.

 -
 1) One way to do this is -
 public static ListString getEnumerationFacet(Type type) {
 return ExtendedMetaData.INSTANCE.getEnumerationFacet((EDataType)type);
 }

 which works very straight forward and gives a list of enums.

 -
 2) Another way is -
 Do type.getInstanceProperties() and find the Property called
 enumeration.

 Where, getInstanceProperties() calls
 DataObjectUtil.getMetaObjectInstanceProperties(EModelElement metaObject)
 in which for the given metaObject its annotations and details of each
 annotations are traversed. Each
 Annotation Detail is mapped to EStringToStringMapEntryImpl entry like
 below
 -

 EStringToStringMapEntryImpl entry =
 (EStringToStringMapEntryImpl)iter.next();   //iter is Iterator over
 current
 Annotation's Details
 String propertyName = entry.getTypedKey();

 Property globalProperty = getGlobalProperty(hc, propertyURI,
 propertyName);
 if (globalProperty != null)
 {
result.add(globalProperty);
 }

 Result is a UniqueEList which is returned at the end.

 Here, when entry.getTypedKey() is enumeration, entry.getTypedValue()
 gives
 a String having space separated enums

 e.g. for
 simpleType name=ExampleRating
 restriction base=string
 enumeration value=/
 enumeration value=Good/
 enumeration value=Bad/
 /restriction
 /simpleType

 it gives,   Good Bad

 As we see in Property globalProperty = getGlobalProperty(hc, propertyURI,
 propertyName); the TypedKey information is
 used when forming Property with name enumeration, but the TypedValue
 information is not stored in the Property.
 Same thing will be applicable for other facets like MinLenght,
 MaxExclusive

 --
 Questions:

 Thus, the question I have is, in case of following 2), what will be the
 way
 to preserve the mapping (key-value)
 information available about facets from EMF in the formed Property? And
 what
 will be better approach for TUSCANY-1360
 and as such for any other facets?

 Regards,
 Amita



Re: [SDO] questions about support for Enumeration facet

2007-12-11 Thread kelvin goodson
Amita,

It feels like option 1 is the easy way to do things, and option 2 is the
right way given the introduction of instance properties on metadata provided
for this purpose (but doesn't currently work).

Here's the results of my digging around.  Let's start with what I found last
since it might prove to be the answer.  It seems highly likely to be so,
but there is more thinking to be done.  So after quite a bit of digging to
see how things are handled in EMF I saw the TODO in DataObjectUtil 

  public static Object getMetaObjectInstanceProperty(EModelElement
metaObject, Property property)
  {
String value = EcoreUtil.getAnnotation(metaObject,
property.getContainingType().getURI(), property.getName());
//TODO if (property.isMany()) ... // create list of values from from
string
return SDOUtil.createFromString(property.getType(), value);
  }

So there's a couple of things I haven't got my head round yet that perhaps
you could take a look at since I must divert my attention for a while.  The
first is that the instance Property for the Type's enumeration is isMany =
false.  So even if we handled the TODO we wouldn't get the desired result.
The second is that we must ensure a generic string tokenizer here,  but I'm
not yet confident that the tokenizing that we want to satisfy the current
issue would be the same for all Properties.  What I mean by this is that for
the example you give,  it starts with the separator space indicating that
the first literal that should be returned from tokenizing is the empty
string.  Would this be true for all Property values, or is it the case that
sometimes we would consider trimming leading white space?

I had been going down a track of investigating storage and retrieval of the
enumeration facets inside EMF,  which may yet prove to be the way to fix
this issue.  The facets seem to be stored in two ways.  Once as an
annotation on the metadata artifact directly, in concatenated string form,
and once as a vector on the extended metadata associated with the eDataType
(See setEnumerationFacet(EDataType,List) of BasicExtendedMetaData.  The bulk
of code in setEnumerationFacet is devoted to concatenating the string
literals and hanging the annotation on the eDataType (Type),  but the last
line then squirrels the original input vector of enumerations away on the
extended metadata.

Now there is a basicGetEnumerationFacet method on the nested class
EDataTypeExtendedMetaDataImpl,  which is contained in BasicExtendedMetaData
which has all the reverse logic for unpacking the vector of enumerations
from the concatenated string,  but it never gets called in the scenario you
described.  Given the piece of code I included above, that wouldn't work
anyway, given the EcoreUtil .getAnnotation returns a single String.

I don't have a solution yet,  but I'll think on it.  Any suggestions you may
have are welcome.

Regards, Kelvin.





On 11/12/2007, Amita Vadhavkar [EMAIL PROTECTED] wrote:

 Hi,
 I tried TUSCANY-1360 related to enumeration facet. Below is the summary of
 what was
 discussed so far and a few questions.

 -
 1) One way to do this is -
 public static ListString getEnumerationFacet(Type type) {
 return ExtendedMetaData.INSTANCE.getEnumerationFacet((EDataType)type);
 }

 which works very straight forward and gives a list of enums.

 -
 2) Another way is -
 Do type.getInstanceProperties() and find the Property called
 enumeration.

 Where, getInstanceProperties() calls
 DataObjectUtil.getMetaObjectInstanceProperties(EModelElement metaObject)
 in which for the given metaObject its annotations and details of each
 annotations are traversed. Each
 Annotation Detail is mapped to EStringToStringMapEntryImpl entry like
 below
 -

 EStringToStringMapEntryImpl entry =
 (EStringToStringMapEntryImpl)iter.next();   //iter is Iterator over
 current
 Annotation's Details
 String propertyName = entry.getTypedKey();

 Property globalProperty = getGlobalProperty(hc, propertyURI,
 propertyName);
 if (globalProperty != null)
 {
result.add(globalProperty);
 }

 Result is a UniqueEList which is returned at the end.

 Here, when entry.getTypedKey() is enumeration, entry.getTypedValue()
 gives
 a String having space separated enums

 e.g. for
 simpleType name=ExampleRating
 restriction base=string
 enumeration value=/
 enumeration value=Good/
 enumeration value=Bad/
 /restriction
 /simpleType

 it gives,   Good Bad

 As we see in Property globalProperty = getGlobalProperty(hc, propertyURI,
 propertyName); the TypedKey information is
 used when forming Property with name enumeration, but the TypedValue
 information is not stored in the Property.
 Same thing will be applicable for other facets 

Re: [Java SDO] What should we be attacking?

2007-12-10 Thread kelvin goodson
I'd kind of hoped to be in a position to have a release before the end of
the year. The JIRA query [1] shows that we have 34 JIRAs in resolved state
with a fix version of SDO-Next, but I think it would be good to get the OSGi
issues dealt with before a release.  Thoughts?

Kelvin.

[1]
https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=truepid=12310210status=5status=6component=12311542component=12310660component=12310973component=12310802fixfor=12312262resolution=1sorter/field=issuekeysorter/order=DESCsorter/field=componentssorter/order=ASCsorter/field=updatedsorter/order=DESC


On 29/11/2007, kelvin goodson [EMAIL PROTECTED] wrote:

 David,
thanks for the fixes.  I'll apply them as soon as I can get to
 them.  I've been away unwell for most of the last weeks so I have some
 catching up to do.  Anything you can do to reduce the JIRA backlog
 further would be great, thanks.

 Kelvin.

 On 29/11/2007, David Adcox [EMAIL PROTECTED] wrote:
  Kelvin,
 
  I have some free cycles, so I'd like to help knock some things off
  this list for you.  I've gone ahead and contributed a patch for 1483.
  I'll address 1545 as well.  I believe that 1384 is already done.
 
  On Nov 20, 2007 6:36 AM, kelvin goodson [EMAIL PROTECTED]
 wrote:
   What should we be concentrating our efforts on in SDO Java.  I posted
   a while back to suggest we think about the content of a next release.
   We've had a few fixes go in recently,  but I'd like to see more
   consideration of release content before we crank the handle.  It would
   be great to see a balance of new features and bug fixes.
  
  
   For my part I want to get back to ...
   TUSCANY-1527Allow for custom data binding of DataObjects in a
 Swing UI
   TUSCANY-1493Snapshot mapping framework to convert DataObjects to
 and
   from Java objects
   as soon as I can.  And I believe that at least 1527 can move beyond
   proof of concept in my sandbox,  and become part of the trunk.
  
   I've been taking a pass through the SDO java JIRA backlog,  and seeing
   from my perspective what's simple / tricky / big / high priority etc,
   etc.  Of course simplicity is in the eye of the beholder,  for
   example, I don't view the OSGi topic as simple as I don't have
   experience there,  but someone out there may find it so; if so please
   speak up. The same goes for priority, etc. As you might imagine, in my
   estimation there are no simple high priority JIRAs left,  but there
   are a few simple medium priority ones, or simple low priority ones
   that would be good to just get out of the way.
  
   These are 
  
   Simple Starters
   ===
   TUSCANY-1360New SDOUtil: Getting the enumeration facet
   TUSCANY-1178DynamicTypesFromSchemaTestCase expecting *Object types
 to
   be created
   TUSCANY-1263XMLEqualityChecker too strict
   TUSCANY-1359New SDOUtil: Upper and lower bound on properties where
   'isMany' is true
   TUSCANY-1384SequenceAddOpenTest.setUp() needs to check if type
 exists
   before creating it
   TUSCANY-1545Change default XML encoding to UTF-8.
   TUSCANY-1659SDO DateConversion test cases fail under linux
  
  
   Particular Skills JIRAs
   =
   For anyone with JavaJet experience there's
  
   TUSCANY-1483Static SDO generator: problem with elements named
 internal*
   which would be simple
  
   For someone with maven build experience there
   TUSCANY-257 recently added file Interface2JavaGenerator.java is
 not
   compatible with JDK 1.4
  
   For someone with Grobu-Utils and maven skills there's ...
   TUSCANY-1182Add multi-threaded test case for data object creation
  
   Someone with Axis2 skills
   TUSCANY-1038SDO databinding for Axis2
  (This may be better done within the Axis2 project)
  
   OSGi Skills
   TUSCANY-1293SDO does not work with OSGi
  
  
   Biting off something a bit Bigger
   
   For somebody wanting something a bit bigger to take on there's
  
   TUSCANY-1192Preserve demand created global properties
   TUSCANY-1361New Util: Validation
   TUSCANY-1021CopyHelper and EqualityHelper should handle
 ChangeSummary
   TUSCANY-1817Improve SDO test infrastructure to re-use/re-execute
 most
   dynamic tests as static tests
  
  
   This isn't a full list, and I may post more soon.  Please feel free to
   disagree with my assessment and speak up with your own priorities.
   Better still step forward to help fix something.  I'd be only too
   pleased to help you understand what's required.
  
   Kelvin.
  
   -
   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]
 
 



  1   2   3   4   5   6   7   8   9   10   >