You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Matthew T. Adams" <ma...@xcalia.com> on 2006/01/05 01:42:18 UTC

Help request: initial commit of detachable shopping cart object model, some tests broken

Hi guys,
 
I added some artifacts in the name of JDO-272.  Currently, only application
identity is working, and the JDOHelper test class IsDetached is broken, but
due to project config/setup/classpath issues, which probably has to do with
the fact that I'm introducing a new PC object model, schema, etc.
 
Can someone grab the latest, run
 
maven -o -Djdo.tck.cfglist installSchema
maven -o -Djdo.tck.cfglist=detach.conf runtck.jdori
 
and tell me what's wrong with the config?
 
Thanks,
Matthew
 
Matthew T. Adams
Corporate Technical Advisor & Senior Consultant
Mobile:  +1 253 732 1051
Phone:  +1 206 331 3833
Fax:  +1 815 331 0952
matthew.adams@xcalia.com
P.O. Box 24163
Federal Way, WA  98093
www.xcalia.com <http://www.xcalia.com/> 
 

 
Xcalia makes implementing SOA easy with agile business intermediation
software that combines heterogeneous data with services to easily develop
and deploy transactional composite applications.  Enterprises can quickly
respond to changing business requirements and dramatically reduce the costs
of data access and service integration.
 

Re: Help request: initial commit of detachable shopping cart object model, some tests broken

Posted by Craig L Russell <Cr...@Sun.COM>.
Hi Matthew,

It would help if you would post a patch for 272 and ask for a review  
so that you don't break stuff and let folks see what you are planning...

Craig

On Jan 4, 2006, at 4:42 PM, Matthew T. Adams wrote:

> Hi guys,
>
> I added some artifacts in the name of JDO-272.  Currently, only  
> application identity is working, and the JDOHelper test class  
> IsDetached is broken, but due to project config/setup/classpath  
> issues, which probably has to do with the fact that I'm introducing  
> a new PC object model, schema, etc.
>
> Can someone grab the latest, run
>
> maven -o -Djdo.tck.cfglist installSchema
> maven -o -Djdo.tck.cfglist=detach.conf runtck.jdori
>
> and tell me what's wrong with the config?
>
> Thanks,
> Matthew
>
> Matthew T. Adams
> Corporate Technical Advisor & Senior Consultant
> Mobile:  +1 253 732 1051
> Phone:  +1 206 331 3833
> Fax:  +1 815 331 0952
> matthew.adams@xcalia.com
> P.O. Box 24163
> Federal Way, WA  98093
> www.xcalia.com
>
>
>
> Xcalia makes implementing SOA easy with agile business  
> intermediation software that combines heterogeneous data with  
> services to easily develop and deploy transactional composite  
> applications.  Enterprises can quickly respond to changing business  
> requirements and dramatically reduce the costs of data access and  
> service integration.
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Re: Help request: initial commit of detachable shopping cart object model, some tests broken

Posted by Craig L Russell <Cr...@Sun.COM>.
Looks like this was transient. When I downloaded the latest JPOX this  
error went away.

Craig

On Jan 4, 2006, at 7:23 PM, Craig L Russell wrote:

> Here's my issue. I can't even enhance at all.
>
> [Bruiser:jdo/trunk/tck20] clr% maven -Djdo.tck.cfglist=detach.conf  
> runtck.jdori
> __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0.1
>
> Attempting to download jdo2-api-SNAPSHOT.jar.
> Artifact /apache-jdo/jars/jdo2-api-SNAPSHOT.jar doesn't exists in  
> remote repository, but it exists locally
> Attempting to download jdo2-enhancer-SNAPSHOT.jar.
> Artifact /apache-jdo/jars/jdo2-enhancer-SNAPSHOT.jar doesn't exists  
> in remote repository, but it exists locally
> Attempting to download jdo2-core-SNAPSHOT.jar.
> Artifact /apache-jdo/jars/jdo2-core-SNAPSHOT.jar doesn't exists in  
> remote repository, but it exists locally
> Attempting to download jpox-SNAPSHOT.jar.
> Attempting to download jpox-enhancer-SNAPSHOT.jar.
> Attempting to download jpox-c3p0-SNAPSHOT.jar.
> Attempting to download jpox-dbcp-SNAPSHOT.jar.
> build:start:
>
> setProps:
>     [echo] setProps:
>     [echo] Configurations for this run are "detach.conf". To  
> override this, use -Djdo.tck.cfglist=xxx on the maven command line.
>     [echo] Databases for this run are "derby". To override this,  
> use -Djdo.tck.dblist=xxx on the maven command line.
>     [echo] Identity types for this run are "applicationidentity  
> datastoreidentity". To override this, use - 
> Djdo.tck.identitytypes=xxx on the maven command line.
>
> runtck.jdori:
> java:prepare-filesystem:
>
> java:compile:
>     [echo] Compiling to /Users/clr/apachejdo/jdo/trunk/tck20/target/ 
> classes
>
> testrunner.set:
>     [echo] testrunner.set:
>
> copyprops:
>     [echo] copyprops:
>
> doEnhance.jdori:
> enhance.check:
>
>     [echo] Run JDORI enhancer for applicationidentity
> java:prepare-filesystem:
>
> java:compile:
>     [echo] Compiling to /Users/clr/apachejdo/jdo/trunk/tck20/target/ 
> classes
>
> copyprops:
>     [echo] copyprops:
>
> enhance.prepare:
>
>     [java] Exception in thread "main"  
> java.lang.NoClassDefFoundError: org/jpox/metadata/ClassMetaData
>
> BUILD FAILED
> File...... /Users/clr/apachejdo/jdo/trunk/tck20/maven.xml
> Element... java
> Line...... 539
> Column.... 56
> Java returned: 1
> Total time: 34 seconds
> Finished at: Wed Jan 04 18:28:55 PST 2006
>
> [Bruiser:jdo/trunk/tck20] clr% vi maven.xml
> [Bruiser:jdo/trunk/tck20] clr% vi *.properties
> [Bruiser:jdo/trunk/tck20] clr%
>
> On Jan 4, 2006, at 5:39 PM, Michelle Caisse wrote:
>
>> Hi Matthew,
>>
>> There is an enhancement error with application identity in  
>> org.apache.jdo.tck.pc.shoppingcart.Cart.  Perhaps a cut-and-paste  
>> error in package.jdo? Changing Product to Cart for the oid class  
>> of Cart fixes this problem.  Then it appears that application and  
>> datastore identity have the same issues.  I'm not certain which  
>> problem you were asking for help with.  I'll continue to take a  
>> look at the errors and see what I can find.
>>
>> org.jpox.metadata.InvalidPrimaryKeyException: Class  
>> org.apache.jdo.tck.pc.shoppingcart.Cart has been specified with an  
>> object-id class org.apache.jdo.tck.pc.shoppingcart.Product$Oid  
>> which has a field sku, but this field was not found in Class  
>> org.apache.jdo.tck.pc.shoppingcart.Cart.
>>    at org.jpox.metadata.MetaDataUtils.processPrimaryKeyClass 
>> (MetaDataUtils.java:331)
>>    at org.jpox.metadata.MetaDataUtils.isValidPrimaryKeyClass 
>> (MetaDataUtils.java:266)
>>    at org.jpox.metadata.ClassMetaData.determineObjectIdClass 
>> (ClassMetaData.java:982)
>>    at org.jpox.metadata.ClassMetaData.populate(ClassMetaData.java: 
>> 455)
>>    at org.jpox.metadata.MetaDataManager.populateClassesInFile 
>> (MetaDataManager.java:853)
>>    at org.jpox.metadata.MetaDataManager.loadMetaDataForClass 
>> (MetaDataManager.java:1377)
>>    at org.jpox.metadata.MetaDataManager.getFileMetaDataForClass 
>> (MetaDataManager.java:529)
>>    at  
>> org.jpox.metadata.MetaDataManager.getMetaDataForClassOrInterface 
>> (MetaDataManager.java:467)
>>    at org.jpox.metadata.MetaDataManager.getClassMetaData 
>> (MetaDataManager.java:432)
>>    at org.jpox.metadata.MetaDataManager.getMetaDataForClass 
>> (MetaDataManager.java:363)
>>    at org.jpox.metadata.CollectionMetaData.populate 
>> (CollectionMetaData.java:237)
>>    at org.jpox.metadata.FieldMetaData.populate(FieldMetaData.java: 
>> 858)
>>    at org.jpox.enhancer.metadata.EnhancerFieldMetaData.populate 
>> (EnhancerFieldMetaData.java:280)
>>    at org.jpox.metadata.ClassMetaData.populateFieldMetaData 
>> (ClassMetaData.java:879)
>>    at org.jpox.metadata.ClassMetaData.populate(ClassMetaData.java: 
>> 453)
>>    at org.jpox.metadata.MetaDataManager.populateClassesInFile 
>> (MetaDataManager.java:853)
>>    at  
>> org.jpox.enhancer.metadata.EnhancerMetaDataManager.populateRegistered 
>> File(EnhancerMetaDataManager.java:92)
>>    at org.jpox.enhancer.GeneratorBase.readJDOConfig 
>> (GeneratorBase.java:1344)
>>    at org.jpox.enhancer.JPOXEnhancer.main(JPOXEnhancer.java:254)
>>
>> -- Michelle
>>
>> Matthew T. Adams wrote:
>>
>>> Hi guys,
>>>  I added some artifacts in the name of JDO-272.  Currently, only  
>>> application identity is working, and the JDOHelper test class  
>>> IsDetached is broken, but due to project config/setup/classpath  
>>> issues, which probably has to do with the fact that I'm  
>>> introducing a new PC object model, schema, etc.
>>>  Can someone grab the latest, run
>>>  maven -o -Djdo.tck.cfglist installSchema
>>> maven -o -Djdo.tck.cfglist=detach.conf runtck.jdori
>>>  and tell me what's wrong with the config?
>>>  Thanks,
>>> Matthew
>>>  *Matthew T. Adams*
>>> Corporate Technical Advisor & Senior Consultant
>>> Mobile:  +1 253 732 1051
>>> Phone:  +1 206 331 3833
>>> Fax:  +1 815 331 0952
>>> matthew.adams@xcalia.com <ma...@xcalia.com>
>>> P.O. Box 24163
>>> Federal Way, WA  98093
>>> www.xcalia.com <http://www.xcalia.com/>
>>>   Xcalia makes implementing SOA easy with agile business  
>>> intermediation software that combines heterogeneous data with  
>>> services to easily develop and deploy transactional composite  
>>> applications.  Enterprises can quickly respond to changing  
>>> business requirements and dramatically reduce the costs of data  
>>> access and service integration.
>>>
>>
>>
>
> Craig Russell
> Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
> 408 276-5638 mailto:Craig.Russell@sun.com
> P.S. A good JDO? O, Gasp!
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Re: Help request: initial commit of detachable shopping cart object model, some tests broken

Posted by Michelle Caisse <Mi...@Sun.COM>.
Hi Craig,

That's an issue, all right.  It works for me.  I would try a clean 
install.  If that still doesn't work for you, I will try a clean install.

-- Michelle

Craig L Russell wrote:

> Here's my issue. I can't even enhance at all.
>
> [Bruiser:jdo/trunk/tck20] clr% maven -Djdo.tck.cfglist=detach.conf 
> runtck.jdori
> __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0.1
>
> Attempting to download jdo2-api-SNAPSHOT.jar.
> Artifact /apache-jdo/jars/jdo2-api-SNAPSHOT.jar doesn't exists in 
> remote repository, but it exists locally
> Attempting to download jdo2-enhancer-SNAPSHOT.jar.
> Artifact /apache-jdo/jars/jdo2-enhancer-SNAPSHOT.jar doesn't exists in 
> remote repository, but it exists locally
> Attempting to download jdo2-core-SNAPSHOT.jar.
> Artifact /apache-jdo/jars/jdo2-core-SNAPSHOT.jar doesn't exists in 
> remote repository, but it exists locally
> Attempting to download jpox-SNAPSHOT.jar.
> Attempting to download jpox-enhancer-SNAPSHOT.jar.
> Attempting to download jpox-c3p0-SNAPSHOT.jar.
> Attempting to download jpox-dbcp-SNAPSHOT.jar.
> build:start:
>
> setProps:
>     [echo] setProps:
>     [echo] Configurations for this run are "detach.conf". To override 
> this, use -Djdo.tck.cfglist=xxx on the maven command line.
>     [echo] Databases for this run are "derby". To override this, use 
> -Djdo.tck.dblist=xxx on the maven command line.
>     [echo] Identity types for this run are "applicationidentity 
> datastoreidentity". To override this, use -Djdo.tck.identitytypes=xxx 
> on the maven command line.
>
> runtck.jdori:
> java:prepare-filesystem:
>
> java:compile:
>     [echo] Compiling to 
> /Users/clr/apachejdo/jdo/trunk/tck20/target/classes
>
> testrunner.set:
>     [echo] testrunner.set:
>
> copyprops:
>     [echo] copyprops:
>
> doEnhance.jdori:
> enhance.check:
>
>     [echo] Run JDORI enhancer for applicationidentity
> java:prepare-filesystem:
>
> java:compile:
>     [echo] Compiling to 
> /Users/clr/apachejdo/jdo/trunk/tck20/target/classes
>
> copyprops:
>     [echo] copyprops:
>
> enhance.prepare:
>
>     [java] Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/jpox/metadata/ClassMetaData
>
> BUILD FAILED
> File...... /Users/clr/apachejdo/jdo/trunk/tck20/maven.xml
> Element... java
> Line...... 539
> Column.... 56
> Java returned: 1
> Total time: 34 seconds
> Finished at: Wed Jan 04 18:28:55 PST 2006
>
> [Bruiser:jdo/trunk/tck20] clr% vi maven.xml
> [Bruiser:jdo/trunk/tck20] clr% vi *.properties
> [Bruiser:jdo/trunk/tck20] clr%
>
> On Jan 4, 2006, at 5:39 PM, Michelle Caisse wrote:
>
>> Hi Matthew,
>>
>> There is an enhancement error with application identity in 
>> org.apache.jdo.tck.pc.shoppingcart.Cart.  Perhaps a cut-and-paste 
>> error in package.jdo? Changing Product to Cart for the oid class of 
>> Cart fixes this problem.  Then it appears that application and 
>> datastore identity have the same issues.  I'm not certain which 
>> problem you were asking for help with.  I'll continue to take a look 
>> at the errors and see what I can find.
>>
>> org.jpox.metadata.InvalidPrimaryKeyException: Class 
>> org.apache.jdo.tck.pc.shoppingcart.Cart has been specified with an 
>> object-id class org.apache.jdo.tck.pc.shoppingcart.Product$Oid which 
>> has a field sku, but this field was not found in Class 
>> org.apache.jdo.tck.pc.shoppingcart.Cart.
>>    at 
>> org.jpox.metadata.MetaDataUtils.processPrimaryKeyClass(MetaDataUtils.java:331)
>>    at 
>> org.jpox.metadata.MetaDataUtils.isValidPrimaryKeyClass(MetaDataUtils.java:266)
>>    at 
>> org.jpox.metadata.ClassMetaData.determineObjectIdClass(ClassMetaData.java:982)
>>    at org.jpox.metadata.ClassMetaData.populate(ClassMetaData.java:455)
>>    at 
>> org.jpox.metadata.MetaDataManager.populateClassesInFile(MetaDataManager.java:853)
>>    at 
>> org.jpox.metadata.MetaDataManager.loadMetaDataForClass(MetaDataManager.java:1377)
>>    at 
>> org.jpox.metadata.MetaDataManager.getFileMetaDataForClass(MetaDataManager.java:529)
>>    at 
>> org.jpox.metadata.MetaDataManager.getMetaDataForClassOrInterface(MetaDataManager.java:467)
>>    at 
>> org.jpox.metadata.MetaDataManager.getClassMetaData(MetaDataManager.java:432)
>>    at 
>> org.jpox.metadata.MetaDataManager.getMetaDataForClass(MetaDataManager.java:363)
>>    at 
>> org.jpox.metadata.CollectionMetaData.populate(CollectionMetaData.java:237)
>>    at org.jpox.metadata.FieldMetaData.populate(FieldMetaData.java:858)
>>    at 
>> org.jpox.enhancer.metadata.EnhancerFieldMetaData.populate(EnhancerFieldMetaData.java:280)
>>    at 
>> org.jpox.metadata.ClassMetaData.populateFieldMetaData(ClassMetaData.java:879)
>>    at org.jpox.metadata.ClassMetaData.populate(ClassMetaData.java:453)
>>    at 
>> org.jpox.metadata.MetaDataManager.populateClassesInFile(MetaDataManager.java:853)
>>    at 
>> org.jpox.enhancer.metadata.EnhancerMetaDataManager.populateRegisteredFile(EnhancerMetaDataManager.java:92)
>>    at 
>> org.jpox.enhancer.GeneratorBase.readJDOConfig(GeneratorBase.java:1344)
>>    at org.jpox.enhancer.JPOXEnhancer.main(JPOXEnhancer.java:254)
>>
>> -- Michelle
>>
>> Matthew T. Adams wrote:
>>
>>> Hi guys,
>>>  I added some artifacts in the name of JDO-272.  Currently, only 
>>> application identity is working, and the JDOHelper test class 
>>> IsDetached is broken, but due to project config/setup/classpath 
>>> issues, which probably has to do with the fact that I'm introducing 
>>> a new PC object model, schema, etc.
>>>  Can someone grab the latest, run
>>>  maven -o -Djdo.tck.cfglist installSchema
>>> maven -o -Djdo.tck.cfglist=detach.conf runtck.jdori
>>>  and tell me what's wrong with the config?
>>>  Thanks,
>>> Matthew
>>>  *Matthew T. Adams*
>>> Corporate Technical Advisor & Senior Consultant
>>> Mobile:  +1 253 732 1051
>>> Phone:  +1 206 331 3833
>>> Fax:  +1 815 331 0952
>>> matthew.adams@xcalia.com <ma...@xcalia.com>
>>> P.O. Box 24163
>>> Federal Way, WA  98093
>>> www.xcalia.com <http://www.xcalia.com/>
>>>   Xcalia makes implementing SOA easy with agile business 
>>> intermediation software that combines heterogeneous data with 
>>> services to easily develop and deploy transactional composite 
>>> applications.  Enterprises can quickly respond to changing business 
>>> requirements and dramatically reduce the costs of data access and 
>>> service integration.
>>>
>>>  
>>>
>>
>>
>
> Craig Russell
>
> Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
>
> 408 276-5638 mailto:Craig.Russell@sun.com
>
> P.S. A good JDO? O, Gasp!
>
>


Re: Help request: initial commit of detachable shopping cart object model, some tests broken

Posted by Craig L Russell <Cr...@Sun.COM>.
Here's my issue. I can't even enhance at all.

[Bruiser:jdo/trunk/tck20] clr% maven -Djdo.tck.cfglist=detach.conf  
runtck.jdori
__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.1

Attempting to download jdo2-api-SNAPSHOT.jar.
Artifact /apache-jdo/jars/jdo2-api-SNAPSHOT.jar doesn't exists in  
remote repository, but it exists locally
Attempting to download jdo2-enhancer-SNAPSHOT.jar.
Artifact /apache-jdo/jars/jdo2-enhancer-SNAPSHOT.jar doesn't exists  
in remote repository, but it exists locally
Attempting to download jdo2-core-SNAPSHOT.jar.
Artifact /apache-jdo/jars/jdo2-core-SNAPSHOT.jar doesn't exists in  
remote repository, but it exists locally
Attempting to download jpox-SNAPSHOT.jar.
Attempting to download jpox-enhancer-SNAPSHOT.jar.
Attempting to download jpox-c3p0-SNAPSHOT.jar.
Attempting to download jpox-dbcp-SNAPSHOT.jar.
build:start:

setProps:
     [echo] setProps:
     [echo] Configurations for this run are "detach.conf". To  
override this, use -Djdo.tck.cfglist=xxx on the maven command line.
     [echo] Databases for this run are "derby". To override this, use  
-Djdo.tck.dblist=xxx on the maven command line.
     [echo] Identity types for this run are "applicationidentity  
datastoreidentity". To override this, use -Djdo.tck.identitytypes=xxx  
on the maven command line.

runtck.jdori:
java:prepare-filesystem:

java:compile:
     [echo] Compiling to /Users/clr/apachejdo/jdo/trunk/tck20/target/ 
classes

testrunner.set:
     [echo] testrunner.set:

copyprops:
     [echo] copyprops:

doEnhance.jdori:
enhance.check:

     [echo] Run JDORI enhancer for applicationidentity
java:prepare-filesystem:

java:compile:
     [echo] Compiling to /Users/clr/apachejdo/jdo/trunk/tck20/target/ 
classes

copyprops:
     [echo] copyprops:

enhance.prepare:

     [java] Exception in thread "main"  
java.lang.NoClassDefFoundError: org/jpox/metadata/ClassMetaData

BUILD FAILED
File...... /Users/clr/apachejdo/jdo/trunk/tck20/maven.xml
Element... java
Line...... 539
Column.... 56
Java returned: 1
Total time: 34 seconds
Finished at: Wed Jan 04 18:28:55 PST 2006

[Bruiser:jdo/trunk/tck20] clr% vi maven.xml
[Bruiser:jdo/trunk/tck20] clr% vi *.properties
[Bruiser:jdo/trunk/tck20] clr%

On Jan 4, 2006, at 5:39 PM, Michelle Caisse wrote:

> Hi Matthew,
>
> There is an enhancement error with application identity in  
> org.apache.jdo.tck.pc.shoppingcart.Cart.  Perhaps a cut-and-paste  
> error in package.jdo? Changing Product to Cart for the oid class of  
> Cart fixes this problem.  Then it appears that application and  
> datastore identity have the same issues.  I'm not certain which  
> problem you were asking for help with.  I'll continue to take a  
> look at the errors and see what I can find.
>
> org.jpox.metadata.InvalidPrimaryKeyException: Class  
> org.apache.jdo.tck.pc.shoppingcart.Cart has been specified with an  
> object-id class org.apache.jdo.tck.pc.shoppingcart.Product$Oid  
> which has a field sku, but this field was not found in Class  
> org.apache.jdo.tck.pc.shoppingcart.Cart.
>    at org.jpox.metadata.MetaDataUtils.processPrimaryKeyClass 
> (MetaDataUtils.java:331)
>    at org.jpox.metadata.MetaDataUtils.isValidPrimaryKeyClass 
> (MetaDataUtils.java:266)
>    at org.jpox.metadata.ClassMetaData.determineObjectIdClass 
> (ClassMetaData.java:982)
>    at org.jpox.metadata.ClassMetaData.populate(ClassMetaData.java:455)
>    at org.jpox.metadata.MetaDataManager.populateClassesInFile 
> (MetaDataManager.java:853)
>    at org.jpox.metadata.MetaDataManager.loadMetaDataForClass 
> (MetaDataManager.java:1377)
>    at org.jpox.metadata.MetaDataManager.getFileMetaDataForClass 
> (MetaDataManager.java:529)
>    at  
> org.jpox.metadata.MetaDataManager.getMetaDataForClassOrInterface 
> (MetaDataManager.java:467)
>    at org.jpox.metadata.MetaDataManager.getClassMetaData 
> (MetaDataManager.java:432)
>    at org.jpox.metadata.MetaDataManager.getMetaDataForClass 
> (MetaDataManager.java:363)
>    at org.jpox.metadata.CollectionMetaData.populate 
> (CollectionMetaData.java:237)
>    at org.jpox.metadata.FieldMetaData.populate(FieldMetaData.java:858)
>    at org.jpox.enhancer.metadata.EnhancerFieldMetaData.populate 
> (EnhancerFieldMetaData.java:280)
>    at org.jpox.metadata.ClassMetaData.populateFieldMetaData 
> (ClassMetaData.java:879)
>    at org.jpox.metadata.ClassMetaData.populate(ClassMetaData.java:453)
>    at org.jpox.metadata.MetaDataManager.populateClassesInFile 
> (MetaDataManager.java:853)
>    at  
> org.jpox.enhancer.metadata.EnhancerMetaDataManager.populateRegisteredF 
> ile(EnhancerMetaDataManager.java:92)
>    at org.jpox.enhancer.GeneratorBase.readJDOConfig 
> (GeneratorBase.java:1344)
>    at org.jpox.enhancer.JPOXEnhancer.main(JPOXEnhancer.java:254)
>
> -- Michelle
>
> Matthew T. Adams wrote:
>
>> Hi guys,
>>  I added some artifacts in the name of JDO-272.  Currently, only  
>> application identity is working, and the JDOHelper test class  
>> IsDetached is broken, but due to project config/setup/classpath  
>> issues, which probably has to do with the fact that I'm  
>> introducing a new PC object model, schema, etc.
>>  Can someone grab the latest, run
>>  maven -o -Djdo.tck.cfglist installSchema
>> maven -o -Djdo.tck.cfglist=detach.conf runtck.jdori
>>  and tell me what's wrong with the config?
>>  Thanks,
>> Matthew
>>  *Matthew T. Adams*
>> Corporate Technical Advisor & Senior Consultant
>> Mobile:  +1 253 732 1051
>> Phone:  +1 206 331 3833
>> Fax:  +1 815 331 0952
>> matthew.adams@xcalia.com <ma...@xcalia.com>
>> P.O. Box 24163
>> Federal Way, WA  98093
>> www.xcalia.com <http://www.xcalia.com/>
>>   Xcalia makes implementing SOA easy with agile business  
>> intermediation software that combines heterogeneous data with  
>> services to easily develop and deploy transactional composite  
>> applications.  Enterprises can quickly respond to changing  
>> business requirements and dramatically reduce the costs of data  
>> access and service integration.
>>
>
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Re: Help request: initial commit of detachable shopping cart object model, some tests broken

