2 Replies Latest reply on Jul 21, 2003 10:50 PM by tsangcn

    CMP field not found during deployment

    tsangcn

      Hello,

      I am using JBoss 3.0.7. I found that if I have a spelling mistake in a CMP field in one of the EJB in ejb-jar.xml or jbosscmp-jdbc.xml, during deployment JBoss keeps on saying that the CMP is not found in each of the EJB in the JAR file.
      It seems that JBoss cannot actually locate the actual place of error.
      This makes debugging very difficult and I always waste a lot of time to locate the error.
      Is this a bug in JBoss?
      Is there any good way to locate the error?

      Thanks
      CN

        • 1. Re: CMP field not found during deployment
          mozheyko_d

          In due time I am tired from this problem.

          Check your java sources,

          Each EJB must have

          in the EntityBean class
          public abstract set??? and get??? methods

          where ??? CMP-field name

          For example

          ###############
          <ejb-jar>
          ...
          <cmp-field>beer<cmp-field>
          ...
          </ejb-jar>

          ###############
          BeerBean.java
          ...
          public abstract String getBeer();
          public abstract void setBeer( String b);
          ...


          Regards
          Dmitry Mozheyko

          • 2. Re: CMP field not found during deployment
            tsangcn

            Hello

            Sorry for my later reply

            What I mean is sometimes I have a careless spelling mistake, but during deployment JBoss cannot point out the correct location of failure, instead it keeps on saying that the failure occurs in each EJB. I suspect it is either the JBoss's deployment mechanism cannot point out the location of failure or there is a bug in JBoss.

            Thanks
            CN