AnsweredAssumed Answered

Connect to solr through browser fails

Question asked by deepacp on Sep 30, 2014
Hi,

I have installed and configured Solr on Alfresco 4.2.f as mentioned in the Alfresco Documentation. I have configured Solr to use the same tomcat instance as Alfresco. I am able to search using Solr from both Alfresco and Share. I am also able to use SearchService using Solr as the language. However, I am unable to connect to the solr application through browser (https://localhost:8443/solr/) though I have imported the browser keystore as mentioned in the guide.

It gives me the following exception

org.apache.jasper.JasperException: Unable to compile class for JSP
   org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:672)
   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:727)
   org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
   org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:286)

root cause

java.lang.ClassCastException: org.apache.jasper.runtime.JspApplicationContextImpl cannot be cast to org.apache.jasper.runtime.JspApplicationContextImpl
   org.apache.jasper.runtime.JspApplicationContextImpl.getInstance(JspApplicationContextImpl.java:76)
   org.apache.jasper.runtime.JspFactoryImpl.getJspApplicationContext(JspFactoryImpl.java:200)
   org.apache.jasper.compiler.Validator$ValidateVisitor.<init>(Validator.java:515)
   org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1845)
   org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:217)
   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:657)
   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:727)
   org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
   org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:286)

I didn't find any messages related to this in the logs too. I am using tomcat version 7.0.55. Any help would be much appreciated.

Thanks
Deepa

Outcomes