0 Replies Latest reply: Mar 6, 2006 11:24 AM by 843844 RSS

    Eclipse JSP taglibrary issues

    843844
      Hi,

      I am trying to write a program using tagLibrary in JSP with WTP in eclipse. I am using Tomcat 4.1 servlet.jar for servlets.

      I am getting the exception in my TLD when I deploy JSP in Sun Java J2ee server. The error is as follows
      ******************************************************************************
      org.apache.jasper.JasperException: Mandatory TLD element missing or empty: tlib-version
           org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:54)
           org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:416)
           org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:123)
           org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:283)
           org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:166)
           org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:423)
           org.apache.jasper.compiler.Parser.parseDirective(Parser.java:488)
           org.apache.jasper.compiler.Parser.parseElements(Parser.java:1544)
           org.apache.jasper.compiler.Parser.parse(Parser.java:131)
           org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
           org.apache.jasper.compiler.ParserController.parse(ParserController.java:105)
           org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:214)
           org.apache.jasper.compiler.Compiler.compile(Compiler.java:500)
           org.apache.jasper.compiler.Compiler.compile(Compiler.java:481)
           org.apache.jasper.compiler.Compiler.compile(Compiler.java:469)
           org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:516)
           org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:307)
           org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
           org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
           sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           java.lang.reflect.Method.invoke(Method.java:585)
           org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
           java.security.AccessController.doPrivileged(Native Method)
           javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
           org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
           org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
      *********************************

      Can anybody tell me how to fix this? I am of the belief that I am not including some jar file but I am not sure which jar file to use for TagLibraries in Eclipse.

      Regards
      Rashmi