I am using JBoss 2.4.4. My CMP bean has fields of non-primitive types. The primary key of this bean is also a non-primitive type field. I can create new bean instances without any problem. My findByPrimaryKey(MyType id) works fine too. However, any other findBy with non-primitive type field doesn't work.
I followed instructions in "Dependant Value Objects [since JBoss 2.4]" section of the JBoss on-line manual. It helped me out to create jaws.xml for bean/tables with "non-primitive" fields. However, this section doesn't say anything about find methods for "non-primitive" fields.