It seems like in your UserBean.java, you are implementing:

        com.xyz.User ejbFindByPrimaryKey(PrimaryKey aPK)

When u should be doing:

        com.xyz.UserPK ejbFindByPrimaryKey(Primary Key aPK)

Your Bean class needs to return the primary key in a find method;  the
container intercepts this, retrieves the proper EJBObject and returns that
to you in your home.

Gene


-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Naresh Sharma
Sent: Wednesday, July 12, 2000 5:16 AM
To: [EMAIL PROTECTED]
Subject: weblogic ejbc error


hello everybody,

I am sorry again for posting weblogic specific
question.

        As u know While creating deployable jar file with
ejbc tool, ejbc generates some java classes and after
compilation deletes them.

        But while creating the deployable jar file i am
getting the following error in comilation of ejbc
generated java classes.

UserBeanHomeImpl.java:81: Incompatible type for =.
Explicit cast needed to convert com.xyz.User to
com.xyz.UserPK.
        pk = dummyBean.ejbFindByPrimaryKey(pk);


any clue what to do ??

Thanks
Naresh

__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail   Free email you can access from anywhere!
http://mail.yahoo.com/

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to