• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

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).]
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic