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

Calling a remote method from JSP

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Using weblogic I have successfully deployed my remote,bean and home interfaces. In the JSP ( Client), the weblogic server is unable to recognize the remote and home ( DataHome ) classes names.It says
E:\Aravind\Weblogic1\myserver\classfiles\jsp_servlet\_client1.java:91: Class jsp_servlet.DataHome not found.
probably occurred due to an error in /Client1.jsp line 16:
DataHome home = (DataHome)ctx.lookup("aravind1");
Anyone Please help!!
Thanks,
Aravind.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
unfortunately, i dont know why this is happening, although it looks like it thinks that DataHome is a jsp/servlet and so maybe you are not defining it correctly somewhere or making an import that's needed. the other thing that i noticed is that probably you shouldn't be making calls to an ejb from within a jsp. to tightly coupled, the jsp shouldn't have to know about the ejb. but, if you are just testing things out, its fine.
 
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there, It seems to me that the lookup is failing coz there is a problem with either the JNDI name or the Initial context....Plz make sure that the JNDI name of the bean is correct and that the IC that u are getting is right...
and are your class files for the remote interface in the classpath...make sure that they are...at least the home and the remote interface....
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic