Hello OJB Group,

I wrote a test case to check if my OJB configuration works properly but
everytime I run it I get the following exception:

org.apache.ojb.broker.metadata.ClassNotPersistenceCapableException:
java.util.Vector not found in OJB Repository

Here's the repository_user.xml

<class-descriptor class="ch.ctc.support.member.MemberVO" 
                                          table="member"> 
        <field-descriptor id="1" 
                                          name="memberId" 
                                          column="member_id" 
                                          jdbc-type="BIGINT" 
                                          primarykey="true" 
                                          autoincrement="true"
                                          access="anonymous"/> 
        
        <field-descriptor id="2" 
                                          name="firstName" 
                                          column="first_name" 
                                          jdbc-type="VARCHAR"/> 
        
        <field-descriptor id="3" 
                                          name="lastName" 
                                          column="last_name" 
                                          jdbc-type="VARCHAR"/> 
                                          
        <field-descriptor id="4" 
                                          name="userName" 
                                          column="user_name" 
                                          jdbc-type="VARCHAR"/> 
                                          
        <field-descriptor id="5" 
                                          name="password" 
                                          column="password" 
                                          jdbc-type="VARCHAR"/> 
                                          
        <field-descriptor id="6" 
                                          name="email" 
                                          column="email" 
                                          jdbc-type="VARCHAR"/> 
                                          
        <field-descriptor id="7" 
                                          name="companyId" 
                                          column="company_id" 
                                          jdbc-type="BIGINT"/>
                                          
        <reference-descriptor name="category" 
        
class-ref="ch.ctc.suppport.CategoryVO" 
                                                  auto-retrieve="true">
                <foreignkey field-id-ref="9"/>
        </reference-descriptor>
</class-descriptor>

<class-descriptor class="ch.ctc.support.document.DocumentVO" 
                                  table="document"> 
        <field-descriptor id="1" 
                                          name="documentId" 
                                          column="document_id" 
                                          jdbc-type="BIGINT" 
                                          primarykey="true" 
                                          autoincrement="true"
                                          access="anonymous"/>

        
        <field-descriptor id="2" 
                                          name="documentName" 
                                          column="document_name" 
                                          jdbc-type="VARCHAR"/> 
                                          
        <field-descriptor id="3" 
                                          name="documentDescription" 
                                          column="document_description" 
                                          jdbc-type="VARCHAR"/> 
                                          
        <field-descriptor id="4" 
                                          name="documentVersion" 
                                          column="document_version" 
                                          jdbc-type="VARCHAR"/> 
                                          
        <field-descriptor id="5" 
                                          name="documentAbstract" 
                                          column="document_abstract" 
                                          jdbc-type="LONGVARBINARY"/>
                                           
        <field-descriptor id="6" 
                                          name="creationDate" 
                                          column="creation_date" 
                                          jdbc-type="DATE"/>
                                          
        <field-descriptor id="7" 
                                          name="palModel" 
                                          column="pal_model_id" 
                                          jdbc-type="BIGINT"/>
                                          
        <field-descriptor id="8" 
                                          name="keywords" 
                                          column="keyword_id" 
                                          jdbc-type="BIGINT"/>
                                          
        <field-descriptor id="9" 
                                          name="category" 
                                          column="category_id" 
                                          jdbc-type="BIGINT"/>
                                          
        <field-descriptor id="10" name="documentAuthor" 
                                          column="member_id" 
                                          jdbc-type="BIGINT"/>
        
        <collection-descriptor name ="palModel" 
        
element-class-ref="ch.ctc.support.category.PalModelVO" 
                                                   auto-retrieve="true" 
                                                   auto-update="true" 
        
indirection-table="pal_relevancy"> 
                <fk-pointing-to-this-class column="pal_model_id"/>
                <fk-pointing-to-this-class column="document_id"/>
        </collection-descriptor>
        
        <collection-descriptor name ="keywords"
        
element-class-ref="ch.ctc.support.category.KeywordVO" 
                                                   auto-retrieve="true" 
                                                   auto-update="true" 
        
indirection-table="document_keyword"> 
                <fk-pointing-to-this-class column="keyword_id"/>
                <fk-pointing-to-this-class column="document_id"/>
        </collection-descriptor>
        
        <reference-descriptor name="category" 
        
class-ref="ch.ctc.suppport.CategoryVO" 
                                                  auto-retrieve="true">
                <foreignkey field-id-ref="9"/>
        </reference-descriptor>
        
        <reference-descriptor name="doucmentAuthor" 
        
class-ref="ch.ctc.suppport.MemberVO" 
                                                  auto-retrieve="true">
                <foreignkey field-id-ref="10"/>
        </reference-descriptor>
</class-descriptor>

<class-descriptor class="ch.ctc.support.category.CategoryVO" 
                                  table="category"> 
        <field-descriptor id="1" 
                                          name="categoryId" 
                                          column="category_id" 
                                          jdbc-type="BIGINT" 
                                          primarykey="true" 
                                          autoincrement="true"
                                          access="anonymous"/> 
                                           
        <field-descriptor id="2" 
                                          name="categoryName" 
                                          column="category_name" 
                                          jdbc-type="VARCHAR"/> 
                                          
        <field-descriptor id="3" 
                                          name="categoryDescription" 
                                          column="category_description" 
                                          jdbc-type="VARCHAR"/>
</class-descriptor>
        
<class-descriptor class="ch.ctc.support.category.PALModelVO" 
                                  table="pal_model">    
        <field-descriptor id="1" 
                                          name="palModelId" 
                                          column="pal_model_id" 
                                          jdbc-type="BIGINT" 
                                          primarykey="true" 
                                          autoincrement="true"
                                          access="anonymous"/> 
                                          
        <field-descriptor id="2" 
                                          name="palModelName" 
                                          column="pal_model_name" 
                                          jdbc-type="VARCHAR"/>
                                          
        <field-descriptor id="3" 
                                          name="palModelDescription" 
                                          column="pal_model_description" 
                                          jdbc-type="VARCHAR"/>
</class-descriptor>
        
<class-descriptor class="ch.ctc.support.category.CompanyVO" 
                                  table="company">
        <field-descriptor id="1" 
                                          name="companyId"
                                          column="company_id" 
                                          jdbc-type="BIGINT" 
                                          primarykey="true" 
                                          autoincrement="true"/> 
                                          
        <field-descriptor id="2" 
                                          name="companyName" 
                                          column="company_name" 
                                          jdbc-type="VARCHAR"/>
</class-descriptor>


What am I doing wrong? Do I have do declare what type of Collection I'm
using in the repository file?
Any help would be highly appreciated?

Patrick



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

Reply via email to