Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » query element in ejb-jar.xml not found
query element in ejb-jar.xml not found [message #125113] Sun, 07 December 2003 07:58
Eclipse UserFriend
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
Previous Topic:Cannot find how to set "-server" option for compilatio
Next Topic:Tabulator View like JBuilder
Goto Forum:
  


Current Time: Mon Jul 14 20:27:02 EDT 2025

Powered by FUDForum. Page generated in 0.03855 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top