Uploaded image for project: 'ManifoldCF'
  1. ManifoldCF
  2. CONNECTORS-568

The mcf-combined-service war doesn't work with Tomcat 7.0

    XMLWordPrintableJSON

Details

    Description

      Deploying mcf-combined-service to Tomcat 7 causes the following error when loading the UI.

      type Exception report

      message /index.jsp (line: 1, column: 1) The absolute uri: http://java.sun.com/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

      description The server encountered an internal error that prevented it from fulfilling this request.

      exception

      org.apache.jasper.JasperException: /index.jsp (line: 1, column: 1) The absolute uri: http://java.sun.com/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
      org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42)
      org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:408)
      org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:89)
      org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:324)
      org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:357)
      org.apache.jasper.compiler.Parser.parseDirective(Parser.java:467)
      org.apache.jasper.compiler.Parser.parseElements(Parser.java:1427)
      org.apache.jasper.compiler.Parser.parse(Parser.java:138)
      org.apache.jasper.compiler.ParserController.doParse(ParserController.java:242)
      org.apache.jasper.compiler.ParserController.parse(ParserController.java:102)
      org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:198)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:373)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
      org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

      To fix the issue the workaround I had created was to merge the web.xml in the mcf-crawler-ui.war and then modify the root <web-app> node attribute as follows
      <web-app xmlns="http://java.sun.com/xml/ns/javaee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
      http://java.sun.com/xml.ns/javaee/web-app_2_5.xsd" version="2.5">

      Add the following taglib entries

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

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

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

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

      Following which I had to modify the web-inf\jsp*.tld files to have the <taglib> element attributes change

      <taglib xmlns="http://java.sun.com/xml/ns/j2ee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_1.xsd"
      version="2.0">

      Attachments

        Issue Links

          Activity

            People

              kwright@metacarta.com Karl Wright
              swamipr Swami Rajamohan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 2h
                  2h
                  Remaining:
                  Remaining Estimate - 2h
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified