Joel,
   Did you declare "prefs" as a cmp-field in the
entity declaration? For example:
<entity>
   ...
   <cmp-field>
      <field-name>prefs</field-name>
   </cmp-field>
   ...
</entity>

   I was getting the same exception until I made the
above change. 

--- Joel Shellman <[EMAIL PROTECTED]> wrote:
> I get the following error during deployment:
> 
> "Method public abstract CP CB.getPrefs() can not be
> declared abstract"
> 
>  <relationships>
>   <ejb-relation>
>    <ejb-relation-name>C-CP</ejb-relation-name>
>    <ejb-relationship-role>
>    
>
<ejb-relationship-role-name>c-p</ejb-relationship-role-name>
>     <multiplicity>one</multiplicity>
>     <role-source>
>      <ejb-name>C</ejb-name>
>     </role-source>
>     <cmr-field>
>      <cmr-field-name>prefs</cmr-field-name>
>      <cmr-field-type>CP</cmr-field-type>
>     </cmr-field>
>    </ejb-relationship-role>
>    <ejb-relationship-role>
> 
>
<ejb-relationship-role-name>contactprefs-belongs-to-contact</ejb-relationshi
> p-role-name>
>     <multiplicity>one</multiplicity>
>     <role-source>
>      <dependent-name>CP</dependent-name>
>     </role-source>
>     </ejb-relationship-role>
>   </ejb-relation>
>  </relationships>
> 
> In the CP bean, I have:
> public abstract CP getprefs();
> 
> What's wrong with that?
> 
> Thanks,
> 
> Joel Shellman
> 
> 
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/

Reply via email to