You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Ilan Rabinovitch <il...@fonz.net> on 2009/09/10 11:38:45 UTC

Re: WebLogic 10 Compatibility Issue - StackOverflowError

In testing Solr 1.4 today with Weblogic it looks like the filters issue 
still exists.  Adding the appropriate entries in weblogic.xml still 
resolves it.

On first look, the header.jsp changes dont appear to be required anymore.

Would it make sense to include a weblogic.xml in the distribution to 
disable the filters or should this be an exercise for 
users/administrators who chose to deploy this under weblogic?


On 2/3/09 10:26 PM, Ilan Rabinovitch wrote:
> We believe that the filters/forward issue is likely something specific
> to weblogic. Specifically that other containers have filters disabled on
> forward by default, where as weblogic has them enabled.
>
>
> We dont think the small modification we had to make to headers.jsp are
> weblogic specific.
>
>
>
>
>
> On 1/30/09 8:15 AM, Feak, Todd wrote:
>> Are the issues ran into due to non-standard code in Solr, or is there
>> some WebLogic inconsistency?
>>
>> -Todd Feak
>>
>> -----Original Message-----
>> From: news [mailto:news@ger.gmane.org] On Behalf Of Ilan Rabinovitch
>> Sent: Friday, January 30, 2009 1:11 AM
>> To: solr-user@lucene.apache.org
>> Subject: Re: WebLogic 10 Compatibility Issue - StackOverflowError
>>
>> I created a wiki page shortly after posting to the list:
>>
>> http://wiki.apache.org/solr/SolrWeblogic
>>
>> From what we could tell Solr itself was fully functional, it was only
>> the admin tools that were failing.
>>
>> Regards,
>> Ilan Rabinovitch
>>
>> ---
>> SCALE 7x: 2009 Southern California Linux Expo
>> Los Angeles, CA
>> http://www.socallinuxexpo.org
>>
>>
>> On 1/29/09 4:34 AM, Mark Miller wrote:
>>> We should get this on the wiki.
>>>
>>> - Mark
>>>
>>>
>>> Ilan Rabinovitch wrote:
>>>> We were able to deploy Solr 1.3 on Weblogic 10.0 earlier today. Doing
>>>> so required two changes:
>>>>
>>>> 1) Creating a weblogic.xml file in solr.war's WEB-INF directory. The
>>>> weblogic.xml file is required to disable Solr's filter on FORWARD.
>>>>
>>>> The contents of weblogic.xml should be:
>>>>
>>>> <?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-en
>> abled>
>>>> </container-descriptor>
>>>>
>>>> </weblogic-web-app>
>>>>
>>>>
>>>> 2) Remove the pageEncoding attribute from line 1 of
>> solr/admin/header.jsp
>>>>
>>>>
>>>>
>>>> On 1/17/09 2:02 PM, KSY wrote:
>>>>> I hit a major roadblock while trying to get Solr 1.3 running on
>> WebLogic
>>>>> 10.0.
>>>>>
>>>>> A similar message was posted before - (
>>>>>
>> http://www.nabble.com/Solr-1.3-stack-overflow-when-accessing-solr-admin-
>> page-td20157873.html
>>>>>
>> http://www.nabble.com/Solr-1.3-stack-overflow-when-accessing-solr-admin-
>> page-td20157873.html
>>>>> ) - but it seems like it hasn't been resolved yet, so I'm re-posting
>>>>> here.
>>>>>
>>>>> I am sure I configured everything correctly because it's working
>> fine on
>>>>> Resin.
>>>>>
>>>>> Has anyone successfully run Solr 1.3 on WebLogic 10.0 or higher?
>> Thanks.
>>>>>
>>>>> SUMMARY:
>>>>>
>>>>> When accessing /solr/admin page, StackOverflowError occurs due to an
>>>>> infinite recursion in SolrDispatchFilter
>>>>>
>>>>>
>>>>> ENVIRONMENT SETTING:
>>>>>
>>>>> Solr 1.3.0
>>>>> WebLogic 10.0
>>>>> JRockit JVM 1.5
>>>>>
>>>>>
>>>>> ERROR MESSAGE:
>>>>>
>>>>> SEVERE: javax.servlet.ServletException: java.lang.StackOverflowError
>>>>> at
>>>>>
>> weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatche
>> rImpl.java:276)
>>>>> at
>>>>>
>> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.j
>> ava:273)
>>>>> at
>>>>>
>> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:
>> 42)
>>>>> at
>>>>>
>> weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDis
>> patcherImpl.java:526)
>>>>> at
>>>>>
>> weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatche
>> rImpl.java:261)
>>>>> at
>>>>>
>> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.j
>> ava:273)
>>>>> at
>>>>>
>> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:
>> 42)
>>>>> at
>>>>>
>> weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDis
>> patcherImpl.java:526)
>>>>> at
>>>>>
>> weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatche
>> rImpl.java:261)
>>>>> at
>>>>>
>> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.j
>> ava:273)
>>>>> at
>>>>>
>> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:
>> 42)
>>>>> at
>>>>>
>> weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDis
>> patcherImpl.java:526)
>>>>> at
>>>>>
>> weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatche
>> rImpl.java:261)
>>>>> at
>>>>>
>> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.j
>> ava:273)
>>>>>
>>>>
>>>
>>
>>
>>
>>
>>
>
>


-- 
Ilan Rabinovitch
ilan@fonz.net

---
SCALE 8x: 2010 Southern California Linux Expo
Feb 19-21, 2010
Los Angeles, CA
http://www.socallinuxexpo.org


Re: WebLogic 10 Compatibility Issue - StackOverflowError

Posted by Chris Hostetter <ho...@fucit.org>.
: In testing Solr 1.4 today with Weblogic it looks like the filters issue still
: exists.  Adding the appropriate entries in weblogic.xml still resolves it.
: 
: Would it make sense to include a weblogic.xml in the distribution to disable
: the filters or should this be an exercise for users/administrators who chose
: to deploy this under weblogic?

Ilan: It's been a long time since i tried using weblogic ... when you 
talk about adding a weblogic.xml file to prevent this bug, were any other 
changes to the web.xml file required?  (I was under the impression that 
you had to remove the Servlet Filter mapping from web.xml and use weblogic 
specific options when declaring it in weblogic.xml ... but your 
description makes me think i completley missunderstood before)

If it's possible to have a simple weblogic.xml file that can be droped 
into the solr.war and will make solr work on weblogic out of the box 
(without adversely affecting any other servlet containers) then by all 
means please open a bug and attach a patch containing the weblogic.xml 
file and mark "fix for 1.4" since this seems like an easy thing to get 
inot the 1.4 release -- assuming you're willing to help test it.



-Hoss