Posted by Michelle Caisse <Mi...@Sun.COM>.
Hi Matthew,

There is an enhancement error with application identity in 
org.apache.jdo.tck.pc.shoppingcart.Cart.  Perhaps a cut-and-paste error 
in package.jdo? Changing Product to Cart for the oid class of Cart fixes 
this problem.  Then it appears that application and datastore identity 
have the same issues.  I'm not certain which problem you were asking for 
help with.  I'll continue to take a look at the errors and see what I 
can find.

org.jpox.metadata.InvalidPrimaryKeyException: Class 
org.apache.jdo.tck.pc.shoppingcart.Cart has been specified with an 
object-id class org.apache.jdo.tck.pc.shoppingcart.Product$Oid which has 
a field sku, but this field was not found in Class 
org.apache.jdo.tck.pc.shoppingcart.Cart.
    at 
org.jpox.metadata.MetaDataUtils.processPrimaryKeyClass(MetaDataUtils.java:331)
    at 
org.jpox.metadata.MetaDataUtils.isValidPrimaryKeyClass(MetaDataUtils.java:266)
    at 
org.jpox.metadata.ClassMetaData.determineObjectIdClass(ClassMetaData.java:982)
    at org.jpox.metadata.ClassMetaData.populate(ClassMetaData.java:455)
    at 
org.jpox.metadata.MetaDataManager.populateClassesInFile(MetaDataManager.java:853)
    at 
org.jpox.metadata.MetaDataManager.loadMetaDataForClass(MetaDataManager.java:1377)
    at 
org.jpox.metadata.MetaDataManager.getFileMetaDataForClass(MetaDataManager.java:529)
    at 
org.jpox.metadata.MetaDataManager.getMetaDataForClassOrInterface(MetaDataManager.java:467)
    at 
org.jpox.metadata.MetaDataManager.getClassMetaData(MetaDataManager.java:432)
    at 
org.jpox.metadata.MetaDataManager.getMetaDataForClass(MetaDataManager.java:363)
    at 
org.jpox.metadata.CollectionMetaData.populate(CollectionMetaData.java:237)
    at org.jpox.metadata.FieldMetaData.populate(FieldMetaData.java:858)
    at 
org.jpox.enhancer.metadata.EnhancerFieldMetaData.populate(EnhancerFieldMetaData.java:280)
    at 
org.jpox.metadata.ClassMetaData.populateFieldMetaData(ClassMetaData.java:879)
    at org.jpox.metadata.ClassMetaData.populate(ClassMetaData.java:453)
    at 
org.jpox.metadata.MetaDataManager.populateClassesInFile(MetaDataManager.java:853)
    at 
org.jpox.enhancer.metadata.EnhancerMetaDataManager.populateRegisteredFile(EnhancerMetaDataManager.java:92)
    at 
org.jpox.enhancer.GeneratorBase.readJDOConfig(GeneratorBase.java:1344)
    at org.jpox.enhancer.JPOXEnhancer.main(JPOXEnhancer.java:254)

-- Michelle

Matthew T. Adams wrote:

> Hi guys,
>  
> I added some artifacts in the name of JDO-272.  Currently, only 
> application identity is working, and the JDOHelper test class 
> IsDetached is broken, but due to project config/setup/classpath 
> issues, which probably has to do with the fact that I'm introducing a 
> new PC object model, schema, etc.
>  
> Can someone grab the latest, run
>  
> maven -o -Djdo.tck.cfglist installSchema
> maven -o -Djdo.tck.cfglist=detach.conf runtck.jdori
>  
> and tell me what's wrong with the config?
>  
> Thanks,
> Matthew
>  
> *Matthew T. Adams*
> Corporate Technical Advisor & Senior Consultant
> Mobile:  +1 253 732 1051
> Phone:  +1 206 331 3833
> Fax:  +1 815 331 0952
> matthew.adams@xcalia.com <ma...@xcalia.com>
> P.O. Box 24163
> Federal Way, WA  98093
> www.xcalia.com <http://www.xcalia.com/>
>  
>  
> Xcalia makes implementing SOA easy with agile business intermediation 
> software that combines heterogeneous data with services to easily 
> develop and deploy transactional composite applications.  Enterprises 
> can quickly respond to changing business requirements and dramatically 
> reduce the costs of data access and service integration.
>  



Re: Help request: initial commit of detachable shopping cart object model, some tests broken

Posted by Michelle Caisse <Mi...@Sun.COM>.
Yes, you are right, Michael.  That was the intent.  For any invocation
of maven.xml, any given schema is loaded only once.

-- Michelle

Michael Bouschen wrote On 01/05/06 11:36,:
> Hi Andy,
> 
> I'm open for this change. What I'm not sure about is whether we have an 
> issue with multiple loading of the same schema. I read the installSchema 
> goal in maven.xml that it uniques the schema files before loading. Am I 
> right?
> 
> Regards Michael
> 
> 
>>Hi Michael,
>>
>> 
>>
>>
>>>It looks like the attach/detach tests should have their own
>>>configuration with their own sql files etc.
>>>   
>>>
>>
>>I'll prod this further since we're talking of attach/detach being in its own 
>>config. 
>>Why is everything dumped into "alltests.conf" ? 
>>Why is there not "jdoql.conf" ? 
>>Why is there not "sql.conf" ? 
>>Why is there not "pmf.conf" ? 
>>Why is there not "pm.conf" ?
>>
>>With that separation you have a better judge of where a JDO implementation is 
>>deficient - maybe just the JDOQL config fails for example, whereas at the 
>>moment "alltests" fails on some tests, but it says nothing about which 
>>without looking at the details.
>>
>> 
>>
> 
> 
> 


Re: Help request: initial commit of detachable shopping cart object model, some tests broken

Posted by Craig L Russell <Cr...@Sun.COM>.
Hi,

Andy brought up this question earlier and I think it deserves a  
discussion.

How about we talk about it on tomorrow's conference call?

Craig

On Jan 5, 2006, at 11:36 AM, Michael Bouschen wrote:

> Hi Andy,
>
> I'm open for this change. What I'm not sure about is whether we  
> have an issue with multiple loading of the same schema. I read the  
> installSchema goal in maven.xml that it uniques the schema files  
> before loading. Am I right?
>
> Regards Michael
>
>> Hi Michael,
>>
>>
>>> It looks like the attach/detach tests should have their own
>>> configuration with their own sql files etc.
>>>
>>
>> I'll prod this further since we're talking of attach/detach being  
>> in its own config. Why is everything dumped into "alltests.conf" ?  
>> Why is there not "jdoql.conf" ? Why is there not "sql.conf" ? Why  
>> is there not "pmf.conf" ? Why is there not "pm.conf" ?
>>
>> With that separation you have a better judge of where a JDO  
>> implementation is deficient - maybe just the JDOQL config fails  
>> for example, whereas at the moment "alltests" fails on some tests,  
>> but it says nothing about which without looking at the details.
>>
>>
>
>
> -- 
> Michael Bouschen		Tech@Spree Engineering GmbH
> mailto:mbo.tech@spree.de	http://www.tech.spree.de/
> Tel.:++49/30/235 520-33		Buelowstr. 66			
> Fax.:++49/30/2175 2012		D-10783 Berlin			
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Re: Help request: initial commit of detachable shopping cart object model, some tests broken

Posted by Michael Bouschen <mb...@spree.de>.
Hi Andy,

