query element in ejb-jar.xml not found [message #125113] |
Sun, 07 December 2003 07:58 |
Eclipse User |
|
|
|
Originally posted by: malan2000.optusnet.com.au
On deploying the Jar file generated with Eclipse 2.1.0 and Lomboz to
JBoss-3.2.0 I get the following error message:
11:09:35,485 WARN [verifier] EJB spec violation:
Bean : VisitsCMP
Method : public abstract Collection findByMonth(Integer, Integer) throws
FinderException
Section: 10.5.6
Warning: Every finder method except findByPrimaryKey(key) must be
associated with a query element in the deployment descriptor.
The message is quite clear. So I look in ejb-jar.xml and here is what I
find:
<query>
<description><![CDATA[Select all visits for a certain
month]]></description>
<query-method>
<method-name>findByMonth</method-name>
<method-params>
<method-param>Integer</method-param>
<method-param>Integer</method-param>
</method-params>
</query-method>
<result-type-mapping>Local</result-type-mapping>
<ejb-ql><![CDATA[SELECT OBJECT(a) FROM visitsSchema AS a where a.year =
?1 and a.month = ?2]]></ejb-ql>
</query>
Obviously, this is what JBoss complains it cannot find. I tried this and
that - no luck. I compared the beans, the xdoclet tags and the
ejb-jar.xml files of application archives that work and this offending jar
- no answers.
Is there anybody in the whole wide world who has any idea as to what is
wrong? What is Section 10.5.6, anyway?
Thanks for any help. I cannot see how there can be an answer for this,
but there must be. I have spent many hours on this, all to no avail.
Chris
|
|
|
Powered by
FUDForum. Page generated in 0.03855 seconds