Compilation Error at the time of EJB deployment

Discussions

EJB programming & troubleshooting: Compilation Error at the time of EJB deployment

  1. Compilation Error at the time of EJB deployment (4 messages)


    Hi
    I have compiled my EJB which is an CMP
    There is no compile ERROR when I changed the return type for the ejbCreate() method to "return new OrderPK(custid);".
    After generating the jar file
    I run the Weblogic ejbc command(i.e)
    java -Dweblogic.home=%WL_HOME% weblogic.ejbc -compiler javac build\temp.jar %WILEY_HOME%\deploy\yogi%1.jar

     I am getting the ERROR like "Error in OrderBeanEOImpl.java:56: incompatible types found : int required: ejb.entityBean.containerManaged.testing.OrderPK, pk = bean.custid;

    I could not understand this.
    Please any one can help me out 2 sort out this problem
    Thanks,

  2. Hi!
      Add this line in your ejbCreate() method and check.
    "return null;"
      Pls. get bk with the result. I think this needs further investigation depending on your result.
    Regards, Phani
  3. Hi,
    I have tried that already what U have send,but eventhough its the same.
  4. Pls send me the entity bean code, I'll compile and check. Can't say anything as of now.
    Regards, Phani
  5. the ejbCreate() method should return an object and cannot return a primary data type like integer. Hence wrap the int with Integer and try.