Feb 09

Running Solr 1.3 on Weblogic 10 results in the following exception when trying to access the admin page.


SEVERE: javax.servlet.ServletException: java.lang.StackOverflowError
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:276)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:273)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:526)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:261)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:273)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:526)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:261)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:273)

This is a compatibility issue resulting in an infinite recursion in the SolrDispatcherFilter. To correct it you need to make the following changes.

  1. Create a weblogic.xml file
  2. Create xml file with the following content and save it to solr WEB-INF directory. This is required to disable Solr’s filter on FORWARD.

    <?xml version='1.0' encoding='UTF-8'?> 
    <weblogic-web-app 
       xmlns="http://www.bea.com/ns/weblogic/90" 
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
       xsi:schemaLocation="http://www.bea.com/ns/weblogic/90  
        http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd">
    
        <container-descriptor>
           <filter-dispatched-requests-enabled>
              false
           </filter-dispatched-requests-enabled> 
        </container-descriptor> 
    </weblogic-web-app> 
    
    
  3. Remove pageEncoding attribute from solr/admin/header.jsp
  4. The pageEncoding attribute can be found on the first line.

written by objects \\ tags: , , , ,


Leave a Reply

You must be logged in to post a comment.