db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michelle Caisse <Michelle.Cai...@Sun.COM>
Subject Re: Collections of interfaces
Date Wed, 27 Apr 2005 17:47:53 GMT
Craig, thanks,

Yes, I needed to have SimpleInterface.class in my classpath.  I was 
running SchemaTool on the enhanced jar in order to have the jdo and 
classes in one place, but the interface was missing.  Fixed that, and 
I'm off and running.

-- Michelle

Craig Russell wrote:

> Hi Michelle,
>
> This is confusing. The symptom points to a need to have the 
> SimpleInterface in your class path when you run the enhancer. But if 
> you are enhancing the FieldTypes class, SimpleInterface must be there 
> or you would not be able to load the class to be enhanced.
>
> I'd guess you have to put into project.properties the field type 
> classes SimpleInterface and SimpleClass in the pcclasses.files list.
>
> Craig
>
> On Apr 27, 2005, at 10:12 AM, Andy Jefferson wrote:
>
>>> Exception in thread "main" java.lang.NoClassDefFoundError:
>>> org/apache/jdo/tck/pc/fieldtypes/SimpleInterface
>>
>>
>> So it cant find the class SimpleInterface ?
>>
>>> <extension vendor-name="jpox" key="implementation-classes"
>>> value="org.apache.jdo.tck.pc.fieldtypes.SimpleInterface"/>
>>
>>
>> SimpleInterface is an interface not a class.
>> "implementation-classes" is supposed to contain the names of the classes
>> implementing the interface type of the field in question
>>
>>
>> -- 
>> Andy
>> Java Persistent Objects JDO - JPOX
>>
> 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