Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error running CMP entitybean on weblogic6.0

 
Chris Chua
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic