Hi Derek, Just wonder if u have solved your problem? I managed to package my singleton broker as a bean and used it in my JSP pages. No problem runnning in JRUN though initially I did encountered similar problem as u did. After copying the necessary class files into the classpath(s) used by JRUN, everything is fine. So I think your problem is most likely related to classpath. But when trying to run the same jsp under JSWDK, I do have problems. The JSWDK server couldn't find my broker classes and worst still, it ignored the import (<%@ page import="java.sql.*"%>) directive in my JSP pages and thus the generated java files couldn't be compiled successfully. Any idea of what's wrong? Thanks and regards. Derek Conniffe wrote: > Hi Hee, > > I'm having exactly the same difficulty. > > I am attempting to attach a singleton class to a bean I have written for use > in jsp pages. > > I get the following error (output via. the http browser) when I try to > access the connection pool (although both the JSP bean & the connection pool > class compile correctly): > > Unhandled error! You might want to consider having an error page to report > such errors more gracefully > com.sun.jsp.JspException: Unknown exception: java.lang.NoClassDefFoundError: > DBConnectionManager > at X_0003a.java.JSP.jshop.index_jsp_1._jspService(index_jsp_1.java:83) > at com.sun.jsp.runtime.HttpJspBase.service(HttpJspBase.java:43) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:840) > at > com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:78) > at com.sun.jsp.runtime.JspServlet.serviceJspFile(JspServlet.java:125) > at com.sun.jsp.runtime.JspServlet.service(JspServlet.java:152) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:840) > at com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:140) > at com.sun.web.core.Context.handleRequest(Context.java:382) > at com.sun.web.server.ConnectionHandler.run(Compiled Code) > > I do include the Connection Pool Manager class in the classpath prior to > running the www jsp server. > > I include both the catalogue.java bean code & the Connection Pool class > code. > > Derek :) > > Derek Conniffe > Telephone +353 1 287 2671 > Mobile +353 86 856 3823 > Fax (IRL) +353 86 956 3823 > Fax (UK) +44 870 088 2811 > Fax (US) +1 617 507 0589 > Email: [EMAIL PROTECTED] > > ------------------------------------------------------------------------ > Name: DBConnectionManager.java > DBConnectionManager.java Type: java/* > Encoding: quoted-printable > > Name: Catalogue.java > Catalogue.java Type: java/* > Encoding: quoted-printable =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
