Andre Selton wrote:

>   Hi,
> 
>   When I deploy my EJB with CMR I got this error :
> 
> org.jboss.deployment.DeploymentException: Error in
> ejb-jar.xml for relation Order-Item: cmr-field-type
> should be java.util.Collection or java.util.Set but is
> Order.
>         <cmr-field>
>           <cmr-field-name>items</cmr-field-name>
>          
> <cmr-field-type>java.util.Collection</cmr-field-type>
>         </cmr-field>


This one if fine.

>         <cmr-field>
>           <cmr-field-name>order</cmr-field-name>
>           <cmr-field-type>Order</cmr-field-type>
>         </cmr-field>


This one it wrong. You only need (can have) cmr-field-type if the 
cmr-field is multi-valued.   I think this is another lame place in the 
spec, as I can look up the field type using reflection, but it is 
required.  Just remove the line and it should start working.

-dain



_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to