• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Error running CMP entitybean on weblogic6.0

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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's a tiny ad. At least, that's what she said.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic