1 Reply Latest reply on Dec 10, 2002 8:28 AM by ehenne

    Container Managed Persistence Java Pet Store ?

    jbossapprentice

      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

        • 1. Re: Container Managed Persistence Java Pet Store ?
          ehenne

          Entity beans with Container Managed Persistence must be abstract. CMP is declared in the deployment descriptor file ejb-jar.xml, which may be missing in your deployment.

          If you want to run petstore you have to build it with Ant and deploy the file petstore.ear which contains all the information. In the topic "Running PetStore 1.3 on JBoss 3.0" I trying to explain all the changes necessary for running PetStore on Jboss.