• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

ejb finder method

 
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am using Eclipse 2.1, JBoss 3.2.1 and Lomboz plugin. I was trying add a ejb finder method using @ejb.finder tag in the Bean class..
When i try to deploy the bean, it throws the following exception.

but when i looked at the ejb-jar.xml, it has the query tag with the method parameters and the ejb-ql. I don't understand y this exception is popping up. Any clues?
this is wat i defined in the bean class.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For what its worth, I got this warning because the signature in the home interface did not match the EJB-QL signature. The container is complaining that it can't find the corresponding <query> element in the DD.
John
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I got the error too, due to the fact that my finder had a String argument. For the record, I'm using Eclipse 2.1.3 with Lomboz 2.1.3, and deploying on JBoss 3.2.3.
The problem was the deployment descriptor, where the query element for my finder contained "<method-param>String</method-param>". Changing this to "<method-param>java.lang.String</method-param>" solved the problem.
Hope this helps !
Joeri
 
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nijeesh,
It looks like you're setting up your @ejb.finder correctly. Can you post the segment of your "query" in your deployment descriptor? I'm not sure why XDoclet would incorrectly render it in your deployment descriptors so they can't get matched up.
 
You can't expect to wield supreme executive power just because
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic