tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pater Pandoson <ppando...@eCoNeed.com>
Subject useing beans.
Date Thu, 01 Mar 2001 14:25:31 GMT
Hello

My jsp pages work fine but when I try to use beans I get this

 2001-03-01 12:10:19 - Ctx(  ): Exception in: R(  + /test.jsp + null) -
javax.servlet.ServletException: try to access class NormalizeText from
class _0002ftest_0002ejsptest_jsp_4
        at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)

        at org.apache.tomcat.core.Handler.service(Handler.java:286)
        at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)

        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)

        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)

        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)

        at java.lang.Thread.run(Thread.java:479)
Root cause:
java.lang.IllegalAccessError: try to access class NormalizeText from
class _0002ftest_0002ejsptest_jsp_4
        at
_0002ftest_0002ejsptest_jsp_4._jspService(_0002ftest_0002ejsptest_jsp_4.java:62)

        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)

        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)

        at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)

        at org.apache.tomcat.core.Handler.service(Handler.java:286)
        at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)

        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)

        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)

        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)

        at java.lang.Thread.run(Thread.java:479)


The bean is in the classes dir and compled fine

import java.beans.*;


class NormalizeText{
    private String text;

    public void setText(String text){
 this.text = text;
    }

    public String getText(){
 return text;
    }

}


and the jsp page looks like this

<jsp:useBean id="TN" scope="session" class="NormalizeText" />
<jsp:setProperty name="TN" property="text" value="what is the prob?" />


So can any one tell me what I am doing wrong.

Thanks.



Mime
View raw message