Where does your bean live relative to your webapp? I have no problems if put them under
......./webapps/myapp/WEB-INF/classes/beans

The JSP should have a tag that looks like:

<jsp:useBean id="fundProfileToDB" class="beans.fundProfileToDB" scope="session" />


On Tuesday, November 26, 2002, at 11:21 PM, Laxmikanth M.S. wrote:

Hi ,
we are facing a problem with using bean in JSP.
we are able to compile and run the Bean from the command promt where as the
same thing callled from JSP shows compilation error as show below.The
classpath is set properly. Any views in this regard highly appreciated.
thanks in advance
laxmikanth




javax.servlet.ServletException: Cannot create bean of class
beans.fundProfileToDB
at jsp.update_0002dfunds_5._jspService(update_0002dfunds_5.java:182)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:5 74)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485 )
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.ja va:91
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at
org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Ajp 12Int
erceptor.java:221)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:4 94)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo l.jav
a:516)
at java.lang.Thread.run(Thread.java:479)
Root cause:
java.lang.ClassNotFoundException: class beans.fundProfileToDB :
java.lang.IllegalAccessException: beans.fundProfileToDB
at java.beans.Beans.instantiate(Beans.java:206)
at java.beans.Beans.instantiate(Beans.java:46)
at jsp.update_0002dfunds_5._jspService(update_0002dfunds_5.java:180)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:5 74)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485 )
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.ja va:91
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at
org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Ajp 12Int
erceptor.java:221)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:4 94)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo l.jav
a:516)
at java.lang.Thread.run(Thread.java:479)

*********************************************************************
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you may
not copy or deliver this message to anyone. In such case, you should destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email for
messages of this kind.
*********************************************************************

--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to