• Post Reply Bookmark Topic Watch Topic
  • New Topic

Calling a remote method from JSP  RSS feed

 
Aravind Ravi
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • 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.
 
Melissa Jeidi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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.
 
sandy gupta
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • 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....
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!