4 Replies Latest reply on Dec 9, 2008 5:58 AM by sourabh11

    Error: Unable to initialize TldLocationsCache

    inkimar

      Hello!

      Getting this error :
      org.apache.jasper.JasperException:
      Unable to initialize TldLocationsCache: XML parsing error on file /WEB-INF/tld/c.tld: (line 3, col -1).

      Using jboss-4.0.4.GA.

      The odd thing here, is that this is working in one project but not
      the other - these project are built in the same build.xml - file using
      jboss-4.0.4.GA. I cannot see anything different on these two apps.

      The problem is not solved by changing
      <% @ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
      to
      <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>

      Any ideas on what is going on?
      I just changed my jstl.jar and standard.jar.

      best regards, ink

        • 1. Re: Error: Unable to initialize TldLocationsCache
          inkimar

          -using Apache Ant version 1.6.5 to compile

          • 2. Re: Error: Unable to initialize TldLocationsCache
            khanrahan1

            I was having this same issue until I discovered that one of my third party jars was corrupt. When I would make a request that included a custom tag in the response (the first time the custom tag was accessed) all of my jars were being searched/scanned until the tag library was found.

            Once I fixed the corrupt jar, this issue went away. I tested all of my jars, by trying to unjar them, via jar xvf *

            I hope this helps.

            • 3. Re: Error: Unable to initialize TldLocationsCache
              cl20008jboss

               

              khanrahan I was having this same issue until I discovered that one of my third party jars was corrupt. When I would make a request that included a custom tag in the response (the first time the custom tag was accessed) all of my jars were being searched/scanned until the tag library was found.


              khanrahan - your post was EXACTLY what I needed to fix this problem that plagued me. I did a jar xvf commons-collections-3.2.jar and it revealed an error with that jar that somehow crept in.
              THANK YOU from MN!

              • 4. Re: Error: Unable to initialize TldLocationsCache
                sourabh11

                hi...............
                i am also getting same problem......i am using jboss-4.0.3SP1
                error:-
                org.apache.jasper.JasperException: /index.jsp(1,1) Unable to initialize TldLocationsCache: XML parsing error on file /WEB-INF/tld/c.tld: (line 2, col 1)
                org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
                org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
                org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:86)
                org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:339)
                org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:372)
                org.apache.jasper.compiler.Parser.parseDirective(Parser.java:475)
                org.apache.jasper.compiler.Parser.parseElements(Parser.java:1543)
                org.apache.jasper.compiler.Parser.parse(Parser.java:126)
                org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
                org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
                org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
                org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
                org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
                org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
                org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
                org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
                org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
                org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
                javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


                can any one help