tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abdullah <abdul...@oilgrains.com>
Subject How to use Taglibs in Jsps
Date Fri, 19 Jan 2001 09:22:15 GMT
Hi all,
i am workin in linux.
 I have created directory in the /tomcat/webapps

   -- Myjsp
            --Jsp
            --classes
            --WEB-INF


In the jsp direcotry i have all my jsps, and in the classses directory i
have my classes(Tag Handler classes)
in the WEB-INF directory i put  *.tld files and web.xml (nothing in this).
I changed the server.xml file to include Context path.

when i run the jsp i am getting the following excepion
please tell me the solution to get rid from this exception

nternal Servlet Error:

javax.servlet.ServletException: javax.servlet.jsp.tagext.TagAttributeInfo:
method (Ljava/lang/String;ZLjava/lang/String;Z)V not found
        at java.lang.Throwable.(Throwable.java:96)
        at java.lang.Exception.(Exception.java:44)
        at javax.servlet.ServletException.(ServletException.java:161)
        at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
        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:498)

Root cause:

java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo:
method (Ljava/lang/String;ZLjava/lang/String;Z)V not found
        at
org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:524)

        at
org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:432)

        at
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:385)

        at
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:233)

        at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:706)

        at
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:116)

        at
org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
        at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
        at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
        at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:182)
        at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
        at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
        at
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
        at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152)

        at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164)

        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:865)
        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:498)


Mime
View raw message