The "IllegalAccessException" suggests that you haven't declared the class
and/or default Constructor as "public".

"Laxmikanth M.S." <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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:574)
> 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.java:91
> 7)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
> at
>
org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Ajp12Int
> erceptor.java:221)
> at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
> at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.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:574)
> 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.java:91
> 7)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
> at
>
org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Ajp12Int
> erceptor.java:221)
> at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
> at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.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]>

Reply via email to