[JBoss-user] modifieng the cdEJB.zip

2001-04-05 Thread mark evertz

Hello!

Maybe someone can help me!
I?m new to JBoss, so I used the example (cdEJB) as a starting point for
developing my own beans.
The examples works fine, so I?ve tried to modify them to create an own
cmp-entity-bean.
I just changed the names of the method and the beans. After that i modified
the xml files in the META-INF directory. Compiling and creating the jar
works fine, but I can?t deploy the bean.
I dont?t understand the error-messages, my PersonBean implements
javax.ejb.EntityBean interface!!

I have not changed the create() methods and my primkey field is the same as
in the cdEJB.jar

[Verifier]
Bean   : PersonBean
Section: 9.2.2
Warning: The entity bean's class must implement, directly or indirectly, the
javax.ejb.EntityBean interface.

[Verifier]
Bean   : PersonBean
Method : public void ejbCreate()
Section: 9.2.3
Warning: The return type of an ejbCreate(...) method must be the entity
bean's primary key type.

[Verifier]
Bean   : PersonBean
Method : public void ejbCreate()
Section: 9.2.4
Warning: For each ejbCreate(...) method, the entity bean class must define a
matching ejbPostCreate(...) method.

[Verifier]
Bean   : PersonBean
Section: 9.4.7.1
Warning: The primkey-field element must name a public field in the bean
implementation class.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] modifieng the cdEJB.zip

2001-04-05 Thread Ken Jenks

At 11:51 AM 4/5/01 +0200, you wrote:
Hello!

Maybe someone can help me!

There's not much advice I can give without seeing your source code. Take 
those warnings seriously; they mean your code is not right and you really 
must fix it.

-- Ken Jenks, http://abiblion.com/

Tools for reading.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user