13 Replies Latest reply on Aug 29, 2002 10:51 AM by kafka

    entity bean must not be abstract.. help!

    derekw

      I am getting the following warning messages in my log
      file. I should be running using EJB 2.0. Note the
      snippets from my ejb-jar.xml file below. Any ideas?

      -----
      2002-08-03 13:49:50,738 INFO [org.jboss.ejb.EJBDeployer]
      Bean : Cabin
      Section: 9.2.2
      Warning: The entity bean class must not be defined as abstract.

      2002-08-03 13:49:50,968 INFO [org.jboss.ejb.EJBDeployer]
      Bean : Cabin
      Section: 9.4.7.1
      Warning: The primkey-field element must name a public field in the bean implementation class.
      -----

      first line of ejb-jar.xml file:
      <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise
      JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">

      in the entity bean descriptor:
      <cmp-version>2.x</cmp-version>