I'm open for this change. What I'm not sure about is whether we have an 
issue with multiple loading of the same schema. I read the installSchema 
goal in maven.xml that it uniques the schema files before loading. Am I 
right?

Regards Michael

>Hi Michael,
>
>  
>
>>It looks like the attach/detach tests should have their own
>>configuration with their own sql files etc.
>>    
>>
>
>I'll prod this further since we're talking of attach/detach being in its own 
>config. 
>Why is everything dumped into "alltests.conf" ? 
>Why is there not "jdoql.conf" ? 
>Why is there not "sql.conf" ? 
>Why is there not "pmf.conf" ? 
>Why is there not "pm.conf" ?
>
>With that separation you have a better judge of where a JDO implementation is 
>deficient - maybe just the JDOQL config fails for example, whereas at the 
>moment "alltests" fails on some tests, but it says nothing about which 
>without looking at the details.
>
>  
>


-- 
Michael Bouschen		Tech@Spree Engineering GmbH
mailto:mbo.tech@spree.de	http://www.tech.spree.de/
Tel.:++49/30/235 520-33		Buelowstr. 66			
Fax.:++49/30/2175 2012		D-10783 Berlin			


Re: Help request: initial commit of detachable shopping cart object model, some tests broken

Posted by Andy Jefferson <an...@jpox.org>.
Hi Michael,

> It looks like the attach/detach tests should have their own
> configuration with their own sql files etc.

I'll prod this further since we're talking of attach/detach being in its own 
config. 
Why is everything dumped into "alltests.conf" ? 
Why is there not "jdoql.conf" ? 
Why is there not "sql.conf" ? 
Why is there not "pmf.conf" ? 
Why is there not "pm.conf" ?

With that separation you have a better judge of where a JDO implementation is 
deficient - maybe just the JDOQL config fails for example, whereas at the 
moment "alltests" fails on some tests, but it says nothing about which 
without looking at the details.

-- 
Andy

Re: Help request: initial commit of detachable shopping cart object model, some tests broken

Posted by Craig L Russell <Cr...@Sun.COM>.
Hi Matthew,

On Jan 5, 2006, at 3:56 PM, Matthew T. Adams wrote:

> I don't know why.  I think I started a long time ago with a simple
> detach.conf, and we had decided on one of the conference calls that  
> we would
> a separate shopping cart object model that was easy to detach.  I  
> must have
> assumed "detach.conf && 'separate object model' == separate schema"  
> without
> even realizing it.
>
> It all works now, but I guess in the process, Andy suggested that  
> we adopt
> this approach more broadly.

I don't think so. As I understand Andy's request, it is to define  
multiple xxx.conf configurations and run them all instead of running  
one giant alltests.conf. That way, it's easier to tell that an  
implementation failed the "pmf.conf" which might make things easier  
to dispatch to the responsible engineer. On the other hand, the  
clutter around the individual tests doesn't help understanding of the  
problem.

Craig

>
> --matthew
>
> -----Original Message-----
> From: Craig.Russell@Sun.COM [mailto:Craig.Russell@Sun.COM]
> Sent: Thursday, January 05, 2006 11:09 AM
> To: jdo-dev@db.apache.org
> Subject: Re: Help request: initial commit of detachable shopping  
> cart object
> model, some tests broken
>
>
> Hi,
>
> Why should the detach tests have their own schema?
>
> Craig
>
> On Jan 5, 2006, at 10:53 AM, Michael Bouschen wrote:
>
>
> Hi Matthew,
>
> maybe this has been said before.
>
> It looks like the attach/detach tests should have their own  
> configuration
> with their own sql files etc. Then you should remove the test classes
> IsDetached, SetDetachAllOnCommit and GetDetachAllOnCommit from
> alltests.conf. All the tests from alltests.conf are executed  
> against the
> schema defined in schema.sql, but this schema does not include the  
> table for
> your pc classes. The only thing that is missing is including  
> detach.conf
> into configurations.list. Then the attach/detach test cases are  
> executed as
> part of the configuration detach.conf.
>
> As an alternative the attach/detach tests could be part of  
> alltests.conf.
> Then you need to include your schema into schema.sql and there is  
> no need
> for a separate detach.conf.
>
> In any case we do not need the detach.conf file under test/conf.
>
> Regards Michael
>
>
> Hi guys,
> Sorry about not emailing a patch before committing; I didn't know  
> that was
> the protocol.  I wasn't too worried, however, since much of this  
> was new
> code that didn't affect anyone else.
> I have already added the missing package-derby8.orm files for both  
> app and
> ds identity.  I just forgot to include them in my svn add.
> I'm still having problems getting things to work, but I've done a  
> fresh
> build and will look again with your collective input.  I'll let you  
> know
> what I find.  Thanks for your help... <sheepish grin>
> --matthew
>
> -----Original Message-----
> From: Craig.Russell@Sun.COM [mailto:Craig.Russell@Sun.COM] Sent:  
> Wednesday,
> January 04, 2006 8:16 PM
> To: jdo-dev@db.apache.org
> Subject: Re: Help request: initial commit of detachable shopping  
> cart object
> model, some tests broken
>
>
> Hi Matthew,
> You haven't defined the schema for the shopping cart tables.
>
> Probably the place to define the schema is in the schema0 where  
> everything
> else is defined.
>
> Craig
>
> On Jan 4, 2006, at 7:50 PM, Michelle Caisse wrote:
>
>
> Matthew,
>
> You are missing package-derby8.orm for the
> org.apache.jdo.tck.pc.shoppingcart package.  See
> http://wiki.apache.org/jdo/TechnologyCompatibilityKit#Cfg.  This  
> may be the
> cause of your problem.
>
> -- Michelle
>
> Matthew T. Adams wrote:
>
>
> Hi guys,
> I added some artifacts in the name of JDO-272.  Currently, only  
> application
> identity is working, and the JDOHelper test class IsDetached is  
> broken, but
> due to project config/setup/classpath issues, which probably has to  
> do with
> the fact that I'm introducing a new PC object model, schema, etc.
> Can someone grab the latest, run
> maven -o -Djdo.tck.cfglist installSchema
> maven -o -Djdo.tck.cfglist=detach.conf runtck.jdori
> and tell me what's wrong with the config?
> Thanks,
> Matthew
> *Matthew T. Adams*
> Corporate Technical Advisor & Senior Consultant
> Mobile:  +1 253 732 1051
> Phone:  +1 206 331 3833
> Fax:  +1 815 331 0952
> matthew.adams@xcalia.com <ma...@xcalia.com>
> P.O. Box 24163
> Federal Way, WA  98093
> www.xcalia.com <http://www.xcalia.com/>
>  Xcalia makes implementing SOA easy with agile business intermediation
> software that combines heterogeneous data with services to easily  
> develop
> and deploy transactional composite applications.  Enterprises can  
> quickly
> respond to changing business requirements and dramatically reduce  
> the costs
> of data access and service integration.
>
>
>
>
>
>
> Craig Russell
>
> Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
>
> 408 276-5638 mailto:Craig.Russell@sun.com
>
> P.S. A good JDO? O, Gasp!
>
>
>
>
>
>
>
>
>
> -- 
> Michael Bouschen Tech@Spree Engineering GmbH
> mailto:mbo.tech@spree.de http://www.tech.spree.de/
> Tel.:++49/30/235 520-33 Buelowstr. 66
> Fax.:++49/30/2175 2012 D-10783 Berlin
>
>
>
> Craig Russell
>
> Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
>
> 408 276-5638 mailto:Craig.Russell@sun.com
>
> P.S. A good JDO? O, Gasp!
>
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


RE: Help request: initial commit of detachable shopping cart object model, some tests broken

Posted by "Matthew T. Adams" <ma...@xcalia.com>.
I don't know why.  I think I started a long time ago with a simple
detach.conf, and we had decided on one of the conference calls that we would
a separate shopping cart object model that was easy to detach.  I must have
assumed "detach.conf && 'separate object model' == separate schema" without
even realizing it.
 
It all works now, but I guess in the process, Andy suggested that we adopt
this approach more broadly.
 
--matthew

-----Original Message-----
From: Craig.Russell@Sun.COM [mailto:Craig.Russell@Sun.COM] 
Sent: Thursday, January 05, 2006 11:09 AM
To: jdo-dev@db.apache.org
Subject: Re: Help request: initial commit of detachable shopping cart object
model, some tests broken


Hi, 

Why should the detach tests have their own schema?

Craig

On Jan 5, 2006, at 10:53 AM, Michael Bouschen wrote:


Hi Matthew,

maybe this has been said before.

It looks like the attach/detach tests should have their own configuration
with their own sql files etc. Then you should remove the test classes
IsDetached, SetDetachAllOnCommit and GetDetachAllOnCommit from
alltests.conf. All the tests from alltests.conf are executed against the
schema defined in schema.sql, but this schema does not include the table for
your pc classes. The only thing that is missing is including detach.conf
into configurations.list. Then the attach/detach test cases are executed as
part of the configuration detach.conf.

As an alternative the attach/detach tests could be part of alltests.conf.
Then you need to include your schema into schema.sql and there is no need
for a separate detach.conf.

In any case we do not need the detach.conf file under test/conf.

Regards Michael


Hi guys,
Sorry about not emailing a patch before committing; I didn't know that was
the protocol.  I wasn't too worried, however, since much of this was new
code that didn't affect anyone else.
I have already added the missing package-derby8.orm files for both app and
ds identity.  I just forgot to include them in my svn add.
I'm still having problems getting things to work, but I've done a fresh
build and will look again with your collective input.  I'll let you know
what I find.  Thanks for your help... <sheepish grin>
--matthew

-----Original Message-----
From: Craig.Russell@Sun.COM [mailto:Craig.Russell@Sun.COM] Sent: Wednesday,
January 04, 2006 8:16 PM
To: jdo-dev@db.apache.org
Subject: Re: Help request: initial commit of detachable shopping cart object
model, some tests broken


Hi Matthew, 
You haven't defined the schema for the shopping cart tables.

Probably the place to define the schema is in the schema0 where everything
else is defined.

Craig

On Jan 4, 2006, at 7:50 PM, Michelle Caisse wrote:


Matthew,

You are missing package-derby8.orm for the
org.apache.jdo.tck.pc.shoppingcart package.  See
http://wiki.apache.org/jdo/TechnologyCompatibilityKit#Cfg.  This may be the
cause of your problem.

-- Michelle

Matthew T. Adams wrote:


Hi guys,
I added some artifacts in the name of JDO-272.  Currently, only application
identity is working, and the JDOHelper test class IsDetached is broken, but
due to project config/setup/classpath issues, which probably has to do with
the fact that I'm introducing a new PC object model, schema, etc.
Can someone grab the latest, run
maven -o -Djdo.tck.cfglist installSchema
maven -o -Djdo.tck.cfglist=detach.conf runtck.jdori
and tell me what's wrong with the config?
Thanks,
Matthew
*Matthew T. Adams*
Corporate Technical Advisor & Senior Consultant
Mobile:  +1 253 732 1051
Phone:  +1 206 331 3833
Fax:  +1 815 331 0952
matthew.adams@xcalia.com <ma...@xcalia.com>
P.O. Box 24163
Federal Way, WA  98093
www.xcalia.com <http://www.xcalia.com/>
 Xcalia makes implementing SOA easy with agile business intermediation
software that combines heterogeneous data with services to easily develop
and deploy transactional composite applications.  Enterprises can quickly
respond to changing business requirements and dramatically reduce the costs
of data access and service integration.






Craig Russell

Architect, Sun Java Enterprise System http://java.sun.com/products/jdo

408 276-5638 mailto:Craig.Russell@sun.com

P.S. A good JDO? O, Gasp!





 



-- 
Michael Bouschen Tech@Spree Engineering GmbH
mailto:mbo.tech@spree.de http://www.tech.spree.de/
Tel.:++49/30/235 520-33 Buelowstr. 66 
Fax.:++49/30/2175 2012 D-10783 Berlin 



Craig Russell

Architect, Sun Java Enterprise System http://java.sun.com/products/jdo

408 276-5638 mailto:Craig.Russell@sun.com

P.S. A good JDO? O, Gasp!



Re: Help request: initial commit of detachable shopping cart object model, some tests broken

Posted by Craig L Russell <Cr...@Sun.COM>.
Hi,

Why should the detach tests have their own schema?

Craig

On Jan 5, 2006, at 10:53 AM, Michael Bouschen wrote:

> Hi Matthew,
>
> maybe this has been said before.
>
> It looks like the attach/detach tests should have their own  
> configuration with their own sql files etc. Then you should remove  
> the test classes IsDetached, SetDetachAllOnCommit and  
> GetDetachAllOnCommit from alltests.conf. All the tests from  
> alltests.conf are executed against the schema defined in  
> schema.sql, but this schema does not include the table for your pc  
> classes. The only thing that is missing is including detach.conf  
> into configurations.list. Then the attach/detach test cases are  
> executed as part of the configuration detach.conf.
>
> As an alternative the attach/detach tests could be part of  
> alltests.conf. Then you need to include your schema into schema.sql  
> and there is no need for a separate detach.conf.
>
> In any case we do not need the detach.conf file under test/conf.
>
> Regards Michael
>
>> Hi guys,
>> Sorry about not emailing a patch before committing; I didn't know  
>> that was
>> the protocol.  I wasn't too worried, however, since much of this  
>> was new
>> code that didn't affect anyone else.
>> I have already added the missing package-derby8.orm files for both  
>> app and
>> ds identity.  I just forgot to include them in my svn add.
>> I'm still having problems getting things to work, but I've done a  
>> fresh
>> build and will look again with your collective input.  I'll let  
>> you know
>> what I find.  Thanks for your help... <sheepish grin>
>> --matthew
>>
>> -----Original Message-----
>> From: Craig.Russell@Sun.COM [mailto:Craig.Russell@Sun.COM] Sent:  
>> Wednesday, January 04, 2006 8:16 PM
>> To: jdo-dev@db.apache.org
>> Subject: Re: Help request: initial commit of detachable shopping  
>> cart object
>> model, some tests broken
>>
>>
>> Hi Matthew,
>> You haven't defined the schema for the shopping cart tables.
>>
>> Probably the place to define the schema is in the schema0 where  
>> everything
>> else is defined.
>>
>> Craig
>>
>> On Jan 4, 2006, at 7:50 PM, Michelle Caisse wrote:
>>
>>
>> Matthew,
>>
>> You are missing package-derby8.orm for the
>> org.apache.jdo.tck.pc.shoppingcart package.  See
>> http://wiki.apache.org/jdo/TechnologyCompatibilityKit#Cfg.  This  
>> may be the
>> cause of your problem.
>>
>> -- Michelle
>>
>> Matthew T. Adams wrote:
>>
>>
>> Hi guys,
>> I added some artifacts in the name of JDO-272.  Currently, only  
>> application
>> identity is working, and the JDOHelper test class IsDetached is  
>> broken, but
>> due to project config/setup/classpath issues, which probably has  
>> to do with
>> the fact that I'm introducing a new PC object model, schema, etc.
>> Can someone grab the latest, run
>> maven -o -Djdo.tck.cfglist installSchema
>> maven -o -Djdo.tck.cfglist=detach.conf runtck.jdori
>> and tell me what's wrong with the config?
>> Thanks,
>> Matthew
>> *Matthew T. Adams*
>> Corporate Technical Advisor & Senior Consultant
>> Mobile:  +1 253 732 1051
>> Phone:  +1 206 331 3833
>> Fax:  +1 815 331 0952
>> matthew.adams@xcalia.com <ma...@xcalia.com>
>> P.O. Box 24163
>> Federal Way, WA  98093
>> www.xcalia.com <http://www.xcalia.com/>
>>  Xcalia makes implementing SOA easy with agile business  
>> intermediation
>> software that combines heterogeneous data with services to easily  
>> develop
>> and deploy transactional composite applications.  Enterprises can  
>> quickly
>> respond to changing business requirements and dramatically reduce  
>> the costs
>> of data access and service integration.
>>
>>
>>
>>
>>
>>
>> Craig Russell
>>
>> Architect, Sun Java Enterprise System http://java.sun.com/products/ 
>> jdo
>>
>> 408 276-5638 mailto:Craig.Russell@sun.com
>>
>> P.S. A good JDO? O, Gasp!
>>
>>
>>
>>
>
>
> -- 
> Michael Bouschen		Tech@Spree Engineering GmbH
> mailto:mbo.tech@spree.de	http://www.tech.spree.de/
> Tel.:++49/30/235 520-33		Buelowstr. 66			
> Fax.:++49/30/2175 2012		D-10783 Berlin			
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Fixed (was: RE: Help request: initial commit of detachable shopping cart object model, some tests broken)

