4 Replies Latest reply on Apr 10, 2006 2:58 PM by 843838

    how to solve XML parsing error on file /WEB-INF/c.tld

    843836
      hei evryone!


      in a newbie to jstl ... i already place the jstl.jar and standard1-1.1.1.jar on my web-inf/lib folder.. also, i already add these on my classpath ... here 's my web.xml

      <taglib>
      <taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
      <taglib-location>/WEB-INF/fmt.tld</taglib-location>
      </taglib>

      <taglib>
      <taglib-uri>http://java.sun.com/jstl/fmt-rt</taglib-uri>
      <taglib-location>/WEB-INF/fmt-rt.tld</taglib-location>
      </taglib>

      <taglib>
      <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
      <taglib-location>/WEB-INF/c.tld</taglib-location>
      </taglib>

      <taglib>
      <taglib-uri>http://java.sun.com/jstl/core-rt</taglib-uri>
      <taglib-location>/WEB-INF/c-rt.tld</taglib-location>
      </taglib>

      <taglib>
      <taglib-uri>http://java.sun.com/jstl/sql</taglib-uri>
      <taglib-location>/WEB-INF/sql.tld</taglib-location>
      </taglib>

      <taglib>
      <taglib-uri>http://java.sun.com/jstl/sql-rt</taglib-uri>
      <taglib-location>/WEB-INF/sql-rt.tld</taglib-location>
      </taglib>

      <taglib>
      <taglib-uri>http://java.sun.com/jstl/x</taglib-uri>
      <taglib-location>/WEB-INF/x.tld</taglib-location>
      </taglib>

      <taglib>
      <taglib-uri>http://java.sun.com/jstl/x-rt</taglib-uri>
      <taglib-location>/WEB-INF/x-rt.tld</taglib-location>
      </taglib>

      The TLD's mention on my web.xml exist on mty web-inf folder. Im using tomcat4.1 ... however when i tried to run my jsp page i got an error message saying :

      org.apache.jasper.JasperException: XML parsing error on file /WEB-INF/c.tld: (line 3, col 8): Document is invalid: no grammar found.
           at org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:189)
           at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:243)
           at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:183)
           at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:354)
           at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:381)
           at org.apache.jasper.compiler.Parser.parseElements(Parser.java:795)
           at org.apache.jasper.compiler.Parser.parse(Parser.java:122)
           at org.apache.jasper.compiler.ParserController.parse(ParserController.java:199)
           at org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
           at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:227)
           at org.apache.jasper.compiler.Compiler.compile(Compiler.java:369)
           at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
           at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
           at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
           at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
           at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
           at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
           at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
           at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
           at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
           at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
           at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
           at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
           at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
           at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
           at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
           at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
           at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
           at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
           at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
           at java.lang.Thread.run(Thread.java:534)

      Can someone pls help me on this error? any ideas, suggestions would be deeply appreciated.. Thanks!