Hi bido..... the problem is solved.....already barker replied .....the constructors were not public so couldn't load the bean....anyways thanks for the concern Regards Laxmikanth M S Off* : 6610330 extn 1256 Res* : 5267150 http://www.sonata-software.com
> Coming together is the beginning, staying together is progress and working > together is Success What lies behind us and what lies before us are tiny matters compared to what lies within us - Emerson > -----Original Message----- > From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] > Sent: Wednesday, November 27, 2002 11:11 AM > To: Tomcat Users List > Subject: Re: JSP Bean in Tomcat - Urgent > > 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]> ********************************************************************* 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]>