Hi, it could be that you are actually not generating the implementation of the cmp
bean. Are you sure that you are using the <entitycmp /> when you are running xdoclet
to create the source?
/Klas
>
> From: "Mohammed Khaffar" <[EMAIL PROTECTED]>
> Date: 2004/02/11 on PM 03:18:25 GMT
> To: <[EMAIL PROTECTED]>
> �mne: [Xdoclet-user] ValeObject Problem
>
> Hi
>
> I have the following problem, I would appreciate some help.
>
> I have declared an abstract interface method to return a value object
> [CompanyLightVO]. But when that method [getCompanyLightVO()] is called I get
> a runtime exeption:
>
> 14:45:07,766 ERROR [LogInterceptor] TransactionRolledbackLocalException in
> method:
> public abstract com.ttpcom.vo.CompanyLightVO
> com.ttpcom.entity.CompanyLocal.getCompanyLightVO(),
> causedBy:javax.ejb.EJBException: Method is not a known CMP field accessor,
> CMR field accessor, or ejbSelect method: methodName=getCompanyLightVO
>
> This is how it is declared in the CompanyEJB
>
> /**
> * @ejb.interface-method view-type="local"
> * @ejb.permission role-name="user"
> */
> public abstract CompanyLightVO getCompanyLightVO();
>
> This is exacly how things are shown in the samples in
> xdoclet.sourceforge.net So I assumed the container would impliment the
> method.
>
> However when I impliment the method myself, as follows, I don't get any
> problems
>
> /**
> * @ejb.interface-method view-type="local"
> * @ejb.permission role-name="user"
> */
> public abstract CompanyLightVO getCompanyLightVO();
> {
> CompanyLightVO result = new CompanyLightVO();
> result.setId(getId());
> result.setName(getName());
> result.setReleaseId(getReleaseId());
> result.setContactId(getContactId());
> result.setHelpdeskId(getHelpdeskId());
> result.setStatus(getStatus());
> return (result);
> }
>
> Could someone elighten me on this please?
>
> Thanks & Regards
>
> Mohammed
>
>
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user