3 Replies Latest reply on Sep 27, 2003 9:08 PM by Vishal Sharma

    JBoss and EJB 2.0

    Dirk Newbie

      I'm just doing my first steps using JBoss and EJB 2.0.

      I have implemented a bean called PersonBean with the corresponding home and remote interfaces.

      After jaring the classes JBoss throws some exceptions during deploying the EJB telling me that the bean class MUST be declared public and abstract.
      OK but the bean IS ALREADY declared public and abstract as you can see from the code below.

      What's the mistake I did??

      Here are the files that I put into the Person.jar file using:
      jar -cfv Person.jar META-INF/ de/

      1. the bean class:
      abstract public class PersonBean implements EntityBean

      2. the remote interface:
      public interface Person extends EJBObject
      //public void setLastname(String name) throws RemoteException;
      //public void setFirstname(String name) throws RemoteException;

      //public String getFirstname() throws RemoteException;
      //public String getLastname() throws RemoteException;

      3. the home interface:
      public interface PersonHome extends EJBHome
      Person create(String firstname, String lastname) throws CreateException, RemoteException;

      4. the primary key class:
      public class PersonPK implements Serializable
      public Integer Person_ID;

      public PersonPK(){}
      }//end class PersonPK

      5. the ejb-jar.xml:
      <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"







      6. jboss.xml (as I read in in this forum):
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd">




      7. jaws.xml (as I read it somewhere else and a DB will be used later, of course):
      <!DOCTYPE jaws PUBLIC "-//du-it">

      <?xml version="1.0"?>




      Hope, somebody can help me soon.

      Thanks a lot.