wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Error running CMP entitybean on weblogic6.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Error running CMP entitybean on weblogic6.0" Watch "Error running CMP entitybean on weblogic6.0" New topic
Author

Error running CMP entitybean on weblogic6.0

Chris Chua
Greenhorn

Joined: Feb 21, 2001
Posts: 24
Hi to all
I am getting this error when i try to compile all class files including the deployment descriptor(xml files) using the weblogic.ejbc
ERROR: Error from ejbc: [9.7.12] In EJB AccountEJB, the findByPrimaryKey method must return the E
ntity bean's remote interface type, and it's parameter must be the primary key type or java.lang.
Object: findByPrimaryKey(AccountPK)
ERROR: ejbc found errors
can somebody pls help I am using weblogic server 6.0 sp2
Regards
Chris Chua
amit ang
Ranch Hand

Joined: Sep 28, 2001
Posts: 38
Hi
What u have check is have u given the F Q Name for the Primary key in ur deployment descriptor, pls chek it and give the pk F Q class name in it.
Try using weblogic6.1. Its more better then 6.0. What i feel.
Amit
STL
Originally posted by Chris Chua:
Hi to all
I am getting this error when i try to compile all class files including the deployment descriptor(xml files) using the weblogic.ejbc
ERROR: Error from ejbc: [9.7.12] In EJB AccountEJB, the findByPrimaryKey method must return the E
ntity bean's remote interface type, and it's parameter must be the primary key type or java.lang.
Object: findByPrimaryKey(AccountPK)
ERROR: ejbc found errors
can somebody pls help I am using weblogic server 6.0 sp2
Regards
Chris Chua

Chris Chua
Greenhorn

Joined: Feb 21, 2001
Posts: 24
Hi amit ang I have change it to return the remote interface but still other errors are coming up, if it wont be a problem can you pls send the ejb jar file you're working on including the deployment descriptors my email address is at cyc8888@hotmail.com
Do you think it is much better to work on weblogic ver 6.1 than 6.0, have you encountered a lot bugs ini it?
Thanks in advance
Chris Chua
amit ang
Ranch Hand

Joined: Sep 28, 2001
Posts: 38
Hi Chris,
I will send u the ejb-jar file that i had tried with.
Yes, initialy i had faced similar kind of problems. U have to update ur wl6.0 with ejb20.jar file available at the site for ejb2.0 specs.
It's better if can use 6.1.
Amit
STL
Originally posted by Chris Chua:
Hi amit ang I have change it to return the remote interface but still other errors are coming up, if it wont be a problem can you pls send the ejb jar file you're working on including the deployment descriptors my email address is at cyc8888@hotmail.com
Do you think it is much better to work on weblogic ver 6.1 than 6.0, have you encountered a lot bugs ini it?
Thanks in advance
Chris Chua

Nitin Nair
Greenhorn

Joined: Jun 02, 2004
Posts: 1
Hi Chris,

I think you can help me out..I am using Weblogic 6.1 and currently trying to locate the ejb20.jar. BEA site no longer has the jar as suggested in their documentation. It would be a big help if you could send me the jar if you have it..

Thanks in advance
Nitin Nair
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Error running CMP entitybean on weblogic6.0
 
Similar Threads
Error while execution of session facade pattern
This Weeks Giveaway
Error while running entity bean on weblogic6.0
Error while validate Descriptors
Using an adapter class