1 Reply Latest reply on Dec 10, 2002 4:17 PM by Dain Sundstrom

    Container Managed Persistence Java Pet Store ?

    Pradeep Thomas Newbie

      Im trying to deploy an entity bean as an abstract class Is it possible to code an entity bean as abstract on JBoss??

      In the Java Pet Store we have a class AddressEJB which is defined as abstract

      public abstract class AddressEJB implements EntityBean

      when I try to deploy it I get the following error

      [INFO,ContainerFactory] Deploying:file:/C:/A JBoss Installation/JBoss-2.4.10/tmp/deploy/blah-blah.jar
      [ERROR,ContainerFactory]
      Bean : AddressEJB
      Section: 9.2.2
      Warning: The entity bean class must not be defined as abstract.

      [ERROR,ContainerFactory]
      Bean : AddressEJB
      Section: 9.2.2
      Warning: The entity bean class must define a public constructor that takes no arguments.

      Please Advise

      Thanks