Sounds like the container is not recognizing that you are deploying a 2.0 entity. This can happen if the ejb-jar.xml doctype is not correct. If you are not already, try using:
<!DOCTYPE ejb-jar PUBLIC
"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
Hope this helps
I've got exactly the same problem.
I'm trying to run the code from "Mastering EJB II, 2nd edition" (see theserverside.com). This concerns the "account" exemple, on the BMP Entity Beans.
- I've got the same kind of code (an ejbHome*() method).
- I've got the same error message (it says we can only have finder and create methods)
- I've tried to change the XML header, following armint's advice, with no success.
I'm using JBoss 2.4.
Anybody to help?
Thanx Armin for the tip. I thought it must be something
with the new EJB specification, where thr ejbHome methods
I have changed the ejb-jar.xml doctype according to your
instruction and it works perfectely now.
Julien, as I used the same example as you (Account), the
only difference I can see is the jboss version. I am
Success! The Fairy