Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-1257

action.jsp and logging.jsp do not compile, related code no longer needed

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4
    • 1.4
    • Admin UI
    • None
    • Mac

    Description

      action.jsp failed to compile because of imcompatible class Logger used in action.jsp and SolrConfig.java. This can be produced in the following steps:

      1. in configuration file solrconfig.xml, uncomment the following element (at the end of the file)
      <!-- configure a healthcheck file for servers behind a loadbalancer
      -->
      <healthcheck type="file">server-enabled</healthcheck>
      2. start solr
      3. go to
      http://localhost:8983/solr/admin
      4. click on the link tagged "Enable", which essential make this request
      http://localhost:8983/solr/admin/action.jsp?action=Enable

      you will see this error page:

      HTTP ERROR: 500

      PWC6033: Unable to compile class for JSP

      PWC6197: An error occurred at line: 28 in the jsp file: /admin/action.jsp
      PWC6199: Generated servlet error:
      Type mismatch: cannot convert from Logger to Logger

      PWC6197: An error occurred at line: 28 in the jsp file: /admin/action.jsp
      PWC6199: Generated servlet error:
      The method log(Level, String) is undefined for the type Logger

      org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP

      PWC6197: An error occurred at line: 28 in the jsp file: /admin/action.jsp
      PWC6199: Generated servlet error:
      Type mismatch: cannot convert from Logger to Logger

      PWC6197: An error occurred at line: 28 in the jsp file: /admin/action.jsp
      PWC6199: Generated servlet error:
      The method log(Level, String) is undefined for the type Logger

      at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:94)
      at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:267)
      at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:332)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:389)
      at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:579)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:344)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:464)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:358)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:367)
      at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
      at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
      at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:268)
      at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
      at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:273)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
      at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
      at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
      at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
      at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
      at org.mortbay.jetty.Server.handle(Server.java:295)
      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503)
      at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827)
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511)
      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210)
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379)
      at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
      at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
      RequestURI=/solr/admin/action.jsp

      Powered by Jetty://

      tried it with the latest nightly build and got the same result.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            hossman Chris M. Hostetter
            solrjay Jay
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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

                Slack

                  Issue deployment