Uploaded image for project: 'Codehaus Cargo'
  1. Codehaus Cargo
  2. CARGO-651

Embedded Jetty Container fails to compile JSPs with tag libraries: Unable to initialize TldLocationsCache

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.3.1-maven2
    • Fix Version/s: 1.0.1-beta-3, 1.0.1
    • Component/s: Jetty
    • Labels:
      None
    • Environment:

      OSX, Java 1.6

      Description

      The embedded jetty container starting up for integration tests in a separate module fails to successfully run web apps which use tag libraries. The app server starts successfully however when the test case attempts to hit a jsp which imports the tag libraries the server fails with the following exception. This behaviour is not seen when deploying the webapp to an installed tomcat instance or whe using the jetty maven plugin to start the container. Test case is attached.

      org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: null
      at org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:253)
      at org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCache.java:224)
      at org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:526)
      at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:422)
      at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)
      at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1552)
      at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
      at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
      at org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
      at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
      at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              There are no comments yet on this issue.

                People

                • Assignee:
                  savasalitokmen Savas Ali Tokmen
                  Reporter:
                  cameronjones Cameron Jones
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: