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 Radhakrishna Repala <rr...@gmail.com> on 2013/04/25 06:47:07 UTC
Problem with solr deployment on weblogic 10.3
I'm new to solr, while deploying solr in weblogic got following exception.
Please help me in this regard.
Error 500--Internal Server Error
java.lang.NoSuchMethodError: replaceEach
at
org.apache.solr.servlet.LoadAdminUiServlet.doGet(LoadAdminUiServlet.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:382)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:142)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Thanks,
Radhakrishna
Re: Problem with solr deployment on weblogic 10.3
Posted by Shawn Heisey <so...@elyograg.org>.
On 4/25/2013 12:04 AM, Shawn Heisey wrote:
> It looks like the solution is adding some config to the weblogic.xml
> file in the solr.war so that weblogic prefers application classes. I
> filed SOLR-4762. I do not know if this change might have unintended
> consequences.
>
> http://ananthkannan.blogspot.com/2009/08/beware-of-stringutilscontainsignorecase.html
>
> https://issues.apache.org/jira/browse/SOLR-4762
Radhakrishna: Do you know how to extract solr.war, change the
WEB-INF/weblogic.xml file, and repack it? I have created a patch for
the Solr source code, but I don't have weblogic, so I can't test it to
make sure it works. I am running tests to make sure that the change
doesn't break anything else.
Alternatively, you could download the source code, apply the patch I
uploaded to SOLR-4762, build Solr, and try the changed version. You
never said what version of Solr you are using. The important part of
the patch should apply correctly to the source of most versions. The
CHANGES.txt part of the patch will fail on anything older than the 4.x
dev branch (4.4), but that's not an important part of the patch.
Thanks,
Shawn
Re: Problem with solr deployment on weblogic 10.3
Posted by Shawn Heisey <so...@elyograg.org>.
On 4/24/2013 10:47 PM, Radhakrishna Repala wrote:
> I'm new to solr, while deploying solr in weblogic got following exception.
> Please help me in this regard.
>
> Error 500--Internal Server Error
>
> java.lang.NoSuchMethodError: replaceEach
The replaceEach method is included in Apache commons-lang 2.4 and later.
The solr.war file contains a jar for this library, version 2.6 for the
latest Solr versions.
>From what I have been able to determine using Google, weblogic 10.3 uses
an older version of the Apache commons-lang library, and that is taking
precedence, so the version included in Solr is not being used.
It looks like the solution is adding some config to the weblogic.xml
file in the solr.war so that weblogic prefers application classes. I
filed SOLR-4762. I do not know if this change might have unintended
consequences.
http://ananthkannan.blogspot.com/2009/08/beware-of-stringutilscontainsignorecase.html
https://issues.apache.org/jira/browse/SOLR-4762
Thanks,
Shawn