• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Invoking Entity bean from Session bean

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using weblogic 6.0. I deployed an entity bean and a session bean. While I am able to use the entity bean and session bean directly from a client, I am not able to invoke the entity bean from the session bean. The error shown is Entity bean class not found. It is able to find the JNDI name of the entity bean.
Could someone advice me on this.
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Praveen,
You can look on few things like,
1.Check the import statement in the code.This error may come if that class file isn't attached to the class which is calling it.
2.Check your .xml files and the way you have mentioned the <entity bean> tag.
3.Class path set, check whether you have mention proper class path or not.
4.Deployment of entity bean is proper or not.Means, when you start weblogic6.0 server, it basically confirms on console about deployment on the bean or check through console Please check.
5.Check all interfaces of the entity bean in all respect.
6. May be the findByPrimaryKey method or the way you are accessing the entity bean from session bean is not proper.
But, as per the error,first three are most probable mistake.
Aviansh
[This message has been edited by Avinash Kumar (edited June 30, 2001).]
 
You totally ruined the moon. You're gonna hafta pay for that you know. This tiny ad agrees:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic