Thank you very much - it was indeed a matter of case. That particular example was "left overs" from desperate attempts to do trial-and-error bugfixing. I reverted to an older CVS version and started from there with the initial bugs.


If others should thread the path I am on, then it seems there indeed has been a change in how xdoclet generates cmr names.

Previously (all judging from the code that worked before) ALL cmr fields had an initial lowercase. E.g my ISO bean would be named iSO in an cmr field.

This has changed with 1.2 final, where my ISO bean now is called ISO also as cmr field (had to change a LOT of finder methods). Where the second letter is lower case, then xdoclet sets the first letter to lower case too.

So a few examples for 1.2 final

ISO -> ISO
APMCSession -> APMCSession
Session -> session
UserGroup -> userGroup

So a few examples from 1.2b3

ISO -> iSO
APMCSession -> aPMCSession
Session -> session
UserGroup -> userGroup


Thanks for the help!


/Thomas

Damjan S. Vujnovic wrote:

----- Original Message -----
From: "Thomas Hentschel Lund" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 05, 2004 6:46 PM
Subject: [Xdoclet-user] Problems with jboss and unknown cmr fields after
xdoclet 1.2b3->1.2 final upgrade




org.jboss.deployment.DeploymentException: Error compiling EJB-QL
statement 'select object(o) from APMCSession o where o.UserLight.id=?1
and o.APRun.id=?2'; - nested throwable:
(org.jboss.ejb.plugins.cmp.ejbql.UnknownPathException: Unknown cmr field
in path: at line 1, column 54. Encountered: "UserLight" after: "o.")





The finder that is generating the error

* @ejb.finder signature="java.util.Collection findEndedByUserLight
(java.lang.Long userid)"
* query="select object(o) from APMCSession o where
o.enddate is not null and o.UserLight.id=?1"
* unchecked="true"



EJB-QL is case sensitive, use o.userLight instead of o.UserLight (userLight is the CMR field name, as you can see from the DD).

HTH,
Damjan S. Vujnovic



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user





------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to