db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <Craig.Russ...@Sun.COM>
Subject Re: Help request: initial commit of detachable shopping cart object model, some tests broken
Date Thu, 05 Jan 2006 03:23:45 GMT
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 <mailto: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.
>>
>
>

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!


Mime
View raw message