0 Replies Latest reply on Jun 26, 2008 4:00 PM by 666705

    Missing bundle:ejbgen pk-field-dismatch-pk-class

    666705
      Hello.
      I am relatively new to Weblogic and Workshop, and have experinced problems in generating entity beans. This is the code of my Entity bean(pretty simple actually) :
      package ejb;

      import javax.ejb.*;
      import weblogic.ejb.*;
      import weblogic.ejbgen.*;

      @Entity(ejbName = "BusinessRule",
                dataSourceName = "cgDataSource",
                tableName = "BusinessRule",
                primKeyClass = "java.lang.Integer")
      @JndiName(local = "ejb.BusinessRuleLocalHome")
      @AutomaticKeyGeneration(cacheSize = "1",
              name = "NamedSequence",
              type = AutomaticKeyGeneration.AutomaticKeyGenerationType.SEQUENCE_TABLE)
      @FileGeneration(localClass = Constants.Bool.TRUE,
                          localHome = Constants.Bool.TRUE,
                          remoteClass = Constants.Bool.FALSE,
                          remoteHome = Constants.Bool.FALSE,
                          valueClass = Constants.Bool.TRUE)
      abstract public class BusinessRule extends GenericEntityBean implements
                EntityBean
           {
           @CmpField(column = "MitarbeiterID",
                   primkeyField = Constants.Bool.TRUE)
           @LocalMethod()
                public abstract String getMitarbeiterID();
           @LocalMethod()
                public abstract void setMitarbeiterID(java.lang.Integer arg); 
           
           @CmpField(column = "MaxAusgabe")
           @LocalMethod()
                public abstract double getMaxAusgabe();
           @LocalMethod()
                public abstract void setMaxAusgabe(double arg);
           
           @CmpField(column = "VorgesetzterID")
           @LocalMethod()
                public abstract double getVorgesetzterID();
           @LocalMethod()
                public abstract void setVorgesetzterID(java.lang.Integer arg);
           
           public java.lang.Integer ejbCreate(java.lang.Integer MitarbeiterID, double MaxAusgabe, java.lang.Integer VorgesetzterID)
                     throws CreateException
                {
                setVorgesetzterID(VorgesetzterID);
               setMaxAusgabe(MaxAusgabe);
               setMitarbeiterID(MitarbeiterID);
                return null;
                }

           public void ejbPostCreate(java.lang.Integer MitarbeiterID, double MaxAusgabe, java.lang.Integer VorgesetzterID)
                {
                }
           }
      The problem is that it gives me the following error on the "abstract public class BusinessRule...." row:
      EJBGen Error: Error: [BusinessRule] *Missing bundle:ejbgen pk-field-dismatch-pk-class. Could someone that has a little more experince in weblogic than me help me with this error because I am stuck and can't fugure it out. The internet tells me nothing about this exact error. I have probably made some stupid mistake in the code,or when generating the project with the wizard, but seem to be unable to find it.
      I am using Weblogic Server 10.0 and Workshop 10.2.
      Thank you in advance.

      --
      Edited by Vitaly1988 at 06/26/2008 9:00 AM