1 Reply Latest reply on Nov 26, 2002 7:57 PM by adam2001usa

    cmp deployment error

    adam2001usa

      jboss 3.0.4
      tomcat 4.1.12 (embedded)

      keep getting
      DeploymentException: No abstract accessors for field named 'addressid' found in entity class com.realtimetemps.ejb.entity.AddressBean

      But, from my source this doesn't seem to be the case. What am I doing wrong? Thanx in advance.

      The following is the source of the bean itself and its component interface.:

      AddressBean.java

      package com.realtimetemps.ejb.entity;

      import javax.ejb.EntityBean;
      import javax.ejb.EntityContext;
      import java.rmi.RemoteException;

      abstract public class AddressBean implements EntityBean {

      EntityContext ctx;

      public String ejbCreate (String FirstName, String LastName,
      String Street1, String Street2,
      String City, String State,
      String PostalCode) {
      setFirstName(FirstName);
      setLastName(LastName);
      setStreet1(Street1);
      setStreet2(Street2);
      setCity(City);
      setState(State);
      setPostalCode(PostalCode);
      return null;
      }

      public void ejbPostCreate(String FirstName, String LastName,
      String Street1, String Street2,
      String City, String State,
      String PostalCode) {}

      public abstract String getFirstName();

      public abstract void setFirstName(String FirstName);

      public abstract String getLastName();

      public abstract void setLastName(String LastName);

      public abstract String getStreet1();

      public abstract void setStreet1(String Street1);

      public abstract String getStreet2();

      public abstract void setStreet2(String Street2);

      public abstract String getCity();

      public abstract void setCity(String City);

      public abstract String getState();

      public abstract void setState(String State);

      public abstract String getPostalCode();

      public abstract void setPostalCode(String PostalCode);

      public abstract Integer getAddressId();

      public abstract void setAddressId(Integer id);

      public void setEntityContext (EntityContext ctx) { this.ctx = ctx; }

      public void unsetEntityContext () { ctx = null; }

      public void ejbActivate () {}

      public void ejbPassivate () {}

      public void ejbLoad () {}

      public void ejbStore () {}

      public void ejbRemove() {}
      }

      Address.java:

      package com.realtimetemps.ejb.entity;

      import javax.ejb.EJBObject;
      import java.rmi.RemoteException;

      public interface Address extends EJBObject {
      public String getFirstName() throws RemoteException;

      public String setFirstName(String val) throws RemoteException;

      public String getLastName() throws RemoteException;

      public String setLastName(String val) throws RemoteException;

      public String getStreet1() throws RemoteException;

      public String setStreet1(String val) throws RemoteException;

      public String getStreet2() throws RemoteException;

      public String setStreet2(String val) throws RemoteException;

      public String getCity() throws RemoteException;

      public String setCity(String val) throws RemoteException;

      public String getState() throws RemoteException;

      public String setState(String val) throws RemoteException;

      public String getPostalCode() throws RemoteException;

      public String setPostalCode(String val) throws RemoteException;

      public Integer getAddressId() throws RemoteException;

      public void setAddressId(Integer id) throws RemoteException;

      }