I have found the 'bug'. Didn't look too carefully apparantely.
The abstract value-object getters and setters are implemented in the
generated CMP classes, so when not using the <entitycmp/> subtask, you
have to provide for the VO getter/setter yourself.

<quote who="Herve Tchepannou">
>
> When did you get that error? is it while running the test cases or in
> the web app?
>
> can you send the stack trace please.
>
> On Sat, 2002-12-14 at 17:52, Dylan van Iersel wrote:
>>
>> Hi all,
>>
>> >From the xpetstore examples, I gather that I can have XDoclet
>> generate a
>> Value Object and define an abstract getter/setter to access it.
>>
>> For example, from ItemEJB:
>> ....
>>  * @ejb.value-object
>>  *      name="Item"
>>  *      match="*"
>> ....
>> /**
>>  * @ejb.interface-method
>>  * @ejb.transaction
>>  *      type="Supports"
>>  */
>> public abstract ItemValue getItemValue();
>>
>> /**
>>  * @ejb.interface-method
>>  */
>> public abstract void setItemValue( ItemValue data );
>>
>> However, using it this way, I get an exception from JBoss when trying
>> to get the value-object:
>> "javax.ejb.EJBException: Method is not a known CMP field accessor, CMR
>> field accessor, or ejbSelect method: methodName=getUserValue"
>>
>> Suggestions anyone?
>>
>> Cheers,
>> Dylan
>>
>> PS.
>> Big kudos to everyone working on this. It is absolutely a fantastic
>> project and a true example of the power of open source.
>>
>>
>>
>>
>> -------------------------------------------------------
>> This sf.net email is sponsored by:
>> With Great Power, Comes Great Responsibility
>> Learn to use your power at OSDN's High Performance Computing Channel
>> http://hpc.devchannel.org/
>> _______________________________________________
>> Xdoclet-user mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> --
>
> Herve Tchepannou
> mailto:[EMAIL PROTECTED]
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:
> With Great Power, Comes Great Responsibility
> Learn to use your power at OSDN's High Performance Computing Channel
> http://hpc.devchannel.org/
> _______________________________________________
> Xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user


Groeten,
Dylan

---
Dylan van Iersel
E-mail:  [EMAIL PROTECTED]
Web:     http:///www.van-iersel.org
ICQ:     46244248
---




-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to