-
1. Re: ejbHome method not recognized
armint Feb 5, 2002 2:36 PM (in response to sugarplum_fairy)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"
"http://java.sun.com/dtd/ejb-jar_2_0.dtd">
Hope this helps -
2. Re: ejbHome method not recognized
julien.dubois Feb 9, 2002 9:16 PM (in response to sugarplum_fairy)Hi,
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.
Anyway :
- 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?
Julien Dubois. -
3. Re: ejbHome method not recognized
sugarplum_fairy Feb 12, 2002 8:21 AM (in response to sugarplum_fairy)Thanx Armin for the tip. I thought it must be something
with the new EJB specification, where thr ejbHome methods
were introduced.
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
using jboss-3.0.0alpha
Success! The Fairy