Posted by "Matthew T. Adams" <ma...@xcalia.com>.
I've found and fixed all errors.  Thanks to everyone for their help.  Part
of it was stupid programmer error, part was stupid configurer error (note
that I played both of those roles :) ).

My next tasks will be to just crank on more detachment tests.

--matthew

>-----Original Message-----
>From: Michael Bouschen [mailto:mbo.tech@spree.de] 
>Sent: Thursday, January 05, 2006 10:53 AM
>To: jdo-dev@db.apache.org
>Subject: Re: Help request: initial commit of detachable 
>shopping cart object model, some tests broken
>
>
>Hi Matthew,
>
>maybe this has been said before.
>
>It looks like the attach/detach tests should have their own 
>configuration with their own sql files etc. Then you should remove the 
>test classes IsDetached, SetDetachAllOnCommit and GetDetachAllOnCommit 
>from alltests.conf. All the tests from alltests.conf are executed 
>against the schema defined in schema.sql, but this schema does not 
>include the table for your pc classes. The only thing that is 
>missing is 
>including detach.conf into configurations.list. Then the attach/detach 
>test cases are executed as part of the configuration detach.conf.
>
>As an alternative the attach/detach tests could be part of 
>alltests.conf. Then you need to include your schema into 
>schema.sql and 
>there is no need for a separate detach.conf.
>
>In any case we do not need the detach.conf file under test/conf.
>
>Regards Michael
>
>>Hi guys,
>> 
>>Sorry about not emailing a patch before committing; I didn't 
>know that was
>>the protocol.  I wasn't too worried, however, since much of 
>this was new
>>code that didn't affect anyone else.
>> 
>>I have already added the missing package-derby8.orm files for 
>both app and
>>ds identity.  I just forgot to include them in my svn add.
>> 
>>I'm still having problems getting things to work, but I've 
>done a fresh
>>build and will look again with your collective input.  I'll 
>let you know
>>what I find.  Thanks for your help... <sheepish grin>
>> 
>>--matthew
>>
>>-----Original Message-----
>>From: Craig.Russell@Sun.COM [mailto:Craig.Russell@Sun.COM] 
>>Sent: Wednesday, January 04, 2006 8:16 PM
>>To: jdo-dev@db.apache.org
>>Subject: Re: Help request: initial commit of detachable 
>shopping cart object
>>model, some tests broken
>>
>>
>>Hi Matthew, 
>>
>>You haven't defined the schema for the shopping cart tables.
>>
>>Probably the place to define the schema is in the schema0 
>where everything
>>else is defined.
>>
>>Craig
>>
>>On Jan 4, 2006, at 7:50 PM, Michelle Caisse wrote:
>>
>>
>>Matthew,
>>
>>You are missing package-derby8.orm for the
>>org.apache.jdo.tck.pc.shoppingcart package.  See
>>http://wiki.apache.org/jdo/TechnologyCompatibilityKit#Cfg.  
>This may be the
>>cause of your problem.
>>
>>-- Michelle
>>
>>Matthew T. Adams wrote:
>>
>>
>>Hi guys,
>> I added some artifacts in the name of JDO-272.  Currently, 
>only application
>>identity is working, and the JDOHelper test class IsDetached 
>is broken, but
>>due to project config/setup/classpath issues, which probably 
>has to do with
>>the fact that I'm introducing a new PC object model, schema, etc.
>> Can someone grab the latest, run
>> maven -o -Djdo.tck.cfglist installSchema
>>maven -o -Djdo.tck.cfglist=detach.conf runtck.jdori
>> and tell me what's wrong with the config?
>> Thanks,
>>Matthew
>> *Matthew T. Adams*
>>Corporate Technical Advisor & Senior Consultant
>>Mobile:  +1 253 732 1051
>>Phone:  +1 206 331 3833
>>Fax:  +1 815 331 0952
>>matthew.adams@xcalia.com <ma...@xcalia.com>
>>P.O. Box 24163
>>Federal Way, WA  98093
>>www.xcalia.com <http://www.xcalia.com/>
>>  Xcalia makes implementing SOA easy with agile business 
>intermediation
>>software that combines heterogeneous data with services to 
>easily develop
>>and deploy transactional composite applications.  Enterprises 
>can quickly
>>respond to changing business requirements and dramatically 
>reduce the costs
>>of data access and service integration.
>>
>>
>> 
>>
>>
>>
>>
>>Craig Russell
>>
>>Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
>>
>>408 276-5638 mailto:Craig.Russell@sun.com
>>
>>P.S. A good JDO? O, Gasp!
>>
>>
>>
>>  
>>
>
>
>-- 
>Michael Bouschen		Tech@Spree Engineering GmbH
>mailto:mbo.tech@spree.de	http://www.tech.spree.de/
>Tel.:++49/30/235 520-33		Buelowstr. 66			
>Fax.:++49/30/2175 2012		D-10783 Berlin			
>
>



Re: Help request: initial commit of detachable shopping cart object model, some tests broken

Posted by Michael Bouschen <mb...@spree.de>.
Hi Matthew,

maybe this has been said before.

It looks like the attach/detach tests should have their own 
configuration with their own sql files etc. Then you should remove the 
test classes IsDetached, SetDetachAllOnCommit and GetDetachAllOnCommit 
from alltests.conf. All the tests from alltests.conf are executed 
against the schema defined in schema.sql, but this schema does not 
include the table for your pc classes. The only thing that is missing is 
including detach.conf into configurations.list. Then the attach/detach 
test cases are executed as part of the configuration detach.conf.

As an alternative the attach/detach tests could be part of 
alltests.conf. Then you need to include your schema into schema.sql and 
there is no need for a separate detach.conf.

In any case we do not need the detach.conf file under test/conf.

Regards Michael

>Hi guys,
> 
>Sorry about not emailing a patch before committing; I didn't know that was
>the protocol.  I wasn't too worried, however, since much of this was new
>code that didn't affect anyone else.
> 
>I have already added the missing package-derby8.orm files for both app and
>ds identity.  I just forgot to include them in my svn add.
> 
>I'm still having problems getting things to work, but I've done a fresh
>build and will look again with your collective input.  I'll let you know
>what I find.  Thanks for your help... <sheepish grin>
> 
>--matthew
>
>-----Original Message-----
>From: Craig.Russell@Sun.COM [mailto:Craig.Russell@Sun.COM] 
>Sent: Wednesday, January 04, 2006 8:16 PM
>To: jdo-dev@db.apache.org
>Subject: Re: Help request: initial commit of detachable shopping cart object
>model, some tests broken
>
>
>Hi Matthew, 
>
>You haven't defined the schema for the shopping cart tables.
>
>Probably the place to define the schema is in the schema0 where everything
>else is defined.
>
>Craig
>
>On Jan 4, 2006, at 7:50 PM, Michelle Caisse wrote:
>
>
>Matthew,
>
>You are missing package-derby8.orm for the
>org.apache.jdo.tck.pc.shoppingcart package.  See
>http://wiki.apache.org/jdo/TechnologyCompatibilityKit#Cfg.  This may be the
>cause of your problem.
>
>-- Michelle
>
>Matthew T. Adams wrote:
>
>
>Hi guys,
> I added some artifacts in the name of JDO-272.  Currently, only application
>identity is working, and the JDOHelper test class IsDetached is broken, but
>due to project config/setup/classpath issues, which probably has to do with
>the fact that I'm introducing a new PC object model, schema, etc.
> Can someone grab the latest, run
> maven -o -Djdo.tck.cfglist installSchema
>maven -o -Djdo.tck.cfglist=detach.conf runtck.jdori
> and tell me what's wrong with the config?
> Thanks,
>Matthew
> *Matthew T. Adams*
>Corporate Technical Advisor & Senior Consultant
>Mobile:  +1 253 732 1051
>Phone:  +1 206 331 3833
>Fax:  +1 815 331 0952
>matthew.adams@xcalia.com <ma...@xcalia.com>
>P.O. Box 24163
>Federal Way, WA  98093
>www.xcalia.com <http://www.xcalia.com/>
>  Xcalia makes implementing SOA easy with agile business intermediation
>software that combines heterogeneous data with services to easily develop
>and deploy transactional composite applications.  Enterprises can quickly
>respond to changing business requirements and dramatically reduce the costs
>of data access and service integration.
>
>
> 
>
>
>
>
>Craig Russell
>
>Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
>
>408 276-5638 mailto:Craig.Russell@sun.com
>
>P.S. A good JDO? O, Gasp!
>
>
>
>  
>


-- 
Michael Bouschen		Tech@Spree Engineering GmbH
mailto:mbo.tech@spree.de	http://www.tech.spree.de/
Tel.:++49/30/235 520-33		Buelowstr. 66			
Fax.:++49/30/2175 2012		D-10783 Berlin			


RE: Help request: initial commit of detachable shopping cart object model, some tests broken

Posted by "Matthew T. Adams" <ma...@xcalia.com>.
Hi guys,
 
Sorry about not emailing a patch before committing; I didn't know that was
the protocol.  I wasn't too worried, however, since much of this was new
code that didn't affect anyone else.
 
I have already added the missing package-derby8.orm files for both app and
ds identity.  I just forgot to include them in my svn add.
 
I'm still having problems getting things to work, but I've done a fresh
build and will look again with your collective input.  I'll let you know
what I find.  Thanks for your help... <sheepish grin>
 
--matthew

-----Original Message-----
From: Craig.Russell@Sun.COM [mailto:Craig.Russell@Sun.COM] 
Sent: Wednesday, January 04, 2006 8:16 PM
To: jdo-dev@db.apache.org
Subject: Re: Help request: initial commit of detachable shopping cart object
model, some tests broken


Hi Matthew, 

You haven't defined the schema for the shopping cart tables.

Probably the place to define the schema is in the schema0 where everything
else is defined.

Craig

On Jan 4, 2006, at 7:50 PM, Michelle Caisse wrote:


Matthew,

You are missing package-derby8.orm for the
org.apache.jdo.tck.pc.shoppingcart package.  See
http://wiki.apache.org/jdo/TechnologyCompatibilityKit#Cfg.  This may be the
cause of your problem.

-- Michelle

Matthew T. Adams wrote:


Hi guys,
 I added some artifacts in the name of JDO-272.  Currently, only application
identity is working, and the JDOHelper test class IsDetached is broken, but
due to project config/setup/classpath issues, which probably has to do with
the fact that I'm introducing a new PC object model, schema, etc.
 Can someone grab the latest, run
 maven -o -Djdo.tck.cfglist installSchema
maven -o -Djdo.tck.cfglist=detach.conf runtck.jdori
 and tell me what's wrong with the config?
 Thanks,
Matthew
 *Matthew T. Adams*
Corporate Technical Advisor & Senior Consultant
Mobile:  +1 253 732 1051
Phone:  +1 206 331 3833
Fax:  +1 815 331 0952
matthew.adams@xcalia.com <ma...@xcalia.com>
P.O. Box 24163
Federal Way, WA  98093
www.xcalia.com <http://www.xcalia.com/>
  Xcalia makes implementing SOA easy with agile business intermediation
software that combines heterogeneous data with services to easily develop
and deploy transactional composite applications.  Enterprises can quickly
respond to changing business requirements and dramatically reduce the costs
of data access and service integration.


 




Craig Russell

Architect, Sun Java Enterprise System http://java.sun.com/products/jdo

408 276-5638 mailto:Craig.Russell@sun.com

P.S. A good JDO? O, Gasp!



Re: Help request: initial commit of detachable shopping cart object model, some tests broken

Posted by Craig L Russell <Cr...@Sun.COM>.
Hi Matthew,

You haven't defined the schema for the shopping cart tables.

Probably the place to define the schema is in the schema0 where  
everything else is defined.

Craig

On Jan 4, 2006, at 7:50 PM, Michelle Caisse wrote:

> Matthew,
>
> You are missing package-derby8.orm for the  
> org.apache.jdo.tck.pc.shoppingcart package.  See http:// 
> wiki.apache.org/jdo/TechnologyCompatibilityKit#Cfg.  This may be  
> the cause of your problem.
>
> -- Michelle
>
> Matthew T. Adams wrote:
>
>> Hi guys,
>>  I added some artifacts in the name of JDO-272.  Currently, only  
>> application identity is working, and the JDOHelper test class  
>> IsDetached is broken, but due to project config/setup/classpath  
>> issues, which probably has to do with the fact that I'm  
>> introducing a new PC object model, schema, etc.
>>  Can someone grab the latest, run
>>  maven -o -Djdo.tck.cfglist installSchema
>> maven -o -Djdo.tck.cfglist=detach.conf runtck.jdori
>>  and tell me what's wrong with the config?
>>  Thanks,
>> Matthew
>>  *Matthew T. Adams*
>> Corporate Technical Advisor & Senior Consultant
>> Mobile:  +1 253 732 1051
>> Phone:  +1 206 331 3833
>> Fax:  +1 815 331 0952
>> matthew.adams@xcalia.com <ma...@xcalia.com>
>> P.O. Box 24163
>> Federal Way, WA  98093
>> www.xcalia.com <http://www.xcalia.com/>
>>   Xcalia makes implementing SOA easy with agile business  
>> intermediation software that combines heterogeneous data with  
>> services to easily develop and deploy transactional composite  
>> applications.  Enterprises can quickly respond to changing  
>> business requirements and dramatically reduce the costs of data  
>> access and service integration.
>>
>
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Re: Help request: initial commit of detachable shopping cart object model, some tests broken

Posted by Michelle Caisse <Mi...@Sun.COM>.
Matthew,

You are missing package-derby8.orm for the 
org.apache.jdo.tck.pc.shoppingcart package.  See 
http://wiki.apache.org/jdo/TechnologyCompatibilityKit#Cfg.  This may be 
the cause of your problem.

-- Michelle

Matthew T. Adams wrote:

> Hi guys,
>  
> I added some artifacts in the name of JDO-272.  Currently, only 
> application identity is working, and the JDOHelper test class 
> IsDetached is broken, but due to project config/setup/classpath 
> issues, which probably has to do with the fact that I'm introducing a 
> new PC object model, schema, etc.
>  
> Can someone grab the latest, run
>  
> maven -o -Djdo.tck.cfglist installSchema
> maven -o -Djdo.tck.cfglist=detach.conf runtck.jdori
>  
> and tell me what's wrong with the config?
>  
> Thanks,
> Matthew
>  
> *Matthew T. Adams*
> Corporate Technical Advisor & Senior Consultant
> Mobile:  +1 253 732 1051
> Phone:  +1 206 331 3833
> Fax:  +1 815 331 0952
> matthew.adams@xcalia.com <ma...@xcalia.com>
> P.O. Box 24163
> Federal Way, WA  98093
> www.xcalia.com <http://www.xcalia.com/>
>  
>  
> Xcalia makes implementing SOA easy with agile business intermediation 
> software that combines heterogeneous data with services to easily 
> develop and deploy transactional composite applications.  Enterprises 
> can quickly respond to changing business requirements and dramatically 
> reduce the costs of data access and service integration.
>  



Re: Help request: initial commit of detachable shopping cart object model, some tests broken

Posted by Michelle Caisse <Mi...@Sun.COM>.
Hi Matthew,

I'll give it a try and get back to you.

-- Michelle

Matthew T. Adams wrote:

> Hi guys,
>  
> I added some artifacts in the name of JDO-272.  Currently, only 
> application identity is working, and the JDOHelper test class 
> IsDetached is broken, but due to project config/setup/classpath 
> issues, which probably has to do with the fact that I'm introducing a 
> new PC object model, schema, etc.
>  
> Can someone grab the latest, run
>  
> maven -o -Djdo.tck.cfglist installSchema
> maven -o -Djdo.tck.cfglist=detach.conf runtck.jdori
>  
> and tell me what's wrong with the config?
>  
> Thanks,
> Matthew
>  
> *Matthew T. Adams*
> Corporate Technical Advisor & Senior Consultant
> Mobile:  +1 253 732 1051
> Phone:  +1 206 331 3833
> Fax:  +1 815 331 0952
> matthew.adams@xcalia.com <ma...@xcalia.com>
> P.O. Box 24163
> Federal Way, WA  98093
> www.xcalia.com <http://www.xcalia.com/>
>  
>  
> Xcalia makes implementing SOA easy with agile business intermediation 
> software that combines heterogeneous data with services to easily 
> develop and deploy transactional composite applications.  Enterprises 
> can quickly respond to changing business requirements and dramatically 
> reduce the costs of data access and service integration.
>