Win a copy of Head First Android this week in the Android forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Problems accessing EJB after Deployment

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have problems accessing the EJB after Deploying the EJB.
TheEJB is a simple stateless session Bean.It just says Hello.
The problem is that the Deployment Went thru smoothly and the JNDI name is found when doing a dumpnamespace.
When i write the code in the JSP i get an error saying that the Home class is not found.
HelloHome hh = (HelloHome) PortableRemoteObject.narrow(obj, HelloHome.class);
Do i have to add the ejb jar file in the classpath (i know that its not necessary).I would like to know why its not getting deployed.
Thanks in advance
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
u need to give the path of the jar file .because the client need the stub class using which u connect to the EJBObject and then the bean . So without the stub class u can't be able to locate the home .
If u need further clarification do contact
raja_95080@yahoo.com
reply
    Bookmark Topic Watch Topic
  • New Topic