Hi,
I have created a JSP file that looks up an  EJB deployed in the
IBM WebSphere App Srv  3.02

When i run the JSP file in the browser i get the following trace...

com.sun.jsp.JspException: Compilation failed
at  com.sun.jsp.compiler.Main.compile(Main.java:347)at
com.sun.jsp.runtime.JspLoader.compile(JspLoader.java:86)at
com.sun.jsp.runtime.JspLoader.loadJSP(JspLoader.java:210)at
com.sun.jsp.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.
java:126)
at
com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:137
)
at  com.sun.jsp.runtime.JspServlet.serviceJspFile(JspServlet.java:505)at
com.sun.jsp.runtime.JspServlet.service(JspServlet.java:615)at
javax.servlet.http.HttpServlet.service(HttpServlet.java:639)at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:580)
...........

If the reference to the Home interface of the bean  is commented i do
not get any error. (The lookup  returns the stub "one._OneHome_Stub" of the  EJBHome.)

The JSP page is deployed in a web  application for which i have also
added the JAR file(created using IBM VAJ3.0)  containing the EJB classes
in the classpath. Still it seems that the Home class is not being
recognized.

What is it that i am missing here?
Perhaps those working on WebSphere/VAJ can  help.

TIA,
Rahul.
============= JSP Snippet  ==============
<%@ page import =  "javax.naming.*,java.rmi.*,javax.ejb.*,javax.rmi.
*,java.io.*,one.*"  %>

<HTML>
<BODY>
hi!

<%
  String result="done";
PrintWriter lPrn = new  PrintWriter(out);
try
{

//  ---------------------> if the following line is not commented it gives an ERROR
// OneHome  lOneHome=  null;

  Context  lCtxt = new javax.naming.InitialContext();

  Object lObj =  lCtxt.lookup("One");

  out.println("<BR>CLASS:"+lObj.getClass().toString()+"<BR>");
}
catch (Exception e)
{ }

out.println(result);
%>

</BODY>
</HTML>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to