The error you are getting is a compilation error, not a runtime error.
Therefore I would compile your JSP either through the command line, or
through VAJ, or through WebSphere Studio.  This way you will get more
information on the compilation error than you are currently via the web
page.

Even so, it is pretty obvious from your email that the JSP cannot find the
ejb home classes it requires.  It has been a while since I have used VAJ and
WebSphere - but I would say that you are not configuring your JSP properties
file correctly to point to the EJB jar file.

Have a hunt through the WebSphere properties files for JSP configuration -
somewhere there should be a classpath configuration parameter.  Add your EJB
jar file to this path.

Myles




> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: 01 December 2000 12:03
> To:   [EMAIL PROTECTED]
> Subject:      JSP to EJB in IBM WebSphere
>
> 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(JspServle
> t.
> java:126)
> at
> com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:1
> 37
> )
> 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(ServletManag
> er
> .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".

===========================================================